Fitting for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.26:1AAA
Text on card18.44:1AAA
Primary button9.11:1AAA
Secondary button8.89:1AAA
Muted text7.16:1AAA
Accent8.24:1AAA
Destructive6.02:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.98:1AAA
Primary button9.11:1AAA
Secondary button8.89:1AAA
Muted text8.52:1AAA
Accent8.24:1AAA
Destructive7.29:1AAA

CSS variables

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);
}