{"id":13580881,"url":"https://github.com/wobsoriano/bun-lightningcss","last_synced_at":"2025-04-15T02:18:46.511Z","repository":{"id":186231805,"uuid":"674867911","full_name":"wobsoriano/bun-lightningcss","owner":"wobsoriano","description":"Lightning CSS plugin for Bun with class composition support.","archived":false,"fork":false,"pushed_at":"2023-09-09T22:02:38.000Z","size":234,"stargazers_count":28,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T02:18:38.123Z","etag":null,"topics":["bun","css"],"latest_commit_sha":null,"homepage":"","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/wobsoriano.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}},"created_at":"2023-08-05T02:38:54.000Z","updated_at":"2025-01-24T06:23:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc856954-4abe-4711-b5cb-9333f3ce4b66","html_url":"https://github.com/wobsoriano/bun-lightningcss","commit_stats":null,"previous_names":["wobsoriano/bun-plugin-lightningcss-modules","wobsoriano/bun-lightningcss"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbun-lightningcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbun-lightningcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbun-lightningcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbun-lightningcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wobsoriano","download_url":"https://codeload.github.com/wobsoriano/bun-lightningcss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991560,"owners_count":21194894,"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":["bun","css"],"created_at":"2024-08-01T15:01:55.929Z","updated_at":"2025-04-15T02:18:46.491Z","avatar_url":"https://github.com/wobsoriano.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# bun-lightningcss\n\n[Lightning CSS](https://lightningcss.dev/) plugin for Bun with full support for [class composition](https://lightningcss.dev/css-modules.html#class-composition).\n\n## Install\n\n```bash\nbun install -d bun-lightningcss\n```\n\n## Usage\n\n```ts\nimport lightningcss from 'bun-lightningcss'\n\nawait Bun.build({\n  entrypoints: ['./index.tsx'],\n  outdir: './dist',\n  plugins: [lightningcss()],\n})\n```\n\nSay you have a `app.module.css` file...\n\n```css\n.bg-indigo {\n  background: indigo;\n}\n\n.container {\n  /* https://lightningcss.dev/css-modules.html#class-composition */\n  composes: bg-indigo;\n  color: white;\n}\n```\n\nImport and use it like so\n\n```tsx\nimport styles from './app.module.css'\n\nexport default function App() {\n  return (\n    \u003cdiv className={styles.container}\u003e\n      Hello, Bun!\n    \u003c/div\u003e\n  )\n}\n```\n\n## TypeScript Shim\n\nAdd the following to your .d.ts file:\n\n```ts\ndeclare module '*.module.css' {\n  const styles: {\n    readonly [key: string]: string\n  }\n  export default styles\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Fbun-lightningcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwobsoriano%2Fbun-lightningcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Fbun-lightningcss/lists"}