Spleen is a shadcn/ui theme built around a muted deep orange primary color (#5f4435) with muted light orange accents (#dad5d2). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the muted deep orange primary (#5f4435) on an orange-tinted background (#0b0704).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #0b0704black |
| Foreground | #0d0602black | #fdfcfcsnow |
| Card | #fdfcfbsnow | #0b0704black |
| Card foreground | #0d0602black | #fdfcfcsnow |
| Popover | #fdfcfbsnow | #0b0704black |
| Popover foreground | #0d0602black | #fdfcfcsnow |
| Primary | #5f4435darkolivegreen | #5f4435darkolivegreen |
| Primary foreground | #ebe1dbgainsboro | #ebe1dbgainsboro |
| Secondary | #dad5d2lightgrey | #2e241fdarkslategray |
| Secondary foreground | #433b37darkslategray | #cbbcb3silver |
| Muted | #e6e2e0gainsboro | #1f1b19black |
| Muted foreground | #5f5e5ddimgray | #a2a0a0darkgray |
| Accent | #dad5d2lightgrey | #2e241fdarkslategray |
| Accent foreground | #433b37darkslategray | #cbbcb3silver |
| Destructive | #cf4302chocolate | #fd590dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5f4435darkolivegreen | #5f4435darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 5.02:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 4.71:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 6.56:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.58:1 | AA |
Paste this into your globals.css to use Spleen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 50.638);
--foreground: oklch(0.132 0.02 61.1);
--muted: oklch(0.915 0.006 50.578);
--muted-foreground: oklch(0.483 0.002 50.609);
--popover: oklch(0.992 0.002 50.638);
--popover-foreground: oklch(0.132 0.02 61.1);
--card: oklch(0.992 0.002 50.638);
--card-foreground: oklch(0.132 0.02 61.1);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.411 0.044 49.387);
--primary-foreground: oklch(0.915 0.013 50.472);
--secondary: oklch(0.876 0.007 50.555);
--secondary-foreground: oklch(0.361 0.013 50.207);
--accent: oklch(0.876 0.007 50.555);
--accent-foreground: oklch(0.361 0.013 50.207);
--destructive: oklch(0.577 0.186 38.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.411 0.044 49.387);
--chart-1: oklch(0.411 0.044 49.387);
--chart-2: oklch(0.876 0.007 50.555);
--chart-3: oklch(0.876 0.007 50.555);
--chart-4: oklch(0.9 0.006 50.577);
--chart-5: oklch(0.412 0.049 49.236);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.013 57.507);
--foreground: oklch(0.992 0.001 50.647);
--muted: oklch(0.226 0.008 50.215);
--muted-foreground: oklch(0.708 0.002 50.628);
--popover: oklch(0.132 0.013 57.507);
--popover-foreground: oklch(0.992 0.001 50.647);
--card: oklch(0.132 0.013 57.507);
--card-foreground: oklch(0.992 0.001 50.647);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.411 0.044 49.387);
--primary-foreground: oklch(0.915 0.013 50.472);
--secondary: oklch(0.27 0.017 49.908);
--secondary-foreground: oklch(0.805 0.022 50.326);
--accent: oklch(0.27 0.017 49.908);
--accent-foreground: oklch(0.805 0.022 50.326);
--destructive: oklch(0.676 0.212 39.251);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.411 0.044 49.387);
--chart-1: oklch(0.411 0.044 49.387);
--chart-2: oklch(0.27 0.017 49.908);
--chart-3: oklch(0.27 0.017 49.908);
--chart-4: oklch(0.301 0.02 49.875);
--chart-5: oklch(0.412 0.049 49.236);
}