Unfit for shadcn/ui

Unfit is a shadcn/ui theme built around a near-white primary color (#f9fbfa) with near-white accents (#fbfaf9). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the near-white primary (#f9fbfa) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#040b09black
Foreground
#020806black
#f6f8f8whitesmoke
Card
#f8fcfamintcream
#040b09black
Card foreground
#020806black
#f6f8f8whitesmoke
Popover
#f8fcfamintcream
#040b09black
Popover foreground
#020806black
#f6f8f8whitesmoke
Primary
#f9fbfamintcream
#f9fbfamintcream
Primary foreground
#253730darkslategray
#253730darkslategray
Secondary
#faf9fbghostwhite
#faf9fbghostwhite
Secondary foreground
#664e74dimgray
#664e74dimgray
Muted
#ece7eelavender
#151118black
Muted foreground
#454347darkslategray
#bbb8bcsilver
Accent
#fbfaf9snow
#fbfaf9snow
Accent foreground
#373025darkslategray
#373025darkslategray
Destructive
#bc250bfirebrick
#f35539tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9fbfamintcream
#f9fbfamintcream

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button12.10:1AAA
Secondary button6.87:1AA
Muted text8.02:1AAA
Accent12.50:1AAA
Destructive6.15:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.63:1AAA
Primary button12.10:1AAA
Secondary button6.87:1AA
Muted text9.50:1AAA
Accent12.50:1AAA
Destructive6.19:1AA

CSS variables

Paste this into your globals.css to use Unfit in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 172.46);
  --foreground: oklch(0.123 0.014 172.817);
  --muted: oklch(0.934 0.01 313.537);
  --muted-foreground: oklch(0.386 0.008 313.483);
  --popover: oklch(0.987 0.004 172.46);
  --popover-foreground: oklch(0.123 0.014 172.817);
  --card: oklch(0.987 0.004 172.46);
  --card-foreground: oklch(0.123 0.014 172.817);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.986 0.002 172.505);
  --primary-foreground: oklch(0.319 0.027 169.845);
  --secondary: oklch(0.983 0.003 313.587);
  --secondary-foreground: oklch(0.463 0.068 312.683);
  --accent: oklch(0.986 0.002 81.514);
  --accent-foreground: oklch(0.314 0.022 81.226);
  --destructive: oklch(0.516 0.189 31.909);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.986 0.002 172.505);
  --chart-1: oklch(0.986 0.002 172.505);
  --chart-2: oklch(0.983 0.003 313.587);
  --chart-3: oklch(0.986 0.002 81.514);
  --chart-4: oklch(1.008 0.001 133.615);
  --chart-5: oklch(0.986 0.003 172.495);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 172.658);
  --foreground: oklch(0.978 0.002 172.507);
  --muted: oklch(0.186 0.015 313.095);
  --muted-foreground: oklch(0.786 0.006 313.555);
  --popover: oklch(0.14 0.014 172.658);
  --popover-foreground: oklch(0.978 0.002 172.507);
  --card: oklch(0.14 0.014 172.658);
  --card-foreground: oklch(0.978 0.002 172.507);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.986 0.002 172.505);
  --primary-foreground: oklch(0.319 0.027 169.845);
  --secondary: oklch(0.983 0.003 313.587);
  --secondary-foreground: oklch(0.463 0.068 312.683);
  --accent: oklch(0.986 0.002 81.514);
  --accent-foreground: oklch(0.314 0.022 81.226);
  --destructive: oklch(0.661 0.199 32.328);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.986 0.002 172.505);
  --chart-1: oklch(0.986 0.002 172.505);
  --chart-2: oklch(0.983 0.003 313.587);
  --chart-3: oklch(0.986 0.002 81.514);
  --chart-4: oklch(1.008 0.001 133.615);
  --chart-5: oklch(0.986 0.003 172.495);
}