Spiffy is a shadcn/ui theme built around a neutral gray primary color (#4c4442) with muted light red accents (#e3dfde). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#4c4442) on a red-tinted background (#100604).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100604black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #140705black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #140705black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #4c4442darkslategray | #4c4442darkslategray |
| Primary foreground | #e3dfdegainsboro | #e3dfdegainsboro |
| Secondary | #e3dfdegainsboro | #231c1bblack |
| Secondary foreground | #4d4342darkslategray | #c1b0aesilver |
| Muted | #ecdcdagainsboro | #251513black |
| Muted foreground | #5c4947darkolivegreen | #b8a5a3darkgray |
| Accent | #e3dfdegainsboro | #231c1bblack |
| Accent foreground | #4d4342darkslategray | #c1b0aesilver |
| Destructive | #ca3912firebrick | #ed562ctomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c4442darkslategray | #4c4442darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 5.11:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Spiffy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.017 26.575);
--muted-foreground: oklch(0.426 0.026 26.966);
--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.394 0.012 26.676);
--primary-foreground: oklch(0.906 0.004 26.471);
--secondary: oklch(0.905 0.005 26.475);
--secondary-foreground: oklch(0.393 0.014 26.718);
--accent: oklch(0.905 0.005 26.475);
--accent-foreground: oklch(0.393 0.014 26.718);
--destructive: oklch(0.559 0.187 34.844);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.394 0.012 26.676);
--chart-1: oklch(0.394 0.012 26.676);
--chart-2: oklch(0.905 0.005 26.475);
--chart-3: oklch(0.905 0.005 26.475);
--chart-4: oklch(0.929 0.004 26.466);
--chart-5: oklch(0.391 0.018 26.806);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.021 31.2);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.026 27.667);
--muted-foreground: oklch(0.738 0.022 26.667);
--popover: oklch(0.15 0.024 30.468);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.024 30.468);
--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.394 0.012 26.676);
--primary-foreground: oklch(0.906 0.004 26.471);
--secondary: oklch(0.232 0.011 26.837);
--secondary-foreground: oklch(0.772 0.019 26.622);
--accent: oklch(0.232 0.011 26.837);
--accent-foreground: oklch(0.772 0.019 26.622);
--destructive: oklch(0.649 0.194 35.829);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.394 0.012 26.676);
--chart-1: oklch(0.394 0.012 26.676);
--chart-2: oklch(0.232 0.011 26.837);
--chart-3: oklch(0.232 0.011 26.837);
--chart-4: oklch(0.264 0.014 26.871);
--chart-5: oklch(0.391 0.018 26.806);
}