Spiffy is a shadcn/ui theme built around a green primary color (#2b951d) with muted light green accents (#c8d7c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#2b951d) on a neutral background (#030802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030802black |
| Foreground | #061005black | #f9fbf9mintcream |
| Card | #fcfcfcsnow | #040c03black |
| Card foreground | #050c04black | #fcfdfcwhite |
| Popover | #ffffffwhite | #030802black |
| Popover foreground | #061005black | #f9fbf9mintcream |
| Primary | #2b951dforestgreen | #2b951dforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e4e8e3gainsboro | #161816black |
| Secondary foreground | #475445darkslategray | #aeb2aedarkgray |
| Muted | #e9f3e7beige | #0d180cblack |
| Muted foreground | #4c4d4cdarkslategray | #b2b3b2darkgray |
| Accent | #c8d7c6lightgrey | #293428darkslategray |
| Accent foreground | #2e3f2cdarkslategray | #c1cec0silver |
| Destructive | #ad1d10firebrick | #ea301fcrimson |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b951dforestgreen | #2b951dforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 3.87:1 | AA Large |
| Secondary button | 6.46:1 | AA |
| Muted text | 7.45:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 3.87:1 | AA Large |
| Secondary button | 8.32:1 | AAA |
| Muted text | 8.67:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.24: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.157 0.028 140.732);
--muted: oklch(0.953 0.019 142.044);
--muted-foreground: oklch(0.419 0.003 142.088);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.157 0.028 140.732);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.141 0.024 140.536);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.588 0.18 141.535);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.926 0.008 142.082);
--secondary-foreground: oklch(0.43 0.03 141.871);
--accent: oklch(0.863 0.029 141.997);
--accent-foreground: oklch(0.347 0.04 141.721);
--destructive: oklch(0.482 0.18 30.048);
--destructive-foreground: oklch(0.97 0.013 23.711);
--ring: oklch(0.588 0.18 141.535);
--chart-1: oklch(0.588 0.18 141.535);
--chart-2: oklch(0.926 0.008 142.082);
--chart-3: oklch(0.863 0.029 141.997);
--chart-4: oklch(0.949 0.006 142.092);
--chart-5: oklch(0.595 0.185 141.573);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.024 140.323);
--foreground: oklch(0.986 0.003 142.103);
--muted: oklch(0.194 0.028 141.627);
--muted-foreground: oklch(0.766 0.003 142.101);
--popover: oklch(0.123 0.024 140.323);
--popover-foreground: oklch(0.986 0.003 142.103);
--card: oklch(0.142 0.027 140.363);
--card-foreground: oklch(0.993 0.001 142.108);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.588 0.18 141.535);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.206 0.003 142.058);
--secondary-foreground: oklch(0.76 0.008 142.076);
--accent: oklch(0.311 0.025 141.83);
--accent-foreground: oklch(0.838 0.024 142.012);
--destructive: oklch(0.609 0.223 29.975);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.18 141.535);
--chart-1: oklch(0.588 0.18 141.535);
--chart-2: oklch(0.206 0.003 142.058);
--chart-3: oklch(0.311 0.025 141.83);
--chart-4: oklch(0.239 0.004 142.052);
--chart-5: oklch(0.595 0.185 141.573);
}