{"id":21806686,"url":"https://github.com/hungtcs/classed-elements","last_synced_at":"2026-04-12T09:03:53.880Z","repository":{"id":199926024,"uuid":"704310824","full_name":"hungtcs/classed-elements","owner":"hungtcs","description":"classed-elements is a utility that simplifies the process of reusing components with Tailwind CSS in SolidJS","archived":false,"fork":false,"pushed_at":"2024-04-04T14:22:05.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T07:05:42.573Z","etag":null,"topics":["solidjs","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hungtcs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-10-13T01:54:41.000Z","updated_at":"2024-03-27T02:41:59.000Z","dependencies_parsed_at":"2024-11-27T12:39:39.382Z","dependency_job_id":null,"html_url":"https://github.com/hungtcs/classed-elements","commit_stats":null,"previous_names":["hungtcs/classed-elements"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hungtcs/classed-elements","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Fclassed-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Fclassed-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Fclassed-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Fclassed-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hungtcs","download_url":"https://codeload.github.com/hungtcs/classed-elements/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs%2Fclassed-elements/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265024275,"owners_count":23699589,"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":["solidjs","tailwindcss"],"created_at":"2024-11-27T12:29:17.297Z","updated_at":"2026-04-12T09:03:53.843Z","avatar_url":"https://github.com/hungtcs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @classed-elements/{react/solidjs}\n\n`classed-elements` is a utility that simplifies the process of reusing components with Tailwind CSS in SolidJS or React.\nThis tool is inspired by styled-components and aims to streamline the development of reusable tailwind css components in your SolidJS / React applications.\n\n## Installation\n\n- [React](./packages/react/README.md)\n- [Solidjs](./packages/solidjs/README.md)\n\n## Usage\n\n```tsx\nimport classed from \"@classed-elements/solidjs\";\n\nfunction Hello(props: { class?: string; name: string }) {\n  return \u003cp class={props.class}\u003eHello {props.name}!\u003c/p\u003e;\n}\n\nconst WhiteHello = classed(Hello)`text-white`;\n\nconst Wrapper = classed.div`relative w-[200px] h-[100px] bg-blue-500`;\n\nexport function App() {\n  return (\n    \u003cWrapper\u003e\n      \u003cspan\u003eApp Content\u003c/span\u003e\n      \u003cHello name=\"Github\" /\u003e\n      \u003cWhiteHello name=\"Classed\" /\u003e\n    \u003c/Wrapper\u003e\n  );\n}\n```\n\nIn this example, we've created a classed Wrapper component using classed-elements, applying Tailwind CSS classes to it.\nYou can then use the Wrapper component in your SolidJS application as you would with any other component.\n\n## Working With Tailwind CSS IntelliSense\n\nIn order to support tailwind auto-completion,\nyou need to add the following content in the vscode configuration file `.vscode/settings.json`\n\n```jsonc\n{\n  \"tailwindCSS.experimental.classRegex\": [\"classed\\\\(.+\\\\)`(.*)`\", \"classed\\\\.\\\\w+`(.*)`\"]\n}\n```\n\n## Features\n\n- **Reusability**: Styled components created with Classed-Elements can be reused across your application, reducing code duplication and improving maintainability.\n\n- **TypeScript Support**: Classed-Elements offers seamless integration with TypeScript, ensuring type safety and enhanced development with static typing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungtcs%2Fclassed-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhungtcs%2Fclassed-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungtcs%2Fclassed-elements/lists"}