Fitting is a shadcn/ui theme built around a vivid deep teal primary color (#042015) with vivid deep cyan accents (#041d20). The light mode uses a neutral background (#f7fcfa). Dark mode keeps the vivid deep teal primary (#042015) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfamintcream | #000000black |
| Foreground | #05140eblack | #f5faf8mintcream |
| Card | #f4fbf8mintcream | #030303black |
| Card foreground | #04100bblack | #f8fcfamintcream |
| Popover | #f7fcfamintcream | #000000black |
| Popover foreground | #05140eblack | #f5faf8mintcream |
| Primary | #042015black | #042015black |
| Primary foreground | #19d78bmediumspringgreen | #19d78bmediumspringgreen |
| Secondary | #042007black | #042007black |
| Secondary foreground | #19d72climegreen | #19d72climegreen |
| Muted | #e3f2e5beige | #0d1c0eblack |
| Muted foreground | #495049darkslategray | #afb6afdarkgray |
| Accent | #041d20black | #041d20black |
| Accent foreground | #19c4d7darkturquoise | #19c4d7darkturquoise |
| Destructive | #aa420esaddlebrown | #ef7639tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #042015black | #042015black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.26:1 | AAA |
| Text on card | 18.44:1 | AAA |
| Primary button | 9.11:1 | AAA |
| Secondary button | 8.89:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 9.11:1 | AAA |
| Secondary button | 8.89:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 7.29:1 | AAA |
Paste this into your globals.css to use Fitting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 170.456);
--foreground: oklch(0.175 0.025 166.675);
--muted: oklch(0.947 0.024 148.306);
--muted-foreground: oklch(0.423 0.015 148.194);
--popover: oklch(0.988 0.006 170.456);
--popover-foreground: oklch(0.175 0.025 166.675);
--card: oklch(0.982 0.009 170.37);
--card-foreground: oklch(0.159 0.021 168.225);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.218 0.041 163.547);
--primary-foreground: oklch(0.775 0.176 158.58);
--secondary: oklch(0.214 0.059 145.311);
--secondary-foreground: oklch(0.763 0.246 143.441);
--accent: oklch(0.213 0.032 205.128);
--accent-foreground: oklch(0.75 0.126 207.419);
--destructive: oklch(0.514 0.148 41.912);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.218 0.041 163.547);
--chart-1: oklch(0.218 0.041 163.547);
--chart-2: oklch(0.214 0.059 145.311);
--chart-3: oklch(0.213 0.032 205.128);
--chart-4: oklch(0.263 0.076 144.622);
--chart-5: oklch(0.219 0.043 163.362);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.006 170.449);
--muted: oklch(0.208 0.034 146.557);
--muted-foreground: oklch(0.769 0.013 148.406);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.98 0.006 170.449);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.004 170.508);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.218 0.041 163.547);
--primary-foreground: oklch(0.775 0.176 158.58);
--secondary: oklch(0.214 0.059 145.311);
--secondary-foreground: oklch(0.763 0.246 143.441);
--accent: oklch(0.213 0.032 205.128);
--accent-foreground: oklch(0.75 0.126 207.419);
--destructive: oklch(0.696 0.167 44.783);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.218 0.041 163.547);
--chart-1: oklch(0.218 0.041 163.547);
--chart-2: oklch(0.214 0.059 145.311);
--chart-3: oklch(0.213 0.032 205.128);
--chart-4: oklch(0.263 0.076 144.622);
--chart-5: oklch(0.219 0.043 163.362);
}