Fitting is a shadcn/ui theme built around a vivid deep cyan primary color (#021113) with vivid deep red accents (#130402). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the vivid deep cyan primary (#021113) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #020303black |
| Foreground | #000000black | #f9fafaghostwhite |
| Card | #f6fdfdmintcream | #020303black |
| Card foreground | #000000black | #f9fafaghostwhite |
| Popover | #f6fdfdmintcream | #020303black |
| Popover foreground | #000000black | #f9fafaghostwhite |
| Primary | #021113black | #021113black |
| Primary foreground | #14baccdarkturquoise | #14baccdarkturquoise |
| Secondary | #130402black | #130402black |
| Secondary foreground | #ee6758tomato | #ee6758tomato |
| Muted | #efececlinen | #131110black |
| Muted foreground | #6c5451dimgray | #ae9693rosybrown |
| Accent | #130402black | #130402black |
| Accent foreground | #ee6758tomato | #ee6758tomato |
| Destructive | #d0360bfirebrick | #ed3d0corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #021113black | #021113black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 6.44:1 | AA |
| Muted text | 5.90:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 4.97:1 | AA |
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 6.44:1 | AA |
| Muted text | 6.80:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Fitting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 204.938);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.003 25.014);
--muted-foreground: oklch(0.469 0.032 25.697);
--popover: oklch(0.989 0.007 204.938);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.007 204.938);
--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.163 0.024 203.529);
--primary-foreground: oklch(0.722 0.121 207.592);
--secondary: oklch(0.133 0.033 33.678);
--secondary-foreground: oklch(0.679 0.17 28.71);
--accent: oklch(0.133 0.033 33.678);
--accent-foreground: oklch(0.679 0.17 28.71);
--destructive: oklch(0.566 0.197 34.273);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.163 0.024 203.529);
--chart-1: oklch(0.163 0.024 203.529);
--chart-2: oklch(0.133 0.033 33.678);
--chart-3: oklch(0.133 0.033 33.678);
--chart-4: oklch(0.171 0.048 32.009);
--chart-5: oklch(0.164 0.025 203.505);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.006 203.387);
--foreground: oklch(0.985 0.001 204.982);
--muted: oklch(0.179 0.004 25.202);
--muted-foreground: oklch(0.694 0.029 25.38);
--popover: oklch(0.095 0.006 203.387);
--popover-foreground: oklch(0.985 0.001 204.982);
--card: oklch(0.095 0.006 203.387);
--card-foreground: oklch(0.985 0.001 204.982);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.163 0.024 203.529);
--primary-foreground: oklch(0.722 0.121 207.592);
--secondary: oklch(0.133 0.033 33.678);
--secondary-foreground: oklch(0.679 0.17 28.71);
--accent: oklch(0.133 0.033 33.678);
--accent-foreground: oklch(0.679 0.17 28.71);
--destructive: oklch(0.624 0.218 34.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.163 0.024 203.529);
--chart-1: oklch(0.163 0.024 203.529);
--chart-2: oklch(0.133 0.033 33.678);
--chart-3: oklch(0.133 0.033 33.678);
--chart-4: oklch(0.171 0.048 32.009);
--chart-5: oklch(0.164 0.025 203.505);
}