{"id":18585899,"url":"https://github.com/econify/moonshine-css","last_synced_at":"2025-04-10T13:31:31.077Z","repository":{"id":38440828,"uuid":"492054268","full_name":"Econify/moonshine-css","owner":"Econify","description":"🥃 High-proof atomic CSS framework","archived":false,"fork":false,"pushed_at":"2022-10-27T17:04:16.000Z","size":803,"stargazers_count":27,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-24T21:42:22.847Z","etag":null,"topics":["atomic-css","css-in-js","rust-lang","styled-components","styled-system","utility-classes"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Econify.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}},"created_at":"2022-05-13T22:19:18.000Z","updated_at":"2024-01-09T12:09:52.000Z","dependencies_parsed_at":"2023-01-19T16:17:14.745Z","dependency_job_id":null,"html_url":"https://github.com/Econify/moonshine-css","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Econify%2Fmoonshine-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Econify%2Fmoonshine-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Econify%2Fmoonshine-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Econify%2Fmoonshine-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Econify","download_url":"https://codeload.github.com/Econify/moonshine-css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225708,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["atomic-css","css-in-js","rust-lang","styled-components","styled-system","utility-classes"],"created_at":"2024-11-07T00:35:55.333Z","updated_at":"2025-04-10T13:31:26.068Z","avatar_url":"https://github.com/Econify.png","language":"Rust","readme":"# Moonshine CSS\n\n![](./docs/logo.svg)\n\n## Features\n\n- 🥃 Minimal and simple atomic CSS framework\n- ⚗️ 100% customizable - build your own CSS framework\n- 🦀 Blazing fast generator written in Rust\n- 🐜 Tiny `1.7 kB` runtime\n- ⚛️ CSS-in-JS library for React\n\n## Install\n\n```bash\nnpm install --save @econify/moonshine-css\nyarn add @econify/moonshine-css\n```\n\n## Generate Styles\n\nCreate a `.moonshinerc` file in your project root.\n\nby running\n\n```\nnpx distill --init\n```\n\nor by creating a file manually:\n\n```json\n{\n  \"options\": {\n    \"atomStyle\": \"classAttribute\",\n    \"breakpointModifierStyle\": \"suffix\",\n    \"breakpointModifierSeperator\": \"-\",\n    \"breakpoints\": {\n      \"sm\": { \"minWidth\": \"576px\" },\n      \"md\": { \"minWidth\": \"768px\", \"maxWidth\": \"992px\" },\n      \"lg\": { \"minWidth\": \"992px\" }\n    },\n    \"pseudoClasses\": {\n      \"hov\": \":hover\"\n    }\n  },\n  \"designTokens\": [\"./atomic-design-tokens.yml\"],\n  \"templates\": [\n    \"./tachyons-border-box.yml\",\n    \"./tachyons-colors.yml\",\n    \"./tachyons-flex.yml\",\n    \"./tachyons-spacing.yml\"\n  ],\n  \"output\": {\n    \"cssVariables\": \"./dist/variables.css\",\n    \"cssAtoms\": \"./dist/atoms.css\",\n    \"jsonAtoms\": \"./dist/atoms.json\"\n  }\n}\n```\n\nthen run\n\n```bash\nnpx distill --watch\n```\n\n## Usage\n\n```js\nimport \"atomic-styles.css\";\n```\n\n```js\nimport { styled } from \"@econify/moonshine-css\";\n\nconst Button = styled.button(\n  \"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded\",\n  ({ isPrimary }) =\u003e isPrimary \u0026\u0026 \"bg-primary text-white\"\n);\n\nexport default Demo() {\n  return (\n    \u003cdiv\u003e\n      \u003cButton isPrimary={true}\u003eClick me\u003c/Button\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\nYou can read more about the [runtime syntax here](./docs/RUNTIME.md).\n\n## Acknowledgements\n\nTBD\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feconify%2Fmoonshine-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feconify%2Fmoonshine-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feconify%2Fmoonshine-css/lists"}