Unfit is a shadcn/ui theme built around a muted light blue primary color (#c9ced4) with muted light indigo accents (#c9c9d4). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#c9ced4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #040c15black | #ffffffwhite |
| Card | #fbfcfewhite | #000000black |
| Card foreground | #040c15black | #ffffffwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #040c15black | #ffffffwhite |
| Primary | #c9ced4lightgrey | #c9ced4lightgrey |
| Primary foreground | #2f353cdarkslategray | #2f353cdarkslategray |
| Secondary | #c9d4d4lightgrey | #c9d4d4lightgrey |
| Secondary foreground | #2f3b3cdarkslategray | #2f3b3cdarkslategray |
| Muted | #ecf3f3whitesmoke | #0c1213black |
| Muted foreground | #535555dimgray | #aaacacdarkgray |
| Accent | #c9c9d4lightgrey | #c9c9d4lightgrey |
| Accent foreground | #302f3cdarkslategray | #302f3cdarkslategray |
| Destructive | #772309maroon | #f0663dtomato |
| Destructive foreground | #fac7b8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9ced4lightgrey | #c9ced4lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Unfit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 253.233);
--foreground: oklch(0.15 0.025 250.321);
--muted: oklch(0.959 0.007 200.803);
--muted-foreground: oklch(0.448 0.002 200.833);
--popover: oklch(0.992 0.002 253.233);
--popover-foreground: oklch(0.15 0.025 250.321);
--card: oklch(0.992 0.002 253.233);
--card-foreground: oklch(0.15 0.025 250.321);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.849 0.011 253.302);
--primary-foreground: oklch(0.326 0.015 253.487);
--secondary: oklch(0.861 0.012 200.722);
--secondary-foreground: oklch(0.343 0.016 200.373);
--accent: oklch(0.839 0.016 288.35);
--accent-foreground: oklch(0.312 0.023 287.284);
--destructive: oklch(0.384 0.122 36.103);
--destructive-foreground: oklch(0.871 0.062 37.593);
--ring: oklch(0.849 0.011 253.302);
--chart-1: oklch(0.849 0.011 253.302);
--chart-2: oklch(0.861 0.012 200.722);
--chart-3: oklch(0.839 0.016 288.35);
--chart-4: oklch(0.883 0.01 200.751);
--chart-5: oklch(0.848 0.013 253.321);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.177 0.01 200.295);
--muted-foreground: oklch(0.742 0.002 200.859);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.849 0.011 253.302);
--primary-foreground: oklch(0.326 0.015 253.487);
--secondary: oklch(0.861 0.012 200.722);
--secondary-foreground: oklch(0.343 0.016 200.373);
--accent: oklch(0.839 0.016 288.35);
--accent-foreground: oklch(0.312 0.023 287.284);
--destructive: oklch(0.677 0.18 37.307);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.849 0.011 253.302);
--chart-1: oklch(0.849 0.011 253.302);
--chart-2: oklch(0.861 0.012 200.722);
--chart-3: oklch(0.839 0.016 288.35);
--chart-4: oklch(0.883 0.01 200.751);
--chart-5: oklch(0.848 0.013 253.321);
}