Unfit is a shadcn/ui theme built around a vivid deep green primary color (#5f7506) with muted light green accents (#dcded3). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the vivid deep green primary (#5f7506) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf7snow | #030401black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fafcf3floralwhite | #070802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fafcf3floralwhite | #070802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #5f7506olive | #5f7506olive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dcded3gainsboro | #1c1e15black |
| Secondary foreground | #454936darkslategray | #bbc1a4silver |
| Muted | #ebede3beige | #1a1c12black |
| Muted foreground | #666b52dimgray | #a8ad94darkgray |
| Accent | #dcded3gainsboro | #1c1e15black |
| Accent foreground | #454936darkslategray | #bbc1a4silver |
| Destructive | #7f3206saddlebrown | #f6803ccoral |
| Destructive foreground | #fcd3bbpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5f7506olive | #5f7506olive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 5.21:1 | AA |
| Secondary button | 6.85:1 | AA |
| Muted text | 4.68:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 5.21:1 | AA |
| Secondary button | 9.01:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 9.01:1 | AAA |
| Destructive | 8.07:1 | AAA |
Paste this into your globals.css to use Unfit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 115.727);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.013 115.831);
--muted-foreground: oklch(0.515 0.038 116.925);
--popover: oklch(0.987 0.012 115.802);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.012 115.802);
--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.525 0.125 122.022);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.897 0.016 115.897);
--secondary-foreground: oklch(0.397 0.031 117.029);
--accent: oklch(0.897 0.016 115.897);
--accent-foreground: oklch(0.397 0.031 117.029);
--destructive: oklch(0.42 0.117 44.277);
--destructive-foreground: oklch(0.895 0.056 51.778);
--ring: oklch(0.525 0.125 122.022);
--chart-1: oklch(0.525 0.125 122.022);
--chart-2: oklch(0.897 0.016 115.897);
--chart-3: oklch(0.897 0.016 115.897);
--chart-4: oklch(0.918 0.012 115.827);
--chart-5: oklch(0.531 0.128 122.177);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.013 116.092);
--foreground: oklch(0.993 0.001 115.591);
--muted: oklch(0.22 0.018 117.108);
--muted-foreground: oklch(0.737 0.035 116.444);
--popover: oklch(0.128 0.017 116.092);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.017 116.092);
--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.525 0.125 122.022);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.231 0.018 117.026);
--secondary-foreground: oklch(0.799 0.04 116.505);
--accent: oklch(0.231 0.018 117.026);
--accent-foreground: oklch(0.799 0.04 116.505);
--destructive: oklch(0.722 0.165 47.824);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.525 0.125 122.022);
--chart-1: oklch(0.525 0.125 122.022);
--chart-2: oklch(0.231 0.018 117.026);
--chart-3: oklch(0.231 0.018 117.026);
--chart-4: oklch(0.268 0.023 117.141);
--chart-5: oklch(0.531 0.128 122.177);
}