Gold is a shadcn/ui theme built around a vivid light pink primary color (#fde3eb) with vivid light blue accents (#e3ebfd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light pink primary (#fde3eb) on a pink-tinted background (#100408).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100408black |
| Foreground | #120307black | #fbf8f9snow |
| Card | #ffffffwhite | #100408black |
| Card foreground | #120307black | #fbf8f9snow |
| Popover | #ffffffwhite | #100408black |
| Popover foreground | #120307black | #fbf8f9snow |
| Primary | #fde3ebmistyrose | #fde3ebmistyrose |
| Primary foreground | #a00d3cbrown | #a00d3cbrown |
| Secondary | #ebfde3honeydew | #ebfde3honeydew |
| Secondary foreground | #194205darkgreen | #194205darkgreen |
| Muted | #e2e6e0gainsboro | #1b1f19black |
| Muted foreground | #515c4ddarkolivegreen | #a8b2a3darkgray |
| Accent | #e3ebfdlavender | #e3ebfdlavender |
| Accent foreground | #0d3ca0midnightblue | #0d3ca0midnightblue |
| Destructive | #cf5a17chocolate | #eb8347coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fde3ebmistyrose | #fde3ebmistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 10.77:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.09:1 | AA Large |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 10.77:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.87:1 | AAA |
Paste this into your globals.css to use Gold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.035 357.402);
--muted: oklch(0.92 0.01 135.476);
--muted-foreground: oklch(0.46 0.027 135.694);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.035 357.402);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.035 357.402);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.938 0.03 356.532);
--primary-foreground: oklch(0.456 0.175 12.178);
--secondary: oklch(0.973 0.039 135.604);
--secondary-foreground: oklch(0.336 0.098 138.198);
--accent: oklch(0.939 0.026 265.863);
--accent-foreground: oklch(0.398 0.17 262.704);
--destructive: oklch(0.607 0.164 44.964);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.938 0.03 356.532);
--chart-1: oklch(0.938 0.03 356.532);
--chart-2: oklch(0.973 0.039 135.604);
--chart-3: oklch(0.939 0.026 265.863);
--chart-4: oklch(0.986 0.019 135.513);
--chart-5: oklch(0.938 0.031 356.565);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.026 357.031);
--foreground: oklch(0.983 0.004 355.722);
--muted: oklch(0.234 0.014 135.704);
--muted-foreground: oklch(0.752 0.024 135.568);
--popover: oklch(0.134 0.026 357.031);
--popover-foreground: oklch(0.983 0.004 355.722);
--card: oklch(0.134 0.026 357.031);
--card-foreground: oklch(0.983 0.004 355.722);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.938 0.03 356.532);
--primary-foreground: oklch(0.456 0.175 12.178);
--secondary: oklch(0.973 0.039 135.604);
--secondary-foreground: oklch(0.336 0.098 138.198);
--accent: oklch(0.939 0.026 265.863);
--accent-foreground: oklch(0.398 0.17 262.704);
--destructive: oklch(0.713 0.147 48.797);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.938 0.03 356.532);
--chart-1: oklch(0.938 0.03 356.532);
--chart-2: oklch(0.973 0.039 135.604);
--chart-3: oklch(0.939 0.026 265.863);
--chart-4: oklch(0.986 0.019 135.513);
--chart-5: oklch(0.938 0.031 356.565);
}