Base16 Dark Brewer is a shadcn/ui theme built around a neutral gray primary color (#b7b8b8) with muted deep blue accents (#2f3337). The light mode uses a blue-tinted background (#0c0d0e). Dark mode keeps the neutral gray primary (#b7b8b8) on a blue-tinted background (#0c0d0e).
| Token | Light | Dark |
|---|---|---|
| Background | #0c0d0eblack | #0c0d0eblack |
| Foreground | #b7b8b8silver | #b7b8b8silver |
| Card | #070808black | #070808black |
| Card foreground | #c4c4c5silver | #c4c4c5silver |
| Popover | #050506black | #050506black |
| Popover foreground | #d1d1d2lightgrey | #d1d1d2lightgrey |
| Primary | #b7b8b8silver | #b7b8b8silver |
| Primary foreground | #1e1f1fblack | #1e1f1fblack |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22262bdarkslategray | #22262bdarkslategray |
| Muted foreground | #9ba6b0darkgray | #9ba6b0darkgray |
| Accent | #2f3337darkslategray | #2f3337darkslategray |
| Accent foreground | #c8ccd0lightgrey | #c8ccd0lightgrey |
| Destructive | #f12809orangered | #f12809orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1a1a1ablack | #1a1a1ablack |
| Input | #212121black | #212121black |
| Ring | #b7b8b8silver | #b7b8b8silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.79:1 | AAA |
| Text on card | 11.52:1 | AAA |
| Primary button | 8.28:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.15:1 | AA Large |
| Text on background | 9.79:1 | AAA |
| Text on card | 11.52:1 | AAA |
| Primary button | 8.28:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Base16 Dark Brewer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.157 0.003 248.003);
--foreground: oklch(0.781 0.001 247.839);
--muted: oklch(0.267 0.011 248.233);
--muted-foreground: oklch(0.719 0.02 248.103);
--popover: oklch(0.115 0.002 246.694);
--popover-foreground: oklch(0.861 0.001 247.831);
--card: oklch(0.132 0.002 246.694);
--card-foreground: oklch(0.821 0.001 247.835);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(0.781 0.001 247.839);
--primary-foreground: oklch(0.237 0.001 247.854);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.319 0.009 248.118);
--accent-foreground: oklch(0.843 0.007 247.911);
--destructive: oklch(0.615 0.235 31.108);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.001 247.839);
--chart-1: oklch(0.781 0.001 247.839);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.319 0.009 248.118);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.78 0.005 247.891);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.003 248.003);
--foreground: oklch(0.781 0.001 247.839);
--muted: oklch(0.267 0.011 248.233);
--muted-foreground: oklch(0.719 0.02 248.103);
--popover: oklch(0.115 0.002 246.694);
--popover-foreground: oklch(0.861 0.001 247.831);
--card: oklch(0.132 0.002 246.694);
--card-foreground: oklch(0.821 0.001 247.835);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(0.781 0.001 247.839);
--primary-foreground: oklch(0.237 0.001 247.854);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.319 0.009 248.118);
--accent-foreground: oklch(0.843 0.007 247.911);
--destructive: oklch(0.615 0.235 31.108);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.001 247.839);
--chart-1: oklch(0.781 0.001 247.839);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.319 0.009 248.118);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.78 0.005 247.891);
}