Spacemacs - light is a shadcn/ui theme built around a muted violet primary color (#64526f) with light yellow accents (#ecddb1). The light mode uses a yellow-tinted background (#fbf8ef). Dark mode keeps the muted violet primary (#64526f) on a yellow-tinted background (#fbf8ef).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8effloralwhite | #fbf8effloralwhite |
| Foreground | #64526fdimgray | #64526fdimgray |
| Card | #f9f4e7linen | #f9f4e7linen |
| Card foreground | #574861dimgray | #574861dimgray |
| Popover | #f8f3e2linen | #f8f3e2linen |
| Popover foreground | #4a3d52darkslategray | #4a3d52darkslategray |
| Primary | #64526fdimgray | #64526fdimgray |
| Primary foreground | #faf9fbghostwhite | #faf9fbghostwhite |
| Secondary | #c0bcc2silver | #c0bcc2silver |
| Secondary foreground | #272428darkslategray | #272428darkslategray |
| Muted | #e9e7e2gainsboro | #e9e7e2gainsboro |
| Muted foreground | #565143darkolivegreen | #565143darkolivegreen |
| Accent | #ecddb1wheat | #ecddb1wheat |
| Accent foreground | #564615darkolivegreen | #564615darkolivegreen |
| Destructive | #bc2615firebrick | #bc2615firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #f4eeddbeige | #f4eeddbeige |
| Input | #f0e8d1antiquewhite | #f0e8d1antiquewhite |
| Ring | #64526fdimgray | #64526fdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.63:1 | AA |
| Text on card | 7.64:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 6.12:1 | AA |
| Text on background | 6.63:1 | AA |
| Text on card | 7.64:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 6.12:1 | AA |
Paste this into your globals.css to use Spacemacs - light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.013 91.518);
--foreground: oklch(0.469 0.051 312.244);
--muted: oklch(0.928 0.006 91.469);
--muted-foreground: oklch(0.435 0.023 91.759);
--popover: oklch(0.963 0.022 91.594);
--popover-foreground: oklch(0.381 0.04 312.278);
--card: oklch(0.968 0.019 91.569);
--card-foreground: oklch(0.426 0.045 312.259);
--border: oklch(0.948 0.024 91.609);
--input: oklch(0.931 0.031 91.667);
--primary: oklch(0.469 0.051 312.244);
--primary-foreground: oklch(0.984 0.002 312.97);
--secondary: oklch(0.801 0.01 312.901);
--secondary-foreground: oklch(0.266 0.008 312.786);
--accent: oklch(0.899 0.059 91.802);
--accent-foreground: oklch(0.399 0.068 90.244);
--destructive: oklch(0.517 0.188 30.504);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.469 0.051 312.244);
--chart-1: oklch(0.469 0.051 312.244);
--chart-2: oklch(0.801 0.01 312.901);
--chart-3: oklch(0.899 0.059 91.802);
--chart-4: oklch(0.825 0.009 312.914);
--chart-5: oklch(0.465 0.061 312.083);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.979 0.013 91.518);
--foreground: oklch(0.469 0.051 312.244);
--muted: oklch(0.928 0.006 91.469);
--muted-foreground: oklch(0.435 0.023 91.759);
--popover: oklch(0.963 0.022 91.594);
--popover-foreground: oklch(0.381 0.04 312.278);
--card: oklch(0.968 0.019 91.569);
--card-foreground: oklch(0.426 0.045 312.259);
--border: oklch(0.948 0.024 91.609);
--input: oklch(0.931 0.031 91.667);
--primary: oklch(0.469 0.051 312.244);
--primary-foreground: oklch(0.984 0.002 312.97);
--secondary: oklch(0.801 0.01 312.901);
--secondary-foreground: oklch(0.266 0.008 312.786);
--accent: oklch(0.899 0.059 91.802);
--accent-foreground: oklch(0.399 0.068 90.244);
--destructive: oklch(0.517 0.188 30.504);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.469 0.051 312.244);
--chart-1: oklch(0.469 0.051 312.244);
--chart-2: oklch(0.801 0.01 312.901);
--chart-3: oklch(0.899 0.059 91.802);
--chart-4: oklch(0.825 0.009 312.914);
--chart-5: oklch(0.465 0.061 312.083);
}