{"id":36499318,"url":"https://github.com/luxo-ai/rothko-ui","last_synced_at":"2026-01-12T02:16:51.608Z","repository":{"id":63736363,"uuid":"534864906","full_name":"luxo-ai/rothko-ui","owner":"luxo-ai","description":"React UI Component Library","archived":false,"fork":false,"pushed_at":"2025-04-07T14:42:13.000Z","size":7275,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-11T19:42:08.467Z","etag":null,"topics":["component","dark-mode","library","react","react-component-library","react-components","theme","ui","ux"],"latest_commit_sha":null,"homepage":"https://rothko-ui.com","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/luxo-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"luxo-ai"}},"created_at":"2022-09-10T02:09:05.000Z","updated_at":"2025-04-05T22:15:14.000Z","dependencies_parsed_at":"2024-04-27T19:22:00.823Z","dependency_job_id":"82dabb85-35d2-4b5e-a35f-fc5252ef23dc","html_url":"https://github.com/luxo-ai/rothko-ui","commit_stats":{"total_commits":362,"total_committers":1,"mean_commits":362.0,"dds":0.0,"last_synced_commit":"21e86aa483a2dd7c8c93dfef8fb2e2ed2d505380"},"previous_names":[],"tags_count":115,"template":false,"template_full_name":null,"purl":"pkg:github/luxo-ai/rothko-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxo-ai%2Frothko-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxo-ai%2Frothko-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxo-ai%2Frothko-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxo-ai%2Frothko-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luxo-ai","download_url":"https://codeload.github.com/luxo-ai/rothko-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxo-ai%2Frothko-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["component","dark-mode","library","react","react-component-library","react-components","theme","ui","ux"],"created_at":"2026-01-12T02:16:50.310Z","updated_at":"2026-01-12T02:16:51.594Z","avatar_url":"https://github.com/luxo-ai.png","language":"TypeScript","funding_links":["https://github.com/sponsors/luxo-ai"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./assets/logo.png\" alt=\"rothko-ui\"/\u003e\n\n# rothko-ui\n\nWelcome to rothko-ui, an expressive react component library designed with flexibility in mind.\n\n### Key Packages\n\n- `@rothko-ui/react` The main package containing all components.\n\n- `@rothko-ui/system` Shared components, helper functions, and React hooks.\n\n- `@rothko-ui/icons` A set of customizable SVG icons.\n\n- `@rothko-ui/tokens` A style system to generates CSS variables for theming.\n\n## Using rothko-ui\n\n### Installation\n\n##### tailwindcss 🌀\n\nRothko-ui is built off of tailwindcss v4.x. To use rothko-ui, first follow the installation guide in the [official docs](https://tailwindcss.com/docs/installation/using-vite).\n\n##### rothko-ui 🖌️\n\nOnce you've gotten tailwind set-up, you can now install the rothko packages:\n\n```bash\nyarn add @rothko-ui/react @rothko-ui/icons @rothko-ui/tokens\n```\n\n### Registering sources\n\nWherever you've added `@import \"tailwindcss\";`\nIn you `globals.css` file, you'll need to register the rothko source files. You can do so using the `@source` directive.\n\n```css\n@import 'tailwindcss';\n@source '../../node_modules/@rothko-ui';\n```\n\n**Note**: Depending on the structure of your project, `node_modules` may be located in a different location.\n\nFor more information on registering source files see the tailwindcss [docs](https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-registering-sources).\n\n### Adding theme tokens\n\nYou'll then need to add the theme tokens you installed in first step.\n\n```css\n@import 'tailwindcss';\n@source \"../../node_modules/@rothko-ui\";\n@import '@rothko-ui/tokens/style.css';\n```\n\n## Basic Component Usage\n\nAfter setting up you `global.css` file, you can now import and use the components:\n\n```jsx\nimport { Button } from '@rothko-ui/react';\n\nfunction MyComponent() {\n  return \u003cButton\u003eClick Me\u003c/Button\u003e;\n}\n```\n\n### Using Icons\n\nThe `@rothko-ui/icons` package provides a range of useful SVG icons:\n\n```jsx\nimport { HeartIcon } from '@rothko-ui/icons';\n\nfunction MyComponent() {\n  return \u003cHeartIcon /\u003e;\n}\n```\n\n## Next.js / SSR\n\nIn Next.js with Server-Side Rendering (SSR), components that utilize React Context from rothko-ui require the 'use client' directive. This is because React Context relies on client-side rendering, and it is not supported in SSR.\n\nTo ensure that components that depend on React Context from rothko-ui function correctly, you must add the 'use client' directive at the top of the component file. Here’s an example:\n\n```jsx\n'use client';\n\nimport { Accordion, AccordionPanel } from '@rothko-ui/react';\nimport MyComponent from './MyComponent';\n\nexport default function App() {\n  return (\n    \u003cAccordion\u003e\n      \u003cAccordionPanel label=\"My Label 1\"\u003e\n        Content 1\n      \u003c/AddordionPanel\u003e\n      \u003cAccordionPanel label=\"My Label 2\"\u003e\n        Content 2\n      \u003c/AddordionPanel\u003e\n    \u003c/Accordion\u003e\n  );\n}\n```\n\nThis directive tells Next.js that the component (and its children) should be rendered on the client side, enabling React Context to work as expected.\n\nFor more information, visit the official next.js [docs](https://nextjs.org/docs/messages/context-in-server-component).\n\n## Author\n\n@luxo-ai \u003cluxo.ai@proton.me\u003e\n\nSupport the project: `0x7A67fF6354d983B6cfc3a7f7C5BA93f73C864b32`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxo-ai%2Frothko-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluxo-ai%2Frothko-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxo-ai%2Frothko-ui/lists"}