Fitting is a shadcn/ui theme built around a red primary color (#85424d) with teal accents (#42857a). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the red primary (#85424d) on a red-tinted background (#0e0708).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0e0708black |
| Foreground | #080203black | #ffffffwhite |
| Card | #faf5f6whitesmoke | #11080ablack |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #faf5f6whitesmoke | #11080ablack |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #85424dsienna | #85424dsienna |
| Primary foreground | #fdfcfcsnow | #fdfcfcsnow |
| Secondary | #42857aseagreen | #42857aseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #cde9e5gainsboro | #16322ddarkslategray |
| Muted foreground | #4b5d5adarkslategray | #a2b4b1darkgray |
| Accent | #42857aseagreen | #42857aseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8f2c04saddlebrown | #f85e20chocolate |
| Destructive foreground | #fdd8c9bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85424dsienna | #85424dsienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 5.44:1 | AA |
| Accent | 4.30:1 | AA Large |
| Destructive | 6.24:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 6.37:1 | AA |
| Accent | 4.30:1 | AA Large |
| Destructive | 6.60:1 | AA |
Paste this into your globals.css to use Fitting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 5.554);
--foreground: oklch(0.105 0.018 6.015);
--muted: oklch(0.913 0.03 184.573);
--muted-foreground: oklch(0.463 0.023 184.086);
--popover: oklch(0.973 0.006 5.609);
--popover-foreground: oklch(0.083 0.014 6.015);
--card: oklch(0.973 0.006 5.609);
--card-foreground: oklch(0.083 0.014 6.015);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.466 0.093 10.844);
--primary-foreground: oklch(0.991 0.002 5.498);
--secondary: oklch(0.57 0.071 181.432);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.57 0.071 181.432);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.44 0.141 37.9);
--destructive-foreground: oklch(0.909 0.047 42.751);
--ring: oklch(0.466 0.093 10.844);
--chart-1: oklch(0.466 0.093 10.844);
--chart-2: oklch(0.57 0.071 181.432);
--chart-3: oklch(0.57 0.071 181.432);
--chart-4: oklch(0.601 0.076 181.399);
--chart-5: oklch(0.465 0.101 11.422);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.014 6.462);
--foreground: oklch(1 0 180);
--muted: oklch(0.292 0.035 181.656);
--muted-foreground: oklch(0.755 0.021 184.711);
--popover: oklch(0.15 0.016 7.686);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.016 7.686);
--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.466 0.093 10.844);
--primary-foreground: oklch(0.991 0.002 5.498);
--secondary: oklch(0.57 0.071 181.432);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.57 0.071 181.432);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.676 0.201 39.123);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.466 0.093 10.844);
--chart-1: oklch(0.466 0.093 10.844);
--chart-2: oklch(0.57 0.071 181.432);
--chart-3: oklch(0.57 0.071 181.432);
--chart-4: oklch(0.601 0.076 181.399);
--chart-5: oklch(0.465 0.101 11.422);
}