Derrick is a shadcn/ui theme built around a muted deep red primary color (#161312) with muted light red accents (#e9dedd). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted deep red primary (#161312) on a red-tinted background (#0c0404).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #0c0404black |
| Foreground | #040101black | #f9f6f6whitesmoke |
| Card | #fbf5f4whitesmoke | #100605black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fcf8f8snow | #0c0404black |
| Popover foreground | #040101black | #f9f6f6whitesmoke |
| Primary | #161312black | #161312black |
| Primary foreground | #b6a7a5darkgray | #b6a7a5darkgray |
| Secondary | #e9deddgainsboro | #3b2d2bdarkslategray |
| Secondary foreground | #593e3bdarkolivegreen | #d4c6c4lightgrey |
| Muted | #e7d7d5gainsboro | #2a1a18black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #e9deddgainsboro | #3b2d2bdarkslategray |
| Accent foreground | #593e3bdarkolivegreen | #d4c6c4lightgrey |
| Destructive | #650b06maroon | #f2362ccrimson |
| Destructive foreground | #f9a8a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161312black | #161312black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Derrick in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 25.027);
--foreground: oklch(0.083 0.016 32.015);
--muted: oklch(0.891 0.018 25.166);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.982 0.004 25.027);
--popover-foreground: oklch(0.083 0.016 32.015);
--card: oklch(0.974 0.007 25.046);
--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.19 0.006 25.282);
--primary-foreground: oklch(0.74 0.017 25.195);
--secondary: oklch(0.91 0.011 25.093);
--secondary-foreground: oklch(0.393 0.038 26.068);
--accent: oklch(0.91 0.011 25.093);
--accent-foreground: oklch(0.393 0.038 26.068);
--destructive: oklch(0.326 0.122 29.244);
--destructive-foreground: oklch(0.81 0.096 22.739);
--ring: oklch(0.19 0.006 25.282);
--chart-1: oklch(0.19 0.006 25.282);
--chart-2: oklch(0.91 0.011 25.093);
--chart-3: oklch(0.91 0.011 25.093);
--chart-4: oklch(0.935 0.008 25.061);
--chart-5: oklch(0.189 0.008 25.389);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.017 29.601);
--foreground: oklch(0.976 0.003 25.013);
--muted: oklch(0.238 0.026 26.259);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.123 0.017 29.601);
--popover-foreground: oklch(0.976 0.003 25.013);
--card: oklch(0.137 0.02 29.126);
--card-foreground: oklch(0.984 0.002 25.005);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.19 0.006 25.282);
--primary-foreground: oklch(0.74 0.017 25.195);
--secondary: oklch(0.312 0.021 25.666);
--secondary-foreground: oklch(0.837 0.016 25.151);
--accent: oklch(0.312 0.021 25.666);
--accent-foreground: oklch(0.837 0.016 25.151);
--destructive: oklch(0.627 0.224 28.6);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.19 0.006 25.282);
--chart-1: oklch(0.19 0.006 25.282);
--chart-2: oklch(0.312 0.021 25.666);
--chart-3: oklch(0.312 0.021 25.666);
--chart-4: oklch(0.341 0.023 25.691);
--chart-5: oklch(0.189 0.008 25.389);
}