Whole for shadcn/ui

Whole is a shadcn/ui theme built around a muted green primary color (#84a465) with muted green accents (#65a466). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted green primary (#84a465) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfefbwhite
#000000black
Foreground
#0a1005black
#fcfdfbsnow
Card
#fcfefbwhite
#000000black
Card foreground
#0a1005black
#fcfdfbsnow
Popover
#fcfefbwhite
#000000black
Popover foreground
#0a1005black
#fcfdfbsnow
Primary
#84a465gray
#84a465gray
Primary foreground
#000000black
#000000black
Secondary
#a3a465darkkhaki
#a3a465darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#eeeeddbeige
#222211black
Muted foreground
#65664ddimgray
#b2b299darkgray
Accent
#65a466mediumseagreen
#65a466mediumseagreen
Accent foreground
#000000black
#000000black
Destructive
#c53e0dfirebrick
#f15a22chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#84a465gray
#84a465gray

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button7.50:1AAA
Secondary button8.09:1AAA
Muted text5.03:1AA
Accent7.08:1AAA
Destructive5.18:1AA
Dark mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button7.50:1AAA
Secondary button8.09:1AAA
Muted text7.44:1AAA
Accent7.08:1AAA
Destructive6.20:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 129.177);
  --foreground: oklch(0.161 0.025 129.334);
  --muted: oklch(0.945 0.023 107.606);
  --muted-foreground: oklch(0.502 0.038 108.48);
  --popover: oklch(0.995 0.005 129.177);
  --popover-foreground: oklch(0.161 0.025 129.334);
  --card: oklch(0.995 0.005 129.177);
  --card-foreground: oklch(0.161 0.025 129.334);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.68 0.096 130.811);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.704 0.085 109.221);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.661 0.112 144.535);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.554 0.179 37.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.096 130.811);
  --chart-1: oklch(0.68 0.096 130.811);
  --chart-2: oklch(0.704 0.085 109.221);
  --chart-3: oklch(0.661 0.112 144.535);
  --chart-4: oklch(0.723 0.08 109.059);
  --chart-5: oklch(0.688 0.106 131.005);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.003 129.156);
  --muted: oklch(0.247 0.03 109.236);
  --muted-foreground: oklch(0.757 0.035 107.981);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.003 129.156);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.003 129.156);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.68 0.096 130.811);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.704 0.085 109.221);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.661 0.112 144.535);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.66 0.197 38.313);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.68 0.096 130.811);
  --chart-1: oklch(0.68 0.096 130.811);
  --chart-2: oklch(0.704 0.085 109.221);
  --chart-3: oklch(0.661 0.112 144.535);
  --chart-4: oklch(0.723 0.08 109.059);
  --chart-5: oklch(0.688 0.106 131.005);
}