Base16 Dark Default is a shadcn/ui theme built around a neutral gray primary color (#d9d9d9) with neutral gray accents (#3d3d3d). The light mode uses a neutral background (#171717). Dark mode keeps the neutral gray primary (#d9d9d9) on a neutral background (#171717).
| Token | Light | Dark |
|---|---|---|
| Background | #171717black | #171717black |
| Foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Card | #121212black | #121212black |
| Card foreground | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Popover | #0f0f0fblack | #0f0f0fblack |
| Popover foreground | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Primary | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Primary foreground | #404040darkslategray | #404040darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2b2222darkslategray | #2b2222darkslategray |
| Muted foreground | #b09b9brosybrown | #b09b9brosybrown |
| Accent | #3d3d3ddarkslategray | #3d3d3ddarkslategray |
| Accent foreground | #d6d6d6lightgrey | #d6d6d6lightgrey |
| Destructive | #df1207red | #df1207red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #242424darkslategray | #242424darkslategray |
| Input | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
| Ring | #d9d9d9gainsboro | #d9d9d9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.70:1 | AAA |
| Text on card | 15.02:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 4.98:1 | AA |
| Text on background | 12.70:1 | AAA |
| Text on card | 15.02:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 4.98:1 | AA |
Paste this into your globals.css to use Base16 Dark Default in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.204 0 180);
--foreground: oklch(0.885 0 180);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.17 0 180);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.182 0 164.055);
--card-foreground: oklch(0.923 0 153.435);
--border: oklch(0.259 0 167.471);
--input: oklch(0.29 0 180);
--primary: oklch(0.885 0 180);
--primary-foreground: oklch(0.371 0 168.69);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.361 0 180);
--accent-foreground: oklch(0.877 0 180);
--destructive: oklch(0.571 0.228 29.527);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0 180);
--chart-1: oklch(0.885 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.361 0 180);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.883 0.003 17.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.204 0 180);
--foreground: oklch(0.885 0 180);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.17 0 180);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.182 0 164.055);
--card-foreground: oklch(0.923 0 153.435);
--border: oklch(0.259 0 167.471);
--input: oklch(0.29 0 180);
--primary: oklch(0.885 0 180);
--primary-foreground: oklch(0.371 0 168.69);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.361 0 180);
--accent-foreground: oklch(0.877 0 180);
--destructive: oklch(0.571 0.228 29.527);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0 180);
--chart-1: oklch(0.885 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.361 0 180);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.883 0.003 17.205);
}