Spacemacs - dark is a shadcn/ui theme built around a muted light violet primary color (#ccc2d6) with neutral gray accents (#4d5156). The light mode uses a neutral background (#292b2e). Dark mode keeps the muted light violet primary (#ccc2d6) on a neutral background (#292b2e).
| Token | Light | Dark |
|---|---|---|
| Background | #292b2edarkslategray | #292b2edarkslategray |
| Foreground | #ccc2d6thistle | #ccc2d6thistle |
| Card | #242629darkslategray | #242629darkslategray |
| Card foreground | #d9d1e0gainsboro | #d9d1e0gainsboro |
| Popover | #222326darkslategray | #222326darkslategray |
| Popover foreground | #e6e1ealavender | #e6e1ealavender |
| Primary | #ccc2d6thistle | #ccc2d6thistle |
| Primary foreground | #33293ddarkslategray | #33293ddarkslategray |
| Secondary | #403a45darkslategray | #403a45darkslategray |
| Secondary foreground | #d9d5dcgainsboro | #d9d5dcgainsboro |
| Muted | #2f343cdarkslategray | #2f343cdarkslategray |
| Muted foreground | #acb3bedarkgray | #acb3bedarkgray |
| Accent | #4d5156darkslategray | #4d5156darkslategray |
| Accent foreground | #e9eaeclavender | #e9eaeclavender |
| Destructive | #e6391eorangered | #e6391eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #383838darkslategray | #383838darkslategray |
| Input | #404040darkslategray | #404040darkslategray |
| Ring | #ccc2d6thistle | #ccc2d6thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.30:1 | AAA |
| Text on card | 10.24:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 4.23:1 | AA Large |
| Text on background | 8.30:1 | AAA |
| Text on card | 10.24:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Spacemacs - dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.288 0.006 258.357);
--foreground: oklch(0.829 0.029 308.077);
--muted: oklch(0.324 0.015 258.372);
--muted-foreground: oklch(0.765 0.017 258.357);
--popover: oklch(0.257 0.005 258.356);
--popover-foreground: oklch(0.915 0.014 308.291);
--card: oklch(0.267 0.006 258.356);
--card-foreground: oklch(0.872 0.021 308.19);
--border: oklch(0.341 0 158.199);
--input: oklch(0.371 0 168.69);
--primary: oklch(0.829 0.029 308.077);
--primary-foreground: oklch(0.301 0.037 307.099);
--secondary: oklch(0.359 0.021 307.815);
--secondary-foreground: oklch(0.879 0.01 308.333);
--accent: oklch(0.432 0.011 258.361);
--accent-foreground: oklch(0.938 0.002 258.319);
--destructive: oklch(0.608 0.213 31.637);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.829 0.029 308.077);
--chart-1: oklch(0.829 0.029 308.077);
--chart-2: oklch(0.359 0.021 307.815);
--chart-3: oklch(0.432 0.011 258.361);
--chart-4: oklch(0.387 0.023 307.802);
--chart-5: oklch(0.826 0.033 308.015);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.288 0.006 258.357);
--foreground: oklch(0.829 0.029 308.077);
--muted: oklch(0.324 0.015 258.372);
--muted-foreground: oklch(0.765 0.017 258.357);
--popover: oklch(0.257 0.005 258.356);
--popover-foreground: oklch(0.915 0.014 308.291);
--card: oklch(0.267 0.006 258.356);
--card-foreground: oklch(0.872 0.021 308.19);
--border: oklch(0.341 0 158.199);
--input: oklch(0.371 0 168.69);
--primary: oklch(0.829 0.029 308.077);
--primary-foreground: oklch(0.301 0.037 307.099);
--secondary: oklch(0.359 0.021 307.815);
--secondary-foreground: oklch(0.879 0.01 308.333);
--accent: oklch(0.432 0.011 258.361);
--accent-foreground: oklch(0.938 0.002 258.319);
--destructive: oklch(0.608 0.213 31.637);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.829 0.029 308.077);
--chart-1: oklch(0.829 0.029 308.077);
--chart-2: oklch(0.359 0.021 307.815);
--chart-3: oklch(0.432 0.011 258.361);
--chart-4: oklch(0.387 0.023 307.802);
--chart-5: oklch(0.826 0.033 308.015);
}