Derby is a shadcn/ui theme built around a vivid purple primary color (#f183df) with vivid green accents (#83f195). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the vivid purple primary (#f183df) on a neutral background (#080307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #080307black |
| Foreground | #040103black | #fbf9fasnow |
| Card | #fdf7fcsnow | #080307black |
| Card foreground | #040103black | #fbf9fasnow |
| Popover | #fdf7fcsnow | #080307black |
| Popover foreground | #040103black | #fbf9fasnow |
| Primary | #f183dfviolet | #f183dfviolet |
| Primary foreground | #3c0733midnightblue | #3c0733midnightblue |
| Secondary | #83f195lightgreen | #83f195lightgreen |
| Secondary foreground | #073c0fdarkgreen | #073c0fdarkgreen |
| Muted | #e5ebe6gainsboro | #141a15black |
| Muted foreground | #485149darkslategray | #aeb7afdarkgray |
| Accent | #83f195lightgreen | #83f195lightgreen |
| Accent foreground | #073c0fdarkgreen | #073c0fdarkgreen |
| Destructive | #be200efirebrick | #ef3925orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f183dfviolet | #f183dfviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 9.03:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 8.58:1 | AAA |
| Accent | 9.03:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Derby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 330.945);
--foreground: oklch(0.086 0.018 331.816);
--muted: oklch(0.934 0.009 150.686);
--muted-foreground: oklch(0.425 0.017 150.256);
--popover: oklch(0.982 0.009 330.945);
--popover-foreground: oklch(0.086 0.018 331.816);
--card: oklch(0.982 0.009 330.945);
--card-foreground: oklch(0.086 0.018 331.816);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.761 0.174 333.658);
--primary-foreground: oklch(0.25 0.098 335.979);
--secondary: oklch(0.871 0.162 147.81);
--secondary-foreground: oklch(0.311 0.09 145.324);
--accent: oklch(0.871 0.162 147.81);
--accent-foreground: oklch(0.311 0.09 145.324);
--destructive: oklch(0.516 0.194 30.511);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.761 0.174 333.658);
--chart-1: oklch(0.761 0.174 333.658);
--chart-2: oklch(0.871 0.162 147.81);
--chart-3: oklch(0.871 0.162 147.81);
--chart-4: oklch(0.883 0.146 148.223);
--chart-5: oklch(0.761 0.179 333.753);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.02 331.703);
--foreground: oklch(0.984 0.002 330.851);
--muted: oklch(0.209 0.013 149.921);
--muted-foreground: oklch(0.77 0.015 150.556);
--popover: oklch(0.109 0.02 331.703);
--popover-foreground: oklch(0.984 0.002 330.851);
--card: oklch(0.109 0.02 331.703);
--card-foreground: oklch(0.984 0.002 330.851);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.761 0.174 333.658);
--primary-foreground: oklch(0.25 0.098 335.979);
--secondary: oklch(0.871 0.162 147.81);
--secondary-foreground: oklch(0.311 0.09 145.324);
--accent: oklch(0.871 0.162 147.81);
--accent-foreground: oklch(0.311 0.09 145.324);
--destructive: oklch(0.623 0.22 30.426);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.761 0.174 333.658);
--chart-1: oklch(0.761 0.174 333.658);
--chart-2: oklch(0.871 0.162 147.81);
--chart-3: oklch(0.871 0.162 147.81);
--chart-4: oklch(0.883 0.146 148.223);
--chart-5: oklch(0.761 0.179 333.753);
}