Spite is a shadcn/ui theme built around a deep teal primary color (#2b544b) with muted light teal accents (#e2e9e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#2b544b) on a neutral background (#020403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020403black |
| Foreground | #031612black | #f6f9f8whitesmoke |
| Card | #fcfcfcsnow | #030706black |
| Card foreground | #03120eblack | #f9fbfamintcream |
| Popover | #ffffffwhite | #020403black |
| Popover foreground | #031612black | #f6f9f8whitesmoke |
| Primary | #2b544bdarkslategray | #2b544bdarkslategray |
| Primary foreground | #cde5dfgainsboro | #cde5dfgainsboro |
| Secondary | #e2e9e7gainsboro | #161d1bblack |
| Secondary foreground | #425752darkslategray | #a8bdb8darkgray |
| Muted | #ddeeealavender | #11221eblack |
| Muted foreground | #3a4a47darkslategray | #b5c5c1silver |
| Accent | #e2e9e7gainsboro | #161d1bblack |
| Accent foreground | #425752darkslategray | #a8bdb8darkgray |
| Destructive | #913408saddlebrown | #f26726chocolate |
| Destructive foreground | #fcddcfbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b544bdarkslategray | #2b544bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 7.75:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 6.10:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 8.67:1 | AAA |
| Muted text | 9.24:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 6.74:1 | AA |
Paste this into your globals.css to use Spite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.183 0.028 176.58);
--muted: oklch(0.935 0.018 180.41);
--muted-foreground: oklch(0.395 0.021 179.361);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.183 0.028 176.58);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.165 0.025 177.84);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.413 0.049 176.859);
--primary-foreground: oklch(0.902 0.027 180.094);
--secondary: oklch(0.928 0.008 180.718);
--secondary-foreground: oklch(0.438 0.027 179.059);
--accent: oklch(0.928 0.008 180.718);
--accent-foreground: oklch(0.438 0.027 179.059);
--destructive: oklch(0.452 0.135 40.485);
--destructive-foreground: oklch(0.92 0.04 46.42);
--ring: oklch(0.413 0.049 176.859);
--chart-1: oklch(0.413 0.049 176.859);
--chart-2: oklch(0.928 0.008 180.718);
--chart-3: oklch(0.928 0.008 180.718);
--chart-4: oklch(0.95 0.006 180.796);
--chart-5: oklch(0.418 0.053 176.491);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 180.951);
--foreground: oklch(0.979 0.003 180.883);
--muted: oklch(0.235 0.023 177.701);
--muted-foreground: oklch(0.809 0.018 180.317);
--popover: oklch(0.097 0.009 180.951);
--popover-foreground: oklch(0.979 0.003 180.883);
--card: oklch(0.122 0.011 180.951);
--card-foreground: oklch(0.986 0.002 180.909);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.413 0.049 176.859);
--primary-foreground: oklch(0.902 0.027 180.094);
--secondary: oklch(0.223 0.011 179.499);
--secondary-foreground: oklch(0.781 0.024 180.052);
--accent: oklch(0.223 0.011 179.499);
--accent-foreground: oklch(0.781 0.024 180.052);
--destructive: oklch(0.679 0.187 41.991);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.413 0.049 176.859);
--chart-1: oklch(0.413 0.049 176.859);
--chart-2: oklch(0.223 0.011 179.499);
--chart-3: oklch(0.223 0.011 179.499);
--chart-4: oklch(0.258 0.014 179.372);
--chart-5: oklch(0.418 0.053 176.491);
}