{"id":47688114,"url":"https://github.com/antoniozanotti/topaz-react","last_synced_at":"2026-04-02T15:03:34.255Z","repository":{"id":224767972,"uuid":"716721263","full_name":"antoniozanotti/topaz-react","owner":"antoniozanotti","description":"UI component library based on tailwindcss, heroicons.","archived":false,"fork":false,"pushed_at":"2024-10-23T20:14:43.000Z","size":1312,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T11:35:43.356Z","etag":null,"topics":["css","frontend","html","javascript","jest","microfrontend","nextjs","nodejs","react","storybook","tailwindcss","test-automation","testing-library","typescript","ui-components","unit-testing"],"latest_commit_sha":null,"homepage":"https://topaz-react.netlify.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/antoniozanotti.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-09T18:23:04.000Z","updated_at":"2024-10-23T20:14:47.000Z","dependencies_parsed_at":"2024-08-26T23:18:06.787Z","dependency_job_id":"101a40a3-f69e-404b-b51c-1d6e117ffb77","html_url":"https://github.com/antoniozanotti/topaz-react","commit_stats":null,"previous_names":["antoniozanotti/topaz-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antoniozanotti/topaz-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniozanotti%2Ftopaz-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniozanotti%2Ftopaz-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniozanotti%2Ftopaz-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniozanotti%2Ftopaz-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoniozanotti","download_url":"https://codeload.github.com/antoniozanotti/topaz-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniozanotti%2Ftopaz-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["css","frontend","html","javascript","jest","microfrontend","nextjs","nodejs","react","storybook","tailwindcss","test-automation","testing-library","typescript","ui-components","unit-testing"],"created_at":"2026-04-02T15:03:33.199Z","updated_at":"2026-04-02T15:03:34.234Z","avatar_url":"https://github.com/antoniozanotti.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Topaz for React Projects ;)\n\nUI component library based on [tailwindcss](https://tailwindcss.com/), [heroicons](https://heroicons.com/). Topaz is a [MIT licensed](https://opensource.org/license/mit/) project that is developed and maintained by [Antônio Zanotti](https://www.linkedin.com/in/antoniozanotti/).\n\n# Install Topaz React\n\n```sh\nnpm i -D topaz-react\n```\n\nInstall Tailwind CSS [(instructions here)](https://tailwindcss.com/docs/installation)\n\nUpdate the tailwind.config.ts file:\n\n```ts\nimport type { Config } from \"tailwindcss\";\nimport presetTopazReact from \"topaz-react/src/preset/tailwind-preset-topaz-react\";\n\nconst config: Config = {\n  content: [\"./node_modules/topaz-react/src/components/**/*.{js,ts,jsx,tsx,mdx}\"],\n  presets: [presetTopazReact],\n};\nexport default config;\n```\n\nThat's all! Topaz's components can be imported in your .tsx files.\n\n```jsx\nimport { TzButton } from 'topaz-react';\n\nexport default function Home() {\n  return \u003cTzButton label=\"Button\" /\u003e;\n}\n```\n\n# Tailwind CSS Preset Topaz React\n\nYou can customize **colours** and **font sizes**, just update the tailwind.config.ts file.\n\n```ts\nimport type { Config } from \"tailwindcss\";\nimport presetTopazReact from \"topaz-react/src/preset/tailwind-preset-topaz-react\";\n\nconst config: Config = {\n  content: [\"./node_modules/topaz-react/src/components/*.{js,ts,jsx,tsx,mdx}\"],\n  presets: [presetTopazReact],\n  theme: {\n    fontSize: {\n      c1: '10px',\n      c2: '12px',\n      c3: '14px',\n      c4: '16px',\n      c5: '20px',\n      c6: '24px',\n      c7: '32px',\n      c8: '36px',\n      c9: '40px',\n      c10: '48px',\n      c11: '64px',\n      c12: '96px',\n    },\n    colors: {\n      accent: {\n        DEFAULT: '#0891B2',\n        1: '#06B6D4',\n        2: '#22D3EE',\n      },\n      'dark-accent': {\n        DEFAULT: '#22D3EE',\n        1: '#06B6D4',\n        2: '#0891B2',\n      },\n      primary: {\n        DEFAULT: '#083344',\n        1: '#164E63',\n        2: '#155E75',\n      },\n      'dark-primary': {\n        DEFAULT: '#E2E8F0',\n        1: '#CBD5E1',\n        2: '#94A3B8',\n      },\n      secondary: {\n        DEFAULT: '#94A3B8',\n        1: '#CBD5E1',\n        2: '#E2E8F0',\n      },\n      'dark-secondary': {\n        DEFAULT: '#155E75',\n        1: '#164E63',\n        2: '#083344',\n      },\n      negative: {\n        DEFAULT: '#B91C1C',\n        1: '#DC2626',\n        2: '#EF4444',\n      },\n      'dark-negative': {\n        DEFAULT: '#EF4444',\n        1: '#DC2626',\n        2: '#B91C1C',\n      },\n      dark: {\n        DEFAULT: '#E5E7EB',\n        1: '#F3F4F6',\n        2: '#FFFFFF',\n      },\n      'dark-dark': {\n        DEFAULT: '#000000',\n        1: '#111827',\n        2: '#1F2937',\n      },\n      light: {\n        DEFAULT: '#000000',\n        1: '#111827',\n        2: '#1F2937',\n      },\n      'dark-light': {\n        DEFAULT: '#FFFFFF',\n        1: '#F3F4F6',\n        2: '#E5E7EB',\n      },\n      'inverse-accent': '#000000',\n      'inverse-dark-accent': '#000000',\n      'inverse-primary': '#FFFFFF',\n      'inverse-dark-primary': '#000000',\n      'inverse-secondary': '#000000',\n      'inverse-dark-secondary': '#FFFFFF',\n      'inverse-negative': '#FFFFFF',\n      'inverse-dark-negative': '#000000',\n      'inverse-dark': '#000000',\n      'inverse-dark-dark': '#FFFFFF',\n      'inverse-light': '#FFFFFF',\n      'inverse-dark-light': '#000000',\n    },\n  },\n};\nexport default config;\n```\n\n### Design Point of View\n\nThe components was designed to work with these variants:\n\nLight Theme:\n- **accent**: colors for greatest emphasis.\n- **primary**: colors for medium emphasis.\n- **secondary**: colors for lowest emphasis.\n- **negative**: colors for emphasizing actions that can be destructive.\n- **dark**: light colors.\n- **light**: dark colors.\n- **inverse-accent**: text color above a accent background.\n- **inverse-primary**: text color above a primary background.\n- **inverse-secondary**: text color above a secondary background.\n- **inverse-negative**: text color above a negative background.\n- **inverse-dark**: text color above a dark background.\n- **inverse-light**: text color above a light background.\n\nDark Theme:\n- **dark-accent**: accent colors on dark theme.\n- **dark-primary**: primary colors on dark theme.\n- **dark-secondary**: secondary colors on dark theme.\n- **dark-negative**: negative colors on dark theme.\n- **dark-dark**: light colors.\n- **dark-light**: dark colors.\n- **inverse-dark-accent**: text color above a accent background on dark theme.\n- **inverse-dark-primary**: text color above a primary background on dark theme.\n- **inverse-dark-secondary**: text color above a secondary background on dark theme.\n- **inverse-dark-negative**: text color above a negative background on dark theme.\n- **inverse-dark-dark**: text color above a dark background on dark theme.\n- **inverse-dark-light**: text color above a light background on dark theme.\n\n**_You can use a [color contrast checker](https://colorkit.co/contrast-checker/) to help calculate the contrast. The colours dark-2 and dark-dark-2 are used for background._**\n\n# Features\n\n- **Components**: visit the [official documentation](https://topaz-react.netlify.app/) to see available components.\n- **Dark and Light Theme**: it uses [class strategy](https://tailwindcss.com/docs/dark-mode) of [tailwindcss](https://tailwindcss.com/).\n- **Responsive**: some components on screens larger than or equal to 1024px will be ~20% smaller than mobile version.\n\n**_The colours swap with each other by 'dark-' prefix._**\n\n# Inpired In\n\n- [Spectrum](https://spectrum.adobe.com/), Adobe’s design system\n- [Vitamin](https://github.com/Decathlon/vitamin-web), Decathlon's design system\n- [Vuetify](https://github.com/vuetifyjs/vuetify), Vue Component Framework","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniozanotti%2Ftopaz-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoniozanotti%2Ftopaz-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniozanotti%2Ftopaz-react/lists"}