Whole for shadcn/ui

Whole is a shadcn/ui theme built around a light green primary color (#f4faf7) with light pink accents (#faf4f8). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the light green primary (#f4faf7) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#030705black
Foreground
#04160cblack
#f9fbfamintcream
Card
#f3fbf7mintcream
#050b07black
Card foreground
#031109black
#fcfdfcwhite
Popover
#f7fdfamintcream
#030705black
Popover foreground
#04160cblack
#f9fbfamintcream
Primary
#f4faf7whitesmoke
#f4faf7whitesmoke
Primary foreground
#1b3c29darkslategray
#1b3c29darkslategray
Secondary
#faf4f8whitesmoke
#faf4f8whitesmoke
Secondary foreground
#823a63dimgray
#823a63dimgray
Muted
#ebe0e6gainsboro
#1f141ablack
Muted foreground
#6f5263dimgray
#ad90a0rosybrown
Accent
#faf4f8whitesmoke
#faf4f8whitesmoke
Accent foreground
#823a63dimgray
#823a63dimgray
Destructive
#722f08saddlebrown
#e55e10chocolate
Destructive foreground
#facdb3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4faf7whitesmoke
#f4faf7whitesmoke

Contrast

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

Light mode
Text on background18.06:1AAA
Text on card18.38:1AAA
Primary button11.54:1AAA
Secondary button7.10:1AAA
Muted text5.32:1AA
Accent7.10:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.50:1AAA
Primary button11.54:1AAA
Secondary button7.10:1AAA
Muted text6.20:1AA
Accent7.10:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 161.64);
  --foreground: oklch(0.179 0.033 157.806);
  --muted: oklch(0.917 0.015 342.208);
  --muted-foreground: oklch(0.476 0.046 343.971);
  --popover: oklch(0.988 0.007 161.64);
  --popover-foreground: oklch(0.179 0.033 157.806);
  --card: oklch(0.982 0.01 161.554);
  --card-foreground: oklch(0.162 0.028 159.545);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.981 0.008 161.623);
  --primary-foreground: oklch(0.324 0.052 157.017);
  --secondary: oklch(0.974 0.008 341.993);
  --secondary-foreground: oklch(0.458 0.111 347.233);
  --accent: oklch(0.974 0.008 341.993);
  --accent-foreground: oklch(0.458 0.111 347.233);
  --destructive: oklch(0.394 0.106 45.103);
  --destructive-foreground: oklch(0.88 0.062 51.685);
  --ring: oklch(0.981 0.008 161.623);
  --chart-1: oklch(0.981 0.008 161.623);
  --chart-2: oklch(0.974 0.008 341.993);
  --chart-3: oklch(0.974 0.008 341.993);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.981 0.008 161.608);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 161.794);
  --foreground: oklch(0.986 0.002 161.756);
  --muted: oklch(0.208 0.023 344.255);
  --muted-foreground: oklch(0.683 0.042 343.206);
  --popover: oklch(0.121 0.012 161.794);
  --popover-foreground: oklch(0.986 0.002 161.756);
  --card: oklch(0.139 0.014 161.754);
  --card-foreground: oklch(0.993 0.001 161.782);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.981 0.008 161.623);
  --primary-foreground: oklch(0.324 0.052 157.017);
  --secondary: oklch(0.974 0.008 341.993);
  --secondary-foreground: oklch(0.458 0.111 347.233);
  --accent: oklch(0.974 0.008 341.993);
  --accent-foreground: oklch(0.458 0.111 347.233);
  --destructive: oklch(0.646 0.184 43.532);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.981 0.008 161.623);
  --chart-1: oklch(0.981 0.008 161.623);
  --chart-2: oklch(0.974 0.008 341.993);
  --chart-3: oklch(0.974 0.008 341.993);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.981 0.008 161.608);
}