Fit is a shadcn/ui theme built around a neutral gray primary color (#525752) with neutral gray accents (#525755). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#525752) on a green-tinted background (#050f07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f07black |
| Foreground | #000000black | #f9fbf9mintcream |
| Card | #ffffffwhite | #050f07black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #050f07black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #525752darkslategray | #525752darkslategray |
| Primary foreground | #edeeedwhitesmoke | #edeeedwhitesmoke |
| Secondary | #535752dimgray | #535752dimgray |
| Secondary foreground | #edeeedwhitesmoke | #edeeedwhitesmoke |
| Muted | #e3eddegainsboro | #172112black |
| Muted foreground | #565954dimgray | #a7aba6darkgray |
| Accent | #525755dimgray | #525755dimgray |
| Accent foreground | #edeeedwhitesmoke | #edeeedwhitesmoke |
| Destructive | #992600saddlebrown | #ff4000orangered |
| Destructive foreground | #ffd9ccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #525752darkslategray | #525752darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 6.34:1 | AA |
| Muted text | 5.91:1 | AA |
| Accent | 6.35:1 | AA |
| Destructive | 6.09:1 | AA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 6.34:1 | AA |
| Muted text | 7.12:1 | AAA |
| Accent | 6.35:1 | AA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Fit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.935 0.024 134.955);
--muted-foreground: oklch(0.46 0.009 134.928);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.45 0.009 150.535);
--primary-foreground: oklch(0.947 0.002 150.797);
--secondary: oklch(0.451 0.009 134.928);
--secondary-foreground: oklch(0.947 0.002 134.836);
--accent: oklch(0.45 0.007 174.13);
--accent-foreground: oklch(0.947 0.001 174.549);
--destructive: oklch(0.452 0.156 35.621);
--destructive-foreground: oklch(0.913 0.046 39.283);
--ring: oklch(0.45 0.009 150.535);
--chart-1: oklch(0.45 0.009 150.535);
--chart-2: oklch(0.451 0.009 134.928);
--chart-3: oklch(0.45 0.007 174.13);
--chart-4: oklch(0.479 0.01 134.929);
--chart-5: oklch(0.453 0.019 150.248);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.025 149.417);
--foreground: oklch(0.986 0.002 150.791);
--muted: oklch(0.234 0.033 135.648);
--muted-foreground: oklch(0.737 0.008 134.883);
--popover: oklch(0.156 0.025 149.417);
--popover-foreground: oklch(0.986 0.002 150.791);
--card: oklch(0.156 0.025 149.417);
--card-foreground: oklch(0.986 0.002 150.791);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.45 0.009 150.535);
--primary-foreground: oklch(0.947 0.002 150.797);
--secondary: oklch(0.451 0.009 134.928);
--secondary-foreground: oklch(0.947 0.002 134.836);
--accent: oklch(0.45 0.007 174.13);
--accent-foreground: oklch(0.947 0.001 174.549);
--destructive: oklch(0.656 0.233 34.483);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.45 0.009 150.535);
--chart-1: oklch(0.45 0.009 150.535);
--chart-2: oklch(0.451 0.009 134.928);
--chart-3: oklch(0.45 0.007 174.13);
--chart-4: oklch(0.479 0.01 134.929);
--chart-5: oklch(0.453 0.019 150.248);
}