One Dark Darker is a shadcn/ui theme built around a muted light blue primary color (#d7dae0) with muted deep blue accents (#3a3f4b). The light mode uses a blue-tinted background (#181a20). Dark mode keeps the muted light blue primary (#d7dae0) on a blue-tinted background (#181a20).
| Token | Light | Dark |
|---|---|---|
| Background | #181a20black | #181a20black |
| Foreground | #abb2bfdarkgray | #abb2bfdarkgray |
| Card | #14161ablack | #14161ablack |
| Card foreground | #b9bfcasilver | #b9bfcasilver |
| Popover | #121317black | #121317black |
| Popover foreground | #c8cdd5lightgrey | #c8cdd5lightgrey |
| Primary | #d7dae0gainsboro | #d7dae0gainsboro |
| Primary foreground | #3a3f4bdarkslategray | #3a3f4bdarkslategray |
| Secondary | #3e3f42darkslategray | #3e3f42darkslategray |
| Secondary foreground | #d8d8dagainsboro | #d8d8dagainsboro |
| Muted | #22242bdarkslategray | #22242bdarkslategray |
| Muted foreground | #9ba1b0darkgray | #9ba1b0darkgray |
| Accent | #3a3f4bdarkslategray | #3a3f4bdarkslategray |
| Accent foreground | #d7d9e0gainsboro | #d7d9e0gainsboro |
| Destructive | #fa301eorangered | #fa301eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #28282adarkslategray | #28282adarkslategray |
| Input | #2f3032darkslategray | #2f3032darkslategray |
| Ring | #d7dae0gainsboro | #d7dae0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.12:1 | AAA |
| Text on card | 9.82:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 3.79:1 | AA Large |
| Text on background | 8.12:1 | AAA |
| Text on card | 9.82:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use One Dark Darker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.22 0.011 268.381);
--foreground: oklch(0.762 0.021 262.984);
--muted: oklch(0.262 0.013 268.375);
--muted-foreground: oklch(0.709 0.023 268.529);
--popover: oklch(0.188 0.008 268.436);
--popover-foreground: oklch(0.846 0.013 263.02);
--card: oklch(0.199 0.009 268.416);
--card-foreground: oklch(0.804 0.017 263.005);
--border: oklch(0.278 0.003 268.704);
--input: oklch(0.308 0.004 268.7);
--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.366 0.022 268.257);
--accent-foreground: oklch(0.886 0.01 268.714);
--destructive: oklch(0.638 0.237 30.031);
--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.366 0.022 268.257);
--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.22 0.011 268.381);
--foreground: oklch(0.762 0.021 262.984);
--muted: oklch(0.262 0.013 268.375);
--muted-foreground: oklch(0.709 0.023 268.529);
--popover: oklch(0.188 0.008 268.436);
--popover-foreground: oklch(0.846 0.013 263.02);
--card: oklch(0.199 0.009 268.416);
--card-foreground: oklch(0.804 0.017 263.005);
--border: oklch(0.278 0.003 268.704);
--input: oklch(0.308 0.004 268.7);
--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.366 0.022 268.257);
--accent-foreground: oklch(0.886 0.01 268.714);
--destructive: oklch(0.638 0.237 30.031);
--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.366 0.022 268.257);
--chart-4: oklch(0.396 0.005 264.507);
--chart-5: oklch(0.886 0.011 264.508);
}