Secondary is a shadcn/ui theme built around a near-black primary color (#030302) with near-black accents (#030302). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030302) on an orange-tinted background (#0f0b06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0b06black |
| Foreground | #170e03black | #fdfdfcwhite |
| Card | #ffffffwhite | #0f0b06black |
| Card foreground | #170e03black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0f0b06black |
| Popover foreground | #170e03black | #fdfdfcwhite |
| Primary | #030302black | #030302black |
| Primary foreground | #9e9c9adarkgray | #9e9c9adarkgray |
| Secondary | #030302black | #030302black |
| Secondary foreground | #9e9a9adarkgray | #9e9a9adarkgray |
| Muted | #f4e7e6linen | #190c0bblack |
| Muted foreground | #585150dimgray | #afa7a7darkgray |
| Accent | #030302black | #030302black |
| Accent foreground | #9d9e9adarkgray | #9d9e9adarkgray |
| Destructive | #a4110adarkred | #f1190ered |
| Destructive foreground | #fde3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030302black | #030302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Secondary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.173 0.029 78.584);
--muted: oklch(0.939 0.014 23.73);
--muted-foreground: oklch(0.441 0.01 23.821);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.173 0.029 78.584);
--card: oklch(1 0 180);
--card-foreground: oklch(0.173 0.029 78.584);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.092 0 76.92);
--primary-foreground: oklch(0.693 0.004 76.626);
--secondary: oklch(0.092 0 23.698);
--secondary-foreground: oklch(0.689 0.004 23.642);
--accent: oklch(0.092 0.001 110.315);
--accent-foreground: oklch(0.696 0.006 110.4);
--destructive: oklch(0.458 0.179 29.395);
--destructive-foreground: oklch(0.938 0.029 21.294);
--ring: oklch(0.092 0 76.92);
--chart-1: oklch(0.092 0 76.92);
--chart-2: oklch(0.092 0 23.698);
--chart-3: oklch(0.092 0.001 110.315);
--chart-4: oklch(0.145 0.001 23.669);
--chart-5: oklch(0.092 0.001 77.319);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.014 78.995);
--foreground: oklch(0.993 0.001 76.647);
--muted: oklch(0.173 0.023 25.33);
--muted-foreground: oklch(0.736 0.009 23.702);
--popover: oklch(0.152 0.014 78.995);
--popover-foreground: oklch(0.993 0.001 76.647);
--card: oklch(0.152 0.014 78.995);
--card-foreground: oklch(0.993 0.001 76.647);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.092 0 76.92);
--primary-foreground: oklch(0.693 0.004 76.626);
--secondary: oklch(0.092 0 23.698);
--secondary-foreground: oklch(0.689 0.004 23.642);
--accent: oklch(0.092 0.001 110.315);
--accent-foreground: oklch(0.696 0.006 110.4);
--destructive: oklch(0.608 0.24 29.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0 76.92);
--chart-1: oklch(0.092 0 76.92);
--chart-2: oklch(0.092 0 23.698);
--chart-3: oklch(0.092 0.001 110.315);
--chart-4: oklch(0.145 0.001 23.669);
--chart-5: oklch(0.092 0.001 77.319);
}