Spawn is a shadcn/ui theme built around a muted red primary color (#a6908c) with muted cyan accents (#8ca2a6). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted red primary (#a6908c) on a red-tinted background (#0d0807).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #0d0807black |
| Foreground | #040201black | #fdfcfcsnow |
| Card | #fcf9f8snow | #0d0807black |
| Card foreground | #040201black | #fdfcfcsnow |
| Popover | #fcf9f8snow | #0d0807black |
| Popover foreground | #040201black | #fdfcfcsnow |
| Primary | #a6908crosybrown | #a6908crosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #8ca2a6darkgray | #8ca2a6darkgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e1e9ealavender | #151d1eblack |
| Muted foreground | #4b5658darkslategray | #a7b2b4darkgray |
| Accent | #8ca2a6darkgray | #8ca2a6darkgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #9d1102darkred | #fc1c03red |
| Destructive foreground | #ffd6d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a6908crosybrown | #a6908crosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Spawn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 31.05);
--foreground: oklch(0.087 0.011 36.783);
--muted: oklch(0.927 0.008 211.038);
--muted-foreground: oklch(0.444 0.014 211.066);
--popover: oklch(0.983 0.003 31.05);
--popover-foreground: oklch(0.087 0.011 36.783);
--card: oklch(0.983 0.003 31.05);
--card-foreground: oklch(0.087 0.011 36.783);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.672 0.027 31.175);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.696 0.026 211.082);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.696 0.026 211.082);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.443 0.173 30.677);
--destructive-foreground: oklch(0.909 0.046 25.482);
--ring: oklch(0.672 0.027 31.175);
--chart-1: oklch(0.672 0.027 31.175);
--chart-2: oklch(0.696 0.026 211.082);
--chart-3: oklch(0.696 0.026 211.082);
--chart-4: oklch(0.72 0.024 211.068);
--chart-5: oklch(0.67 0.034 31.227);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.01 33.232);
--foreground: oklch(0.992 0.001 31.046);
--muted: oklch(0.222 0.012 211.158);
--muted-foreground: oklch(0.755 0.013 211.04);
--popover: oklch(0.142 0.01 33.232);
--popover-foreground: oklch(0.992 0.001 31.046);
--card: oklch(0.142 0.01 33.232);
--card-foreground: oklch(0.992 0.001 31.046);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.672 0.027 31.175);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.696 0.026 211.082);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.696 0.026 211.082);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.63 0.249 30.257);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.672 0.027 31.175);
--chart-1: oklch(0.672 0.027 31.175);
--chart-2: oklch(0.696 0.026 211.082);
--chart-3: oklch(0.696 0.026 211.082);
--chart-4: oklch(0.72 0.024 211.068);
--chart-5: oklch(0.67 0.034 31.227);
}