{"id":14529365,"url":"https://github.com/sannajammeh/tw-classed","last_synced_at":"2025-05-14T13:08:36.205Z","repository":{"id":38849795,"uuid":"497153925","full_name":"sannajammeh/tw-classed","owner":"sannajammeh","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-09T21:16:29.000Z","size":194630,"stargazers_count":526,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-11T22:09:00.106Z","etag":null,"topics":["components","css-in-js","css-in-ts","react","reactjs","tailwind"],"latest_commit_sha":null,"homepage":"https://tw-classed.vercel.app","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/sannajammeh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["sannajammeh"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-05-27T22:28:11.000Z","updated_at":"2025-04-30T06:13:24.000Z","dependencies_parsed_at":"2024-02-13T15:08:14.792Z","dependency_job_id":"903b492d-4633-4022-bbbe-4891bae0b197","html_url":"https://github.com/sannajammeh/tw-classed","commit_stats":{"total_commits":371,"total_committers":7,"mean_commits":53.0,"dds":0.1482479784366577,"last_synced_commit":"dd56cbb27a6a1f5c5315175205b716ce62428a87"},"previous_names":[],"tags_count":91,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannajammeh%2Ftw-classed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannajammeh%2Ftw-classed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannajammeh%2Ftw-classed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sannajammeh%2Ftw-classed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sannajammeh","download_url":"https://codeload.github.com/sannajammeh/tw-classed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149973,"owners_count":22022852,"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":["components","css-in-js","css-in-ts","react","reactjs","tailwind"],"created_at":"2024-09-05T00:00:59.166Z","updated_at":"2025-05-14T13:08:31.029Z","avatar_url":"https://github.com/sannajammeh.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sannajammeh"],"categories":["TypeScript","**1. Libraries**"],"sub_categories":["Styles"],"readme":"![tw-classed](https://raw.githubusercontent.com/sannajammeh/tw-classed/master/tw-classed.jpg)\n\n# TW Classed\n\nMonorepo of the TW Classed project. Consists of Core and React packages.\n\n[Full Documentation](https://tw-classed.vercel.app)\n\n## React\n\nThe react package is a wrapper around the core package that provides an easy to way to create classed components. See the [React Docs](https://tw-classed.vercel.app)\n\n```tsx\n// Button.tsx\nimport { classed } from \"@tw-classed/react\";\n\nconst Button = classed.button(\"px-4 py-2\", {\n  variants: {\n    color: {\n      primary: \"bg-blue-500 text-white\",\n      secondary: \"bg-gray-500 text-white\",\n    },\n  },\n});\n\n// In your App\n\nconst App = () =\u003e {\n  return (\n    \u003c\u003e\n      \u003cButton color=\"primary\"\u003ePrimary\u003c/Button\u003e\n      \u003cButton color=\"secondary\"\u003eSecondary\u003c/Button\u003e\n    \u003c/\u003e\n  );\n};\n```\n\n\n## Core\n\nThe core package is a library that provides a set of functions to help you build your own classed components.\n\nSee the [Core Docs](https://tw-classed.vercel.app/core/Introduction)\n\n```ts\nimport { classed } from \"@tw-classed/core\";\n\nconst button = classed(\"px-4 py-2\", {\n  variants: {\n    color: {\n      primary: \"bg-blue-500 text-white\",\n      secondary: \"bg-gray-500 text-white\",\n    },\n  },\n});\n\n// In your template\nconst Button = document.createElement(\"button\");\nButton.className = button({ color: \"primary\" });\n\n// Or with a framework (Like lit-html)\nconst Button = () =\u003e html`\u003cbutton class=\"${button({ color: \"primary\" })}\" /\u003e`;\n```\n\n## License\n\nMIT\n\n#### Discord community\n![Discord Banner 2](https://discordapp.com/api/guilds/1049812722319118416/widget.png?style=banner2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsannajammeh%2Ftw-classed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsannajammeh%2Ftw-classed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsannajammeh%2Ftw-classed/lists"}