{"id":48505700,"url":"https://github.com/uncinq/css-components","last_synced_at":"2026-04-07T16:04:25.446Z","repository":{"id":348911385,"uuid":"1200306901","full_name":"uncinq/css-components","owner":"uncinq","description":"Framework-agnostic CSS component implementations — actual styles built on top of design and component tokens.","archived":false,"fork":false,"pushed_at":"2026-04-03T10:16:11.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T15:51:36.957Z","etag":null,"topics":["css","css-components","css-layers"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uncinq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-03T09:01:42.000Z","updated_at":"2026-04-03T10:16:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/uncinq/css-components","commit_stats":null,"previous_names":["uncinq/css-components"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/uncinq/css-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncinq%2Fcss-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncinq%2Fcss-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncinq%2Fcss-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncinq%2Fcss-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uncinq","download_url":"https://codeload.github.com/uncinq/css-components/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncinq%2Fcss-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31518675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","css-components","css-layers"],"created_at":"2026-04-07T16:04:12.208Z","updated_at":"2026-04-07T16:04:25.424Z","avatar_url":"https://github.com/uncinq.png","language":"CSS","readme":"# @uncinq/css-components\n\n\u003e Framework-agnostic CSS component implementations — actual styles built on top of design and component tokens.\n\n\u003cimg width=\"1280\" height=\"640\" alt=\"share-css-components\" src=\"https://github.com/user-attachments/assets/3d74df8a-e7bf-4ba5-8529-99cfef0bc176\" /\u003e\n\n## What is this?\n\n`@uncinq/css-components` provides the CSS implementations of common UI components. It sits at the top of the CSS stack:\n\n```text\n@uncinq/design-tokens      ← primitive + semantic CSS custom properties\n@uncinq/component-tokens   ← component-scoped CSS custom properties\n@uncinq/css-base           ← base CSS rules\n@uncinq/css-components     ← actual CSS rules (this package)\n```\n\nEach component file contains only CSS rules, using the tokens defined in the two packages above. No JavaScript, no markup opinions — just portable, layered CSS.\n\n---\n\n## CSS cascade layers\n\nAll component styles are declared inside `@layer components`:\n\n```css\n@layer config, base, layouts, vendors, components;\n```\n\nThis means:\n\n- Components never bleed into base or layout styles\n- Project-level `@layer components` rules always win over these defaults\n- Vendors (e.g. Splide) sit below project components but above base\n\n---\n\n## Prerequisites\n\nThis package consumes tokens from:\n\n- [@uncinq/design-tokens](https://github.com/uncinq/design-tokens) — semantic CSS custom properties\n- [@uncinq/component-tokens](https://github.com/uncinq/component-tokens) — component-scoped CSS custom properties\n- [@uncinq/css-base](https://github.com/uncinq/css-base) — base CSS rules\n\nImport them before this package:\n\n```css\n@import '@uncinq/design-tokens';\n@import '@uncinq/component-tokens';\n@import '@uncinq/css-base';\n@import '@uncinq/css-components';\n```\n\n---\n\n## Installation\n\n```bash\nnpm install @uncinq/css-components\n# or\nyarn add @uncinq/css-components\n```\n\n### Usage — full import\n\n```css\n@import '@uncinq/design-tokens';\n@import '@uncinq/component-tokens';\n@import '@uncinq/css-base';\n@import '@uncinq/css-components';\n```\n\n### Usage — per component\n\n```css\n@import '@uncinq/design-tokens';\n@import '@uncinq/component-tokens';\n@import '@uncinq/css-base';\n@import '@uncinq/css-components/css/component/nav.css';\n@import '@uncinq/css-components/css/component/pagination.css';\n```\n\n### Usage — CDN (no build step)\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@uncinq/design-tokens/tokens/index.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@uncinq/component-tokens/tokens/index.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@uncinq/css-base/css/index.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@uncinq/css-components/css/index.css\"\u003e\n```\n\n---\n\n## File structure\n\n```text\ncss/\n  index.css               ← imports all component files\n  component/\n    alert.css             ← alert / notification banner\n    badge.css             ← badge / pill / tag\n    banner.css            ← full-width banner strip\n    breadcrumb.css        ← breadcrumb navigation\n    button.css            ← button (all variants)\n    card.css              ← card container\n    dropdown.css          ← dropdown menu\n    embed.css             ← video / iframe embed wrapper\n    list.css              ← styled list\n    map.css               ← embedded map\n    media.css             ← media object (image + text)\n    nav.css               ← navigation bar\n    nav-accessibility.css ← accessibility skip links / focus helpers\n    offcanvas.css         ← off-canvas panel / drawer\n    pagination.css        ← pagination control\n```\n\n---\n\n## References\n\n- [@uncinq/design-tokens](https://github.com/uncinq/design-tokens) — primitive + semantic layers\n- [@uncinq/component-tokens](https://github.com/uncinq/component-tokens) — component token layer\n- [@uncinq/css-base](https://github.com/uncinq/css-base) — base CSS rules\n- [MDN: CSS cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funcinq%2Fcss-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funcinq%2Fcss-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funcinq%2Fcss-components/lists"}