Golden is a shadcn/ui theme built around an orange primary color (#c69858) with blue accents (#5886c6). The light mode uses a neutral background (#fefdfb). Dark mode keeps the orange primary (#c69858) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #000000black |
| Foreground | #050301black | #ffffffwhite |
| Card | #fdfaf7snow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfaf7snow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c69858peru | #c69858peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #5886c6steelblue | #5886c6steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dadde1gainsboro | #1e2125black |
| Muted foreground | #3f444bdarkslategray | #b4b9c0silver |
| Accent | #5886c6steelblue | #5886c6steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #aa1f13firebrick | #e83c2ccrimson |
| Destructive foreground | #fdf2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c69858peru | #c69858peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 3.73:1 | AA Large |
| Muted text | 7.21:1 | AAA |
| Accent | 3.73:1 | AA Large |
| Destructive | 6.56:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 3.73:1 | AA Large |
| Muted text | 8.23:1 | AAA |
| Accent | 3.73:1 | AA Large |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Golden in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 76.641);
--foreground: oklch(0.098 0.015 86.454);
--muted: oklch(0.897 0.007 256.682);
--muted-foreground: oklch(0.384 0.014 256.765);
--popover: oklch(0.987 0.005 76.63);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 76.63);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.709 0.099 74.348);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.614 0.11 256.962);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.614 0.11 256.962);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.478 0.175 29.986);
--destructive-foreground: oklch(0.97 0.012 23.706);
--ring: oklch(0.709 0.099 74.348);
--chart-1: oklch(0.709 0.099 74.348);
--chart-2: oklch(0.614 0.11 256.962);
--chart-3: oklch(0.614 0.11 256.962);
--chart-4: oklch(0.64 0.102 256.915);
--chart-5: oklch(0.713 0.104 74.073);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.244 0.009 256.767);
--muted-foreground: oklch(0.784 0.012 256.708);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.709 0.099 74.348);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.614 0.11 256.962);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.614 0.11 256.962);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.614 0.211 29.629);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.099 74.348);
--chart-1: oklch(0.709 0.099 74.348);
--chart-2: oklch(0.614 0.11 256.962);
--chart-3: oklch(0.614 0.11 256.962);
--chart-4: oklch(0.64 0.102 256.915);
--chart-5: oklch(0.713 0.104 74.073);
}