Spiffy is a shadcn/ui theme built around a vivid green primary color (#7daf18) with vivid violet accents (#4a18af). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid green primary (#7daf18) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060802black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #fdfefbwhite | #060802black |
| Card foreground | #030401black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #060802black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #7daf18olivedrab | #7daf18olivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #4a18afrebeccapurple | #4a18afrebeccapurple |
| Secondary foreground | #fcfbfewhite | #fcfbfewhite |
| Muted | #d4cbe7thistle | #221834midnightblue |
| Muted foreground | #64606cdimgray | #97939fdarkgray |
| Accent | #4a18afrebeccapurple | #4a18afrebeccapurple |
| Accent foreground | #fcfbfewhite | #fcfbfewhite |
| Destructive | #9f3504saddlebrown | #f95a10orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7daf18olivedrab | #7daf18olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 9.97:1 | AAA |
| Muted text | 3.92:1 | AA Large |
| Accent | 9.97:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 9.97:1 | AAA |
| Muted text | 5.60:1 | AA |
| Accent | 9.97:1 | AAA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Spiffy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.005 121.569);
--foreground: oklch(0.103 0.018 121.105);
--muted: oklch(0.857 0.04 300.74);
--muted-foreground: oklch(0.497 0.02 300.85);
--popover: oklch(0.996 0.005 121.569);
--popover-foreground: oklch(0.103 0.018 121.105);
--card: oklch(0.996 0.005 121.569);
--card-foreground: oklch(0.103 0.018 121.105);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.693 0.174 127.875);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.4 0.21 287.315);
--secondary-foreground: oklch(0.989 0.005 301.407);
--accent: oklch(0.4 0.21 287.315);
--accent-foreground: oklch(0.989 0.005 301.407);
--destructive: oklch(0.479 0.149 39.541);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.693 0.174 127.875);
--chart-1: oklch(0.693 0.174 127.875);
--chart-2: oklch(0.4 0.21 287.315);
--chart-3: oklch(0.4 0.21 287.315);
--chart-4: oklch(0.421 0.223 287.127);
--chart-5: oklch(0.701 0.178 128.107);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.02 121.138);
--foreground: oklch(0.994 0.002 121.53);
--muted: oklch(0.237 0.054 297.51);
--muted-foreground: oklch(0.67 0.018 301.051);
--popover: oklch(0.129 0.02 121.138);
--popover-foreground: oklch(0.994 0.002 121.53);
--card: oklch(0.129 0.02 121.138);
--card-foreground: oklch(0.994 0.002 121.53);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.693 0.174 127.875);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.4 0.21 287.315);
--secondary-foreground: oklch(0.989 0.005 301.407);
--accent: oklch(0.4 0.21 287.315);
--accent-foreground: oklch(0.989 0.005 301.407);
--destructive: oklch(0.672 0.207 39.722);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.693 0.174 127.875);
--chart-1: oklch(0.693 0.174 127.875);
--chart-2: oklch(0.4 0.21 287.315);
--chart-3: oklch(0.4 0.21 287.315);
--chart-4: oklch(0.421 0.223 287.127);
--chart-5: oklch(0.701 0.178 128.107);
}