Defiant Gold is a shadcn/ui theme built around a vivid yellow primary color (#ffd60a) with yellow accents (#d2c064). The light mode uses a yellow-tinted background (#fff8d6). Dark mode keeps the vivid yellow primary (#ffd60a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fff8d6cornsilk | #000000black |
| Foreground | #000000black | #fbfbf9snow |
| Card | #ffee9epalegoldenrod | #030303black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffee9epalegoldenrod | #030303black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #ffd60agold | #ffd60agold |
| Primary foreground | #3d3300darkolivegreen | #3d3300darkolivegreen |
| Secondary | #d8ce9dtan | #25241dblack |
| Secondary foreground | #000000black | #c3c0b1silver |
| Muted | #ffee9epalegoldenrod | #262317black |
| Muted foreground | #000000black | #bebebbsilver |
| Accent | #d2c064darkkhaki | #25241dblack |
| Accent foreground | #000000black | #c3c0b1silver |
| Destructive | #931c01darkred | #fe4016orangered |
| Destructive foreground | #ffd1c7peachpuff | #ffffffwhite |
| Border | #ffd60agold | #2c2a21darkslategray |
| Input | #ffd60agold | #2c2a21darkslategray |
| Ring | #ffd60agold | #ffd60agold |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 18.01:1 | AAA |
| Primary button | 8.90:1 | AAA |
| Secondary button | 13.23:1 | AAA |
| Muted text | 17.97:1 | AAA |
| Accent | 11.46:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 8.90:1 | AAA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 8.40:1 | AAA |
| Accent | 8.51:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Defiant Gold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.976 0.045 97.547);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.101 97.64);
--muted-foreground: oklch(0 0 0);
--popover: oklch(0.945 0.101 97.64);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.946 0.102 97.981);
--card-foreground: oklch(0 0 0);
--border: oklch(0.885 0.181 94.786);
--input: oklch(0.885 0.181 94.786);
--primary: oklch(0.885 0.181 94.87);
--primary-foreground: oklch(0.322 0.066 96.829);
--secondary: oklch(0.848 0.065 97.904);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.804 0.115 98.469);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.431 0.158 33.068);
--destructive-foreground: oklch(0.898 0.053 32.799);
--ring: oklch(0.885 0.181 94.87);
--chart-1: oklch(0.885 0.181 94.87);
--chart-2: oklch(0.848 0.065 97.904);
--chart-3: oklch(0.804 0.115 98.469);
--chart-4: oklch(0.865 0.058 97.827);
--chart-5: oklch(0.894 0.183 94.625);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.003 97.298);
--muted: oklch(0.257 0.022 98.156);
--muted-foreground: oklch(0.8 0.003 97.312);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.994 0.001 97.279);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.001 97.279);
--border: oklch(0.283 0.016 97.919);
--input: oklch(0.283 0.016 97.919);
--primary: oklch(0.885 0.181 94.87);
--primary-foreground: oklch(0.322 0.066 96.829);
--secondary: oklch(0.259 0.013 97.864);
--secondary-foreground: oklch(0.806 0.021 97.589);
--accent: oklch(0.259 0.013 97.864);
--accent-foreground: oklch(0.806 0.021 97.589);
--destructive: oklch(0.655 0.23 33.209);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.181 94.87);
--chart-1: oklch(0.885 0.181 94.87);
--chart-2: oklch(0.259 0.013 97.864);
--chart-3: oklch(0.259 0.013 97.864);
--chart-4: oklch(0.293 0.016 97.891);
--chart-5: oklch(0.894 0.183 94.625);
}