Unfit is a shadcn/ui theme built around a muted green primary color (#96b698) with muted red accents (#b69896). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#96b698) on a green-tinted background (#041005).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #041005black |
| Foreground | #041105black | #ffffffwhite |
| Card | #fcfcfcsnow | #051406black |
| Card foreground | #030c04black | #ffffffwhite |
| Popover | #fcfcfcsnow | #051406black |
| Popover foreground | #030c04black | #ffffffwhite |
| Primary | #96b698darkseagreen | #96b698darkseagreen |
| Primary foreground | #0a0f0bblack | #0a0f0bblack |
| Secondary | #9896b6darkgray | #9896b6darkgray |
| Secondary foreground | #0b0a0fblack | #0b0a0fblack |
| Muted | #eeeef7whitesmoke | #090811black |
| Muted foreground | #4f4e65dimgray | #9c9ab1darkgray |
| Accent | #b69896rosybrown | #b69896rosybrown |
| Accent foreground | #0f0b0ablack | #0f0b0ablack |
| Destructive | #8d1b0cdarkred | #eb3219orangered |
| Destructive foreground | #fbd5d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #96b698darkseagreen | #96b698darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 6.96:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Unfit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.158 0.033 145.729);
--muted: oklch(0.951 0.012 289.236);
--muted-foreground: oklch(0.433 0.038 287.752);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.141 0.029 145.951);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.141 0.029 145.951);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.743 0.055 146.78);
--primary-foreground: oklch(0.162 0.012 146.811);
--secondary: oklch(0.685 0.047 288.147);
--secondary-foreground: oklch(0.15 0.01 288.208);
--accent: oklch(0.706 0.036 22.854);
--accent-foreground: oklch(0.154 0.008 22.824);
--destructive: oklch(0.419 0.151 31.038);
--destructive-foreground: oklch(0.904 0.043 26.83);
--ring: oklch(0.743 0.055 146.78);
--chart-1: oklch(0.743 0.055 146.78);
--chart-2: oklch(0.685 0.047 288.147);
--chart-3: oklch(0.706 0.036 22.854);
--chart-4: oklch(0.713 0.042 288.328);
--chart-5: oklch(0.747 0.064 146.653);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.032 145.818);
--foreground: oklch(1 0 180);
--muted: oklch(0.141 0.02 286.856);
--muted-foreground: oklch(0.696 0.034 288.549);
--popover: oklch(0.174 0.037 145.547);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.174 0.037 145.547);
--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.743 0.055 146.78);
--primary-foreground: oklch(0.162 0.012 146.811);
--secondary: oklch(0.685 0.047 288.147);
--secondary-foreground: oklch(0.15 0.01 288.208);
--accent: oklch(0.706 0.036 22.854);
--accent-foreground: oklch(0.154 0.008 22.824);
--destructive: oklch(0.611 0.223 31.022);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.055 146.78);
--chart-1: oklch(0.743 0.055 146.78);
--chart-2: oklch(0.685 0.047 288.147);
--chart-3: oklch(0.706 0.036 22.854);
--chart-4: oklch(0.713 0.042 288.328);
--chart-5: oklch(0.747 0.064 146.653);
}