Base16 Dark Ashes is a shadcn/ui theme built around a muted light blue primary color (#c7ccd1) with muted deep blue accents (#3d464c). The light mode uses a blue-tinted background (#1b1f22). Dark mode keeps the muted light blue primary (#c7ccd1) on a blue-tinted background (#1b1f22).
| Token | Light | Dark |
|---|---|---|
| Background | #1b1f22black | #1b1f22black |
| Foreground | #c7ccd1lightgrey | #c7ccd1lightgrey |
| Card | #171a1cblack | #171a1cblack |
| Card foreground | #d5d9ddgainsboro | #d5d9ddgainsboro |
| Popover | #141719black | #141719black |
| Popover foreground | #e3e6e8gainsboro | #e3e6e8gainsboro |
| Primary | #c7ccd1lightgrey | #c7ccd1lightgrey |
| Primary foreground | #2e3338darkslategray | #2e3338darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #24292edarkslategray | #24292edarkslategray |
| Muted foreground | #9eaab3darkgray | #9eaab3darkgray |
| Accent | #3d464cdarkslategray | #3d464cdarkslategray |
| Accent foreground | #dadee1gainsboro | #dadee1gainsboro |
| Destructive | #e82e11orangered | #e82e11orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2b2b2cdarkslategray | #2b2b2cdarkslategray |
| Input | #323334darkslategray | #323334darkslategray |
| Ring | #c7ccd1lightgrey | #c7ccd1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.25:1 | AAA |
| Text on card | 12.33:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.33:1 | AA Large |
| Text on background | 10.25:1 | AAA |
| Text on card | 12.33:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Base16 Dark Ashes in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.237 0.008 240.758);
--foreground: oklch(0.843 0.009 247.934);
--muted: oklch(0.279 0.011 240.849);
--muted-foreground: oklch(0.731 0.019 240.64);
--popover: oklch(0.204 0.006 240.712);
--popover-foreground: oklch(0.922 0.004 247.872);
--card: oklch(0.215 0.007 240.729);
--card-foreground: oklch(0.883 0.007 247.901);
--border: oklch(0.29 0.001 240.33);
--input: oklch(0.321 0.001 240.332);
--primary: oklch(0.843 0.009 247.934);
--primary-foreground: oklch(0.318 0.012 248.19);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.388 0.016 240.863);
--accent-foreground: oklch(0.899 0.006 240.379);
--destructive: oklch(0.603 0.223 31.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.843 0.009 247.934);
--chart-1: oklch(0.843 0.009 247.934);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.388 0.016 240.863);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.842 0.012 247.967);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.237 0.008 240.758);
--foreground: oklch(0.843 0.009 247.934);
--muted: oklch(0.279 0.011 240.849);
--muted-foreground: oklch(0.731 0.019 240.64);
--popover: oklch(0.204 0.006 240.712);
--popover-foreground: oklch(0.922 0.004 247.872);
--card: oklch(0.215 0.007 240.729);
--card-foreground: oklch(0.883 0.007 247.901);
--border: oklch(0.29 0.001 240.33);
--input: oklch(0.321 0.001 240.332);
--primary: oklch(0.843 0.009 247.934);
--primary-foreground: oklch(0.318 0.012 248.19);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.388 0.016 240.863);
--accent-foreground: oklch(0.899 0.006 240.379);
--destructive: oklch(0.603 0.223 31.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.843 0.009 247.934);
--chart-1: oklch(0.843 0.009 247.934);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.388 0.016 240.863);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.842 0.012 247.967);
}