Wee for shadcn/ui

Wee is a shadcn/ui theme built around a green primary color (#7bb654) with neutral gray accents (#cccdcb). The light mode uses a neutral background (#f9fcf7). Dark mode keeps the green primary (#7bb654) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f9fcf7mintcream
#020401black
Foreground
#020401black
#fcfdfcwhite
Card
#f7fbf4whitesmoke
#040802black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fbf4whitesmoke
#040802black
Popover foreground
#000000black
#ffffffwhite
Primary
#7bb654yellowgreen
#7bb654yellowgreen
Primary foreground
#1c2b12black
#1c2b12black
Secondary
#cccdcblightgrey
#141810black
Secondary foreground
#333432darkslategray
#aabe9ddarkgray
Muted
#e6f1dfbeige
#15200eblack
Muted foreground
#41493cdarkslategray
#bbc3b6silver
Accent
#cccdcblightgrey
#141810black
Accent foreground
#333432darkslategray
#aabe9ddarkgray
Destructive
#a20806darkred
#e20c08red
Destructive foreground
#feddddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7bb654yellowgreen
#7bb654yellowgreen

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card20.06:1AAA
Primary button6.14:1AA
Secondary button7.84:1AAA
Muted text8.04:1AAA
Accent7.84:1AAA
Destructive6.42:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.15:1AAA
Primary button6.14:1AA
Secondary button9.01:1AAA
Muted text9.30:1AAA
Accent9.01:1AAA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 132.415);
  --foreground: oklch(0.099 0.015 131.01);
  --muted: oklch(0.946 0.027 132.575);
  --muted-foreground: oklch(0.394 0.024 132.837);
  --popover: oklch(0.983 0.011 132.444);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.011 132.444);
  --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.713 0.144 134.379);
  --primary-foreground: oklch(0.268 0.047 133.991);
  --secondary: oklch(0.847 0.003 132.386);
  --secondary-foreground: oklch(0.323 0.004 132.45);
  --accent: oklch(0.847 0.003 132.386);
  --accent-foreground: oklch(0.323 0.004 132.45);
  --destructive: oklch(0.451 0.181 29.06);
  --destructive-foreground: oklch(0.925 0.036 18.987);
  --ring: oklch(0.713 0.144 134.379);
  --chart-1: oklch(0.713 0.144 134.379);
  --chart-2: oklch(0.847 0.003 132.386);
  --chart-3: oklch(0.847 0.003 132.386);
  --chart-4: oklch(0.87 0.003 132.381);
  --chart-5: oklch(0.721 0.153 134.548);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.017 130.821);
  --foreground: oklch(0.993 0.001 132.369);
  --muted: oklch(0.228 0.037 133.827);
  --muted-foreground: oklch(0.808 0.02 132.549);
  --popover: oklch(0.126 0.022 130.821);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.022 130.821);
  --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.713 0.144 134.379);
  --primary-foreground: oklch(0.268 0.047 133.991);
  --secondary: oklch(0.203 0.017 133.046);
  --secondary-foreground: oklch(0.777 0.05 132.863);
  --accent: oklch(0.203 0.017 133.046);
  --accent-foreground: oklch(0.777 0.05 132.863);
  --destructive: oklch(0.577 0.233 29.12);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.713 0.144 134.379);
  --chart-1: oklch(0.713 0.144 134.379);
  --chart-2: oklch(0.203 0.017 133.046);
  --chart-3: oklch(0.203 0.017 133.046);
  --chart-4: oklch(0.24 0.023 133.132);
  --chart-5: oklch(0.721 0.153 134.548);
}