Spume is a shadcn/ui theme built around a muted green primary color (#586345) with muted green accents (#496345). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted green primary (#586345) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #030401black |
| Foreground | #090d02black | #f8faf5whitesmoke |
| Card | #fdfdfbsnow | #030401black |
| Card foreground | #090d02black | #f8faf5whitesmoke |
| Popover | #fdfdfbsnow | #030401black |
| Popover foreground | #090d02black | #f8faf5whitesmoke |
| Primary | #586345darkolivegreen | #586345darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #635f45darkolivegreen | #635f45darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1e1dagainsboro | #25241eblack |
| Muted foreground | #666457dimgray | #a8a699darkgray |
| Accent | #496345darkolivegreen | #496345darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6b0700maroon | #ff1605red |
| Destructive foreground | #ffa59elightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #586345darkolivegreen | #586345darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 6.42:1 | AA |
| Muted text | 4.52:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 6.42:1 | AA |
| Muted text | 6.37:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Spume in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 122.97);
--foreground: oklch(0.15 0.026 122.816);
--muted: oklch(0.907 0.009 99.479);
--muted-foreground: oklch(0.501 0.02 99.901);
--popover: oklch(0.994 0.003 122.97);
--popover-foreground: oklch(0.15 0.026 122.816);
--card: oklch(0.994 0.003 122.97);
--card-foreground: oklch(0.15 0.026 122.816);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.483 0.048 124.533);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.483 0.04 100.37);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.471 0.057 141.259);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.336 0.132 30.72);
--destructive-foreground: oklch(0.809 0.108 24.188);
--ring: oklch(0.483 0.048 124.533);
--chart-1: oklch(0.483 0.048 124.533);
--chart-2: oklch(0.483 0.04 100.37);
--chart-3: oklch(0.471 0.057 141.259);
--chart-4: oklch(0.513 0.043 100.378);
--chart-5: oklch(0.489 0.056 124.782);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.012 122.495);
--foreground: oklch(0.982 0.007 123.043);
--muted: oklch(0.258 0.012 99.953);
--muted-foreground: oklch(0.724 0.019 99.708);
--popover: oklch(0.1 0.012 122.495);
--popover-foreground: oklch(0.982 0.007 123.043);
--card: oklch(0.1 0.012 122.495);
--card-foreground: oklch(0.982 0.007 123.043);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.483 0.048 124.533);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.483 0.04 100.37);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.471 0.057 141.259);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.633 0.253 29.747);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.483 0.048 124.533);
--chart-1: oklch(0.483 0.048 124.533);
--chart-2: oklch(0.483 0.04 100.37);
--chart-3: oklch(0.471 0.057 141.259);
--chart-4: oklch(0.513 0.043 100.378);
--chart-5: oklch(0.489 0.056 124.782);
}