{"id":18537150,"url":"https://github.com/patrickap/twin-ui","last_synced_at":"2026-02-22T12:07:44.595Z","repository":{"id":143547323,"uuid":"599805577","full_name":"patrickap/twin-ui","owner":"patrickap","description":"Accessible react component library written in typescript ✌️.","archived":false,"fork":false,"pushed_at":"2025-11-20T19:39:24.000Z","size":7396,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T03:03:31.483Z","etag":null,"topics":["accessible","component","interface","layout","library","react","typescript","ui"],"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/patrickap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-02-09T23:11:51.000Z","updated_at":"2025-11-20T19:39:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f700e3d4-5483-4fce-b81b-39dd41645ae6","html_url":"https://github.com/patrickap/twin-ui","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/patrickap/twin-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickap%2Ftwin-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickap%2Ftwin-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickap%2Ftwin-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickap%2Ftwin-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickap","download_url":"https://codeload.github.com/patrickap/twin-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickap%2Ftwin-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29711642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T10:34:24.778Z","status":"ssl_error","status_checked_at":"2026-02-22T10:32:23.200Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["accessible","component","interface","layout","library","react","typescript","ui"],"created_at":"2024-11-06T19:37:14.407Z","updated_at":"2026-02-22T12:07:44.588Z","avatar_url":"https://github.com/patrickap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twin-ui\n\nAccessible React components for creating beautiful UIs. Built with Tailwind CSS, Radix UI, TypeScript, and React, this library provides simple, lightweight and easy-to-use components for building stunning UIs that are both beautiful and accessible.\n\nFurthermore, it comes with pre-configured animations and offers pre-designed components, layouts, and pages, making it an ideal choice for getting your project up and running quickly.\n\n## Images\n\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"100\" alt=\"button-preview-1\" src=\"docs/button-preview-1.png\"\u003e\n\u003cimg width=\"100\" alt=\"button-preview-2\" src=\"docs/button-preview-2.png\"\u003e\n\u003cimg width=\"100\" alt=\"checkbox-preview-1\" src=\"docs/checkbox-preview-1.png\"\u003e\n\u003cimg width=\"100\" alt=\"tooltip-preview-1\" src=\"docs/tooltip-preview-1.png\"\u003e\n\u003cimg width=\"300\" alt=\"input-preview-1\" src=\"docs/input-preview-1.png\"\u003e\n\u003cimg width=\"400\" alt=\"sign-in-preview-1\" src=\"docs/sign-in-preview-1.png\"\u003e\n\u003cimg width=\"400\" alt=\"toasts-preview-1\" src=\"docs/toasts-preview-1.png\"\u003e\n\u003cimg width=\"200\" alt=\"dropdown-preview-1\" src=\"docs/dropdown-preview-1.png\"\u003e\n\u003cimg width=\"500\" alt=\"dialog-preview-1\" src=\"docs/dialog-preview-1.png\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nTo use `twin-ui`, install the package via npm.\n\n```bash\nnpm install twin-ui\n\n# or install a specific version\nnpm install twin-ui@x.x.x\n```\n\nImport the styles in your `index.css`.\n\n```css\n@import \"twin-ui\";\n```\n\n## Examples\n\n**Button**\n\n```jsx\nimport { Button } from 'twin-ui';\n\nconst Component = () =\u003e (\n  \u003cButton color='primary' onClick={() =\u003e {...}}\u003e\n    Click\n  \u003c/Button\u003e\n);\n```\n\n**Dialog**\n\n```jsx\nimport { Dialogs, useDialog } from 'twin-ui';\n\nconst Component = () =\u003e {\n  const dialog = useDialog();\n\n  return (\n    \u003cButton onClick={() =\u003e dialog.open({...}))}\u003e\n      Click\n    \u003c/Button\u003e\n  );\n};\n\nconst App = () =\u003e {\n  return (\n    \u003c\u003e\n      \u003cComponent /\u003e\n      \u003cDialogs /\u003e\n    \u003c/\u003e\n  );\n}\n```\n\n**Center Layout**\n\n```jsx\nimport { CenterLayout } from 'twin-ui';\n\nconst Component = () =\u003e (\n  \u003cCenterLayout\u003e\n    \u003cdiv\u003eCentered\u003c/div\u003e\n  \u003c/CenterLayout\u003e\n);\n```\n\n## Customization\n\nThis component library is built with Tailwind CSS and supports full customization through CSS variables. You can override theme values globally using either the Tailwind specific `@theme` directive or the CSS `:root` selector in your `index.css`.\n\n**Note**: [Theme variables](https://tailwindcss.com/docs/theme) aren't just CSS variables — they also instruct Tailwind to create new utility classes that you can use in your HTML.\n\n```css\n/* Using the @theme directive */\n@theme {\n  --color-primary-50: #eef2ff;\n  --color-primary-100: #e0e7ff;\n  --color-primary-200: #c7d2fe;\n  --color-primary-300: #a5b4fc;\n  --color-primary-400: #818cf8;\n  --color-primary-500: #6366f1;\n  --color-primary-600: #4f46e5;\n  --color-primary-700: #4338ca;\n  --color-primary-800: #3730a3;\n  --color-primary-900: #312e81;\n  --color-primary-950: #1e1b4b;\n}\n\n/* Or via the :root pseudo-class */\n:root {\n  --color-primary-50: #eef2ff;\n  --color-primary-100: #e0e7ff;\n  --color-primary-200: #c7d2fe;\n  --color-primary-300: #a5b4fc;\n  --color-primary-400: #818cf8;\n  --color-primary-500: #6366f1;\n  --color-primary-600: #4f46e5;\n  --color-primary-700: #4338ca;\n  --color-primary-800: #3730a3;\n  --color-primary-900: #312e81;\n  --color-primary-950: #1e1b4b;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickap%2Ftwin-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickap%2Ftwin-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickap%2Ftwin-ui/lists"}