
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
topaz-react
Advanced tools
UI component library based on tailwindcss, heroicons. Topaz is a MIT licensed project that is developed and maintained by Antônio Zanotti.
UI component library based on tailwindcss, heroicons. Topaz is a MIT licensed project that is developed and maintained by Antônio Zanotti.
npm i -D topaz-react
Install Tailwind CSS (instructions here)
Update the tailwind.config.ts file:
import type { Config } from "tailwindcss";
import presetTopazReact from "topaz-react/src/preset/tailwind-preset-topaz-react";
const config: Config = {
content: ["./node_modules/topaz-react/src/components/**/*.{js,ts,jsx,tsx,mdx}"],
presets: [presetTopazReact],
};
export default config;
That's all! Topaz's components can be imported in your .tsx files.
import { TzButton } from 'topaz-react';
export default function Home() {
return <TzButton label="Button" />;
}
You can customize colours and font sizes, just update the tailwind.config.ts file.
import type { Config } from "tailwindcss";
import presetTopazReact from "topaz-react/src/preset/tailwind-preset-topaz-react";
const config: Config = {
content: ["./node_modules/topaz-react/src/components/*.{js,ts,jsx,tsx,mdx}"],
presets: [presetTopazReact],
theme: {
fontSize: {
c1: '10px',
c2: '12px',
c3: '14px',
c4: '16px',
c5: '20px',
c6: '24px',
c7: '32px',
c8: '36px',
c9: '40px',
c10: '48px',
c11: '64px',
c12: '96px',
},
colors: {
accent: {
DEFAULT: '#0891B2',
1: '#06B6D4',
2: '#22D3EE',
},
'dark-accent': {
DEFAULT: '#22D3EE',
1: '#06B6D4',
2: '#0891B2',
},
primary: {
DEFAULT: '#083344',
1: '#164E63',
2: '#155E75',
},
'dark-primary': {
DEFAULT: '#E2E8F0',
1: '#CBD5E1',
2: '#94A3B8',
},
secondary: {
DEFAULT: '#94A3B8',
1: '#CBD5E1',
2: '#E2E8F0',
},
'dark-secondary': {
DEFAULT: '#155E75',
1: '#164E63',
2: '#083344',
},
negative: {
DEFAULT: '#B91C1C',
1: '#DC2626',
2: '#EF4444',
},
'dark-negative': {
DEFAULT: '#EF4444',
1: '#DC2626',
2: '#B91C1C',
},
dark: {
DEFAULT: '#E5E7EB',
1: '#F3F4F6',
2: '#FFFFFF',
},
'dark-dark': {
DEFAULT: '#000000',
1: '#111827',
2: '#1F2937',
},
light: {
DEFAULT: '#000000',
1: '#111827',
2: '#1F2937',
},
'dark-light': {
DEFAULT: '#FFFFFF',
1: '#F3F4F6',
2: '#E5E7EB',
},
'inverse-accent': '#000000',
'inverse-dark-accent': '#000000',
'inverse-primary': '#FFFFFF',
'inverse-dark-primary': '#000000',
'inverse-secondary': '#000000',
'inverse-dark-secondary': '#FFFFFF',
'inverse-negative': '#FFFFFF',
'inverse-dark-negative': '#000000',
'inverse-dark': '#000000',
'inverse-dark-dark': '#FFFFFF',
'inverse-light': '#FFFFFF',
'inverse-dark-light': '#000000',
},
},
};
export default config;
The components was designed to work with these variants:
Light Theme:
Dark Theme:
You can use a color contrast checker to help calculate the contrast. The colours dark-2 and dark-dark-2 are used for background.
The colours swap with each other by 'dark-' prefix.
FAQs
UI component library based on tailwindcss, heroicons. Topaz is a MIT licensed project that is developed and maintained by Antônio Zanotti.
We found that topaz-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.