Unfit for shadcn/ui

Unfit is a shadcn/ui theme built around a vivid deep green primary color (#5f7506) with muted light green accents (#dcded3). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the vivid deep green primary (#5f7506) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fcfdf7snow
#030401black
Foreground
#000000black
#fdfdfcwhite
Card
#fafcf3floralwhite
#070802black
Card foreground
#000000black
#ffffffwhite
Popover
#fafcf3floralwhite
#070802black
Popover foreground
#000000black
#ffffffwhite
Primary
#5f7506olive
#5f7506olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dcded3gainsboro
#1c1e15black
Secondary foreground
#454936darkslategray
#bbc1a4silver
Muted
#ebede3beige
#1a1c12black
Muted foreground
#666b52dimgray
#a8ad94darkgray
Accent
#dcded3gainsboro
#1c1e15black
Accent foreground
#454936darkslategray
#bbc1a4silver
Destructive
#7f3206saddlebrown
#f6803ccoral
Destructive foreground
#fcd3bbpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f7506olive
#5f7506olive

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.26:1AAA
Primary button5.21:1AA
Secondary button6.85:1AA
Muted text4.68:1AA
Accent6.85:1AA
Destructive6.43:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.13:1AAA
Primary button5.21:1AA
Secondary button9.01:1AAA
Muted text7.45:1AAA
Accent9.01:1AAA
Destructive8.07:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 115.727);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.013 115.831);
  --muted-foreground: oklch(0.515 0.038 116.925);
  --popover: oklch(0.987 0.012 115.802);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.012 115.802);
  --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.525 0.125 122.022);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.897 0.016 115.897);
  --secondary-foreground: oklch(0.397 0.031 117.029);
  --accent: oklch(0.897 0.016 115.897);
  --accent-foreground: oklch(0.397 0.031 117.029);
  --destructive: oklch(0.42 0.117 44.277);
  --destructive-foreground: oklch(0.895 0.056 51.778);
  --ring: oklch(0.525 0.125 122.022);
  --chart-1: oklch(0.525 0.125 122.022);
  --chart-2: oklch(0.897 0.016 115.897);
  --chart-3: oklch(0.897 0.016 115.897);
  --chart-4: oklch(0.918 0.012 115.827);
  --chart-5: oklch(0.531 0.128 122.177);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.013 116.092);
  --foreground: oklch(0.993 0.001 115.591);
  --muted: oklch(0.22 0.018 117.108);
  --muted-foreground: oklch(0.737 0.035 116.444);
  --popover: oklch(0.128 0.017 116.092);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.017 116.092);
  --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.525 0.125 122.022);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.231 0.018 117.026);
  --secondary-foreground: oklch(0.799 0.04 116.505);
  --accent: oklch(0.231 0.018 117.026);
  --accent-foreground: oklch(0.799 0.04 116.505);
  --destructive: oklch(0.722 0.165 47.824);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.525 0.125 122.022);
  --chart-1: oklch(0.525 0.125 122.022);
  --chart-2: oklch(0.231 0.018 117.026);
  --chart-3: oklch(0.231 0.018 117.026);
  --chart-4: oklch(0.268 0.023 117.141);
  --chart-5: oklch(0.531 0.128 122.177);
}