βui - One Dark is a shadcn/ui theme built around a muted blue primary color (#abb2bf) with muted blue accents (#474f5c). The light mode uses a blue-tinted background (#262a31). Dark mode keeps the muted blue primary (#abb2bf) on a blue-tinted background (#262a31).
| Token | Light | Dark |
|---|---|---|
| Background | #262a31darkslategray | #262a31darkslategray |
| Foreground | #abb2bfdarkgray | #abb2bfdarkgray |
| Card | #21252bdarkslategray | #21252bdarkslategray |
| Card foreground | #b9bfcasilver | #b9bfcasilver |
| Popover | #1f2228black | #1f2228black |
| Popover foreground | #c8cdd5lightgrey | #c8cdd5lightgrey |
| Primary | #abb2bfdarkgray | #abb2bfdarkgray |
| Primary foreground | #181b20black | #181b20black |
| Secondary | #3d3f42darkslategray | #3d3f42darkslategray |
| Secondary foreground | #d7d8dagainsboro | #d7d8dagainsboro |
| Muted | #2f343cdarkslategray | #2f343cdarkslategray |
| Muted foreground | #acb3bedarkgray | #acb3bedarkgray |
| Accent | #474f5cdarkslategray | #474f5cdarkslategray |
| Accent foreground | #e8eaedlavender | #e8eaedlavender |
| Destructive | #f15a3btomato | #f15a3btomato |
| Destructive foreground | #000000black | #000000black |
| Border | #36383adarkslategray | #36383adarkslategray |
| Input | #3e3f42darkslategray | #3e3f42darkslategray |
| Ring | #abb2bfdarkgray | #abb2bfdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.77:1 | AA |
| Text on card | 8.33:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 6.87:1 | AA |
| Destructive | 6.27:1 | AA |
| Text on background | 6.77:1 | AA |
| Text on card | 8.33:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 6.87:1 | AA |
| Destructive | 6.27:1 | AA |
Paste this into your globals.css to use βui - One Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.283 0.014 261.421);
--foreground: oklch(0.762 0.021 262.984);
--muted: oklch(0.323 0.016 261.426);
--muted-foreground: oklch(0.764 0.018 261.492);
--popover: oklch(0.253 0.012 261.429);
--popover-foreground: oklch(0.846 0.013 263.02);
--card: oklch(0.263 0.013 261.426);
--card-foreground: oklch(0.804 0.017 263.005);
--border: oklch(0.339 0.004 261.508);
--input: oklch(0.368 0.005 261.507);
--primary: oklch(0.761 0.021 264.441);
--primary-foreground: oklch(0.221 0.011 264.319);
--secondary: oklch(0.367 0.006 264.491);
--secondary-foreground: oklch(0.883 0.003 264.541);
--accent: oklch(0.425 0.025 261.398);
--accent-foreground: oklch(0.936 0.005 261.513);
--destructive: oklch(0.663 0.192 33.2);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.761 0.021 264.441);
--chart-1: oklch(0.761 0.021 264.441);
--chart-2: oklch(0.367 0.006 264.491);
--chart-3: oklch(0.425 0.025 261.398);
--chart-4: oklch(0.395 0.007 264.489);
--chart-5: oklch(0.759 0.026 264.41);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.283 0.014 261.421);
--foreground: oklch(0.762 0.021 262.984);
--muted: oklch(0.323 0.016 261.426);
--muted-foreground: oklch(0.764 0.018 261.492);
--popover: oklch(0.253 0.012 261.429);
--popover-foreground: oklch(0.846 0.013 263.02);
--card: oklch(0.263 0.013 261.426);
--card-foreground: oklch(0.804 0.017 263.005);
--border: oklch(0.339 0.004 261.508);
--input: oklch(0.368 0.005 261.507);
--primary: oklch(0.761 0.021 264.441);
--primary-foreground: oklch(0.221 0.011 264.319);
--secondary: oklch(0.367 0.006 264.491);
--secondary-foreground: oklch(0.883 0.003 264.541);
--accent: oklch(0.425 0.025 261.398);
--accent-foreground: oklch(0.936 0.005 261.513);
--destructive: oklch(0.663 0.192 33.2);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.761 0.021 264.441);
--chart-1: oklch(0.761 0.021 264.441);
--chart-2: oklch(0.367 0.006 264.491);
--chart-3: oklch(0.425 0.025 261.398);
--chart-4: oklch(0.395 0.007 264.489);
--chart-5: oklch(0.759 0.026 264.41);
}