{"id":45549978,"url":"https://github.com/sugarcube-sh/sugarcube","last_synced_at":"2026-07-03T08:01:18.415Z","repository":{"id":339318053,"uuid":"1154334843","full_name":"sugarcube-sh/sugarcube","owner":"sugarcube-sh","description":"Design tokens in, CSS and components out.","archived":false,"fork":false,"pushed_at":"2026-06-21T03:18:48.000Z","size":2062,"stargazers_count":114,"open_issues_count":14,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-06-21T05:10:33.501Z","etag":null,"topics":["cli","component-library","css","cube-css","design-systems","design-tokens","design-tokens-format-module","react","vite-plugin"],"latest_commit_sha":null,"homepage":"https://sugarcube.sh","language":"TypeScript","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/sugarcube-sh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":["mark-tomlinson-dev"]}},"created_at":"2026-02-10T09:16:47.000Z","updated_at":"2026-06-21T03:17:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sugarcube-sh/sugarcube","commit_stats":null,"previous_names":["sugarcube-sh/sugarcube"],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/sugarcube-sh/sugarcube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarcube-sh%2Fsugarcube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarcube-sh%2Fsugarcube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarcube-sh%2Fsugarcube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarcube-sh%2Fsugarcube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sugarcube-sh","download_url":"https://codeload.github.com/sugarcube-sh/sugarcube/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarcube-sh%2Fsugarcube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35077513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","component-library","css","cube-css","design-systems","design-tokens","design-tokens-format-module","react","vite-plugin"],"created_at":"2026-02-23T05:06:30.210Z","updated_at":"2026-07-03T08:01:18.358Z","avatar_url":"https://github.com/sugarcube-sh.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mark-tomlinson-dev"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003esugarcube\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eDesign tokens in, CSS \u0026 components out\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@sugarcube-sh/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@sugarcube-sh/core.svg\" alt=\"Latest Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@sugarcube-sh/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/@sugarcube-sh/core.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/sugarcube-sh/sugarcube/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-see%20LICENSE-blue\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nSugarcube is a tool for building front ends on [DTCG design tokens](https://www.designtokens.org/). It connects your tokens to CSS variables, utility classes, CUBE CSS, and copy-to-own components — via the Vite plugin or CLI.\n\n## Quick start\n\n```bash\nnpx @sugarcube-sh/cli init\n```\n\nThis walks you through setup: starter tokens, CUBE CSS, components, and Vite plugin. The CLI is installed locally, so you can use `sugarcube` going forward.\n\n**With the Vite plugin:**\n\n```ts\n// vite.config.ts\nimport sugarcube from \"@sugarcube-sh/vite\";\n\nexport default {\n  plugins: [sugarcube()],\n};\n```\n\n```ts\nimport \"virtual:sugarcube.css\";\n```\n\n**Without the Vite plugin:**\n\n```bash\nsugarcube generate\n```\n\nOr add it to your npm scripts:\n\n```json\n{\n  \"scripts\": {\n    \"styles:generate\": \"sugarcube generate\",\n    \"styles:generate:watch\": \"sugarcube generate --watch\",\n    \"tokens:validate\": \"sugarcube validate\"\n  }\n}\n```\n\n## Documentation\n\n[sugarcube.sh/docs](https://sugarcube.sh/docs)\n\n## Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@sugarcube-sh/cli`](https://npmx.dev/package/@sugarcube-sh/cli) | CLI for initialization, generation, and components |\n| [`@sugarcube-sh/vite`](https://npmx.dev/package/@sugarcube-sh/vite) | Vite plugin with HMR |\n| [`@sugarcube-sh/core`](https://npmx.dev/package/@sugarcube-sh/core) | Core token processing |\n\n## License\n\nSee [LICENSE.md](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsugarcube-sh%2Fsugarcube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsugarcube-sh%2Fsugarcube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsugarcube-sh%2Fsugarcube/lists"}