Spume is a shadcn/ui theme built around a deep blue primary color (#122040) with neutral gray accents (#c9cbcf). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#122040) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #04060bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #04060bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #122040midnightblue | #122040midnightblue |
| Primary foreground | #a0b4e4lightsteelblue | #a0b4e4lightsteelblue |
| Secondary | #c9cbcflightgrey | #222630darkslategray |
| Secondary foreground | #303236darkslategray | #b7beccsilver |
| Muted | #ebeceflavender | #101114black |
| Muted foreground | #373c48darkslategray | #b7bcc8silver |
| Accent | #c9cbcflightgrey | #222630darkslategray |
| Accent foreground | #303236darkslategray | #b7beccsilver |
| Destructive | #ae4c13sienna | #ea8043coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #122040midnightblue | #122040midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 9.35:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 5.44:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 9.93:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 7.67:1 | AAA |
Paste this into your globals.css to use Spume in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.011 260.134);
--muted: oklch(0.944 0.005 267.392);
--muted-foreground: oklch(0.358 0.021 266.973);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.249 0.064 264.74);
--primary-foreground: oklch(0.772 0.073 266.628);
--secondary: oklch(0.842 0.005 267.384);
--secondary-foreground: oklch(0.317 0.007 267.286);
--accent: oklch(0.842 0.005 267.384);
--accent-foreground: oklch(0.317 0.007 267.286);
--destructive: oklch(0.537 0.143 45.248);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.249 0.064 264.74);
--chart-1: oklch(0.249 0.064 264.74);
--chart-2: oklch(0.842 0.005 267.384);
--chart-3: oklch(0.842 0.005 267.384);
--chart-4: oklch(0.866 0.004 267.39);
--chart-5: oklch(0.248 0.067 264.573);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.012 261.111);
--foreground: oklch(0.992 0.001 267.416);
--muted: oklch(0.177 0.007 267.143);
--muted-foreground: oklch(0.795 0.017 267.282);
--popover: oklch(0.123 0.014 261.242);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.014 261.242);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.249 0.064 264.74);
--primary-foreground: oklch(0.772 0.073 266.628);
--secondary: oklch(0.269 0.019 266.862);
--secondary-foreground: oklch(0.8 0.022 267.243);
--accent: oklch(0.269 0.019 266.862);
--accent-foreground: oklch(0.8 0.022 267.243);
--destructive: oklch(0.707 0.15 48.524);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.249 0.064 264.74);
--chart-1: oklch(0.249 0.064 264.74);
--chart-2: oklch(0.269 0.019 266.862);
--chart-3: oklch(0.269 0.019 266.862);
--chart-4: oklch(0.298 0.022 266.831);
--chart-5: oklch(0.248 0.067 264.573);
}