One Dark Pro Darker is a shadcn/ui theme built around a muted light blue primary color (#d7dae0) with muted blue accents (#444c5a). The light mode uses a blue-tinted background (#23272f). Dark mode keeps the muted light blue primary (#d7dae0) on a blue-tinted background (#23272f).
| Token | Light | Dark |
|---|---|---|
| Background | #23272fdarkslategray | #23272fdarkslategray |
| Foreground | #abb2bfdarkgray | #abb2bfdarkgray |
| Card | #1f2229darkslategray | #1f2229darkslategray |
| Card foreground | #b9bfcasilver | #b9bfcasilver |
| Popover | #1d2026black | #1d2026black |
| Popover foreground | #c8cdd5lightgrey | #c8cdd5lightgrey |
| Primary | #d7dae0gainsboro | #d7dae0gainsboro |
| Primary foreground | #3a3f4bdarkslategray | #3a3f4bdarkslategray |
| Secondary | #3e3f42darkslategray | #3e3f42darkslategray |
| Secondary foreground | #d8d8dagainsboro | #d8d8dagainsboro |
| Muted | #2d3139darkslategray | #2d3139darkslategray |
| Muted foreground | #a9b0bcdarkgray | #a9b0bcdarkgray |
| Accent | #444c5adarkslategray | #444c5adarkslategray |
| Accent foreground | #e5e7eblavender | #e5e7eblavender |
| Destructive | #d93312firebrick | #d93312firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #333538darkslategray | #333538darkslategray |
| Input | #3b3d40darkslategray | #3b3d40darkslategray |
| Ring | #d7dae0gainsboro | #d7dae0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.00:1 | AAA |
| Text on card | 8.59:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 4.74:1 | AA |
| Text on background | 7.00:1 | AAA |
| Text on card | 8.59:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use One Dark Pro Darker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.273 0.015 261.41);
--foreground: oklch(0.762 0.021 262.984);
--muted: oklch(0.313 0.015 261.428);
--muted-foreground: oklch(0.756 0.018 261.49);
--popover: oklch(0.242 0.012 261.421);
--popover-foreground: oklch(0.846 0.013 263.02);
--card: oklch(0.252 0.013 261.417);
--card-foreground: oklch(0.804 0.017 263.005);
--border: oklch(0.328 0.005 261.503);
--input: oklch(0.358 0.006 261.502);
--primary: oklch(0.887 0.009 264.517);
--primary-foreground: oklch(0.369 0.021 264.27);
--secondary: oklch(0.368 0.005 264.508);
--secondary-foreground: oklch(0.883 0.002 264.543);
--accent: oklch(0.415 0.026 261.382);
--accent-foreground: oklch(0.928 0.006 261.512);
--destructive: oklch(0.579 0.206 32.614);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.009 264.517);
--chart-1: oklch(0.887 0.009 264.517);
--chart-2: oklch(0.368 0.005 264.508);
--chart-3: oklch(0.415 0.026 261.382);
--chart-4: oklch(0.396 0.005 264.507);
--chart-5: oklch(0.886 0.011 264.508);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.273 0.015 261.41);
--foreground: oklch(0.762 0.021 262.984);
--muted: oklch(0.313 0.015 261.428);
--muted-foreground: oklch(0.756 0.018 261.49);
--popover: oklch(0.242 0.012 261.421);
--popover-foreground: oklch(0.846 0.013 263.02);
--card: oklch(0.252 0.013 261.417);
--card-foreground: oklch(0.804 0.017 263.005);
--border: oklch(0.328 0.005 261.503);
--input: oklch(0.358 0.006 261.502);
--primary: oklch(0.887 0.009 264.517);
--primary-foreground: oklch(0.369 0.021 264.27);
--secondary: oklch(0.368 0.005 264.508);
--secondary-foreground: oklch(0.883 0.002 264.543);
--accent: oklch(0.415 0.026 261.382);
--accent-foreground: oklch(0.928 0.006 261.512);
--destructive: oklch(0.579 0.206 32.614);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.009 264.517);
--chart-1: oklch(0.887 0.009 264.517);
--chart-2: oklch(0.368 0.005 264.508);
--chart-3: oklch(0.415 0.026 261.382);
--chart-4: oklch(0.396 0.005 264.507);
--chart-5: oklch(0.886 0.011 264.508);
}