DARK DARK is a shadcn/ui theme built around a vivid deep blue primary color (#002c6a) with light blue accents (#f1f5f9). The light mode uses a neutral background (#f5f5f5). Dark mode switches to a muted cyan primary (#476f7a) on a blue-tinted background (#0e1014).
| Token | Light | Dark |
|---|---|---|
| Background | #f5f5f5whitesmoke | #0e1014black |
| Foreground | #020817black | #a1adb8darkgray |
| Card | #ffffffwhite | #151b23black |
| Card foreground | #020817black | #f8fafcghostwhite |
| Popover | #ffffffwhite | #090c14black |
| Popover foreground | #020817black | #f8fafcghostwhite |
| Primary | #002c6amidnightblue | #476f7adimgray |
| Primary foreground | #f8fafcghostwhite | #e2e2e2gainsboro |
| Secondary | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Secondary foreground | #0f172ablack | #a5a5a5darkgray |
| Muted | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Muted foreground | #64748bslategray | #94a3b8darkgray |
| Accent | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Accent foreground | #0f172ablack | #f8fafcghostwhite |
| Destructive | #ef4444tomato | #ad3737brown |
| Destructive foreground | #f8fafcghostwhite | #f8fafcghostwhite |
| Border | #e2e8f0lavender | #1e293bdarkslategray |
| Input | #e2e8f0lavender | #1e293bdarkslategray |
| Ring | #020817black | #cbd5e1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.35:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 12.79:1 | AAA |
| Secondary button | 16.30:1 | AAA |
| Muted text | 4.34:1 | AA Large |
| Accent | 16.30:1 | AAA |
| Destructive | 3.59:1 | AA Large |
| Text on background | 8.33:1 | AAA |
| Text on card | 16.49:1 | AAA |
| Primary button | 4.22:1 | AA Large |
| Secondary button | 5.92:1 | AA |
| Muted text | 5.69:1 | AA |
| Accent | 13.95:1 | AAA |
| Destructive | 5.94:1 | AA |
Paste this into your globals.css to use DARK DARK in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.97 0 187.595);
--foreground: oklch(0.137 0.036 258.526);
--muted: oklch(0.968 0.007 247.895);
--muted-foreground: oklch(0.555 0.041 257.44);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.137 0.036 258.526);
--card: oklch(1 0 180);
--card-foreground: oklch(0.137 0.036 258.526);
--border: oklch(0.929 0.013 255.532);
--input: oklch(0.929 0.013 255.532);
--primary: oklch(0.31 0.118 258.591);
--primary-foreground: oklch(0.984 0.003 247.859);
--secondary: oklch(0.968 0.007 247.895);
--secondary-foreground: oklch(0.208 0.04 265.727);
--accent: oklch(0.968 0.007 247.895);
--accent-foreground: oklch(0.208 0.04 265.727);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.984 0.003 247.859);
--ring: oklch(0.137 0.036 258.526);
--chart-1: oklch(0.31 0.118 258.591);
--chart-2: oklch(0.968 0.007 247.895);
--chart-3: oklch(0.968 0.007 247.895);
--chart-4: oklch(0.993 0.002 247.838);
--chart-5: oklch(0.31 0.121 258.583);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.172 0.008 267.343);
--foreground: oklch(0.741 0.021 248.118);
--muted: oklch(0.28 0.037 259.974);
--muted-foreground: oklch(0.711 0.035 256.788);
--popover: oklch(0.155 0.017 266.512);
--popover-foreground: oklch(0.984 0.003 247.859);
--card: oklch(0.221 0.018 253.391);
--card-foreground: oklch(0.984 0.003 247.859);
--border: oklch(0.28 0.037 259.974);
--input: oklch(0.28 0.037 259.974);
--primary: oklch(0.517 0.047 216.074);
--primary-foreground: oklch(0.911 0 161.565);
--secondary: oklch(0.28 0.037 259.974);
--secondary-foreground: oklch(0.721 0 180);
--accent: oklch(0.28 0.037 259.974);
--accent-foreground: oklch(0.984 0.003 247.859);
--destructive: oklch(0.51 0.153 24.367);
--destructive-foreground: oklch(0.984 0.003 247.859);
--ring: oklch(0.869 0.02 252.847);
--chart-1: oklch(0.517 0.047 216.074);
--chart-2: oklch(0.28 0.037 259.974);
--chart-3: oklch(0.28 0.037 259.974);
--chart-4: oklch(0.308 0.042 259.957);
--chart-5: oklch(0.521 0.052 216.281);
}