Derby is a shadcn/ui theme built around a vivid light orange primary color (#f6c9a2) with vivid light violet accents (#c9a2f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light orange primary (#f6c9a2) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070503black |
| Foreground | #000000black | #f9f7f6whitesmoke |
| Card | #fcfcfcsnow | #0a0705black |
| Card foreground | #000000black | #fbfaf9snow |
| Popover | #fcfcfcsnow | #0a0705black |
| Popover foreground | #000000black | #fbfaf9snow |
| Primary | #f6c9a2navajowhite | #f6c9a2navajowhite |
| Primary foreground | #5d3009saddlebrown | #5d3009saddlebrown |
| Secondary | #a2f6c9aquamarine | #a2f6c9aquamarine |
| Secondary foreground | #095d30darkgreen | #095d30darkgreen |
| Muted | #cee3d8gainsboro | #1c3126darkslategray |
| Muted foreground | #53655bdimgray | #9aaca3darkgray |
| Accent | #c9a2f6plum | #c9a2f6plum |
| Accent foreground | #30095dmidnightblue | #30095dmidnightblue |
| Destructive | #862004darkred | #f84716orangered |
| Destructive foreground | #fdccbfpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6c9a2navajowhite | #f6c9a2navajowhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 4.63:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 5.81:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Derby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.028 162.649);
--muted-foreground: oklch(0.488 0.027 161.956);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.866 0.072 62.831);
--primary-foreground: oklch(0.361 0.081 55.93);
--secondary: oklch(0.907 0.102 160.15);
--secondary-foreground: oklch(0.421 0.104 152.972);
--accent: oklch(0.778 0.123 305.127);
--accent-foreground: oklch(0.27 0.132 297.286);
--destructive: oklch(0.409 0.141 34.682);
--destructive-foreground: oklch(0.885 0.059 35.968);
--ring: oklch(0.866 0.072 62.831);
--chart-1: oklch(0.866 0.072 62.831);
--chart-2: oklch(0.907 0.102 160.15);
--chart-3: oklch(0.778 0.123 305.127);
--chart-4: oklch(0.92 0.088 160.739);
--chart-5: oklch(0.867 0.075 62.773);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.008 69.419);
--foreground: oklch(0.978 0.003 64.056);
--muted: oklch(0.291 0.035 159.926);
--muted-foreground: oklch(0.728 0.025 162.557);
--popover: oklch(0.134 0.009 69.388);
--popover-foreground: oklch(0.985 0.002 64.067);
--card: oklch(0.134 0.009 69.388);
--card-foreground: oklch(0.985 0.002 64.067);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.866 0.072 62.831);
--primary-foreground: oklch(0.361 0.081 55.93);
--secondary: oklch(0.907 0.102 160.15);
--secondary-foreground: oklch(0.421 0.104 152.972);
--accent: oklch(0.778 0.123 305.127);
--accent-foreground: oklch(0.27 0.132 297.286);
--destructive: oklch(0.651 0.22 34.737);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.866 0.072 62.831);
--chart-1: oklch(0.866 0.072 62.831);
--chart-2: oklch(0.907 0.102 160.15);
--chart-3: oklch(0.778 0.123 305.127);
--chart-4: oklch(0.92 0.088 160.739);
--chart-5: oklch(0.867 0.075 62.773);
}