Judicious for shadcn/ui

Judicious is a shadcn/ui theme built around a muted green primary color (#8fbf8d) with muted green accents (#8dbfa3). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted green primary (#8fbf8d) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#040703black
Foreground
#030802black
#ffffffwhite
Card
#f4fbf4whitesmoke
#050a05black
Card foreground
#010401black
#ffffffwhite
Popover
#f4fbf4whitesmoke
#050a05black
Popover foreground
#010401black
#ffffffwhite
Primary
#8fbf8ddarkseagreen
#8fbf8ddarkseagreen
Primary foreground
#0a1009black
#0a1009black
Secondary
#a8bf8ddarkseagreen
#a8bf8ddarkseagreen
Secondary foreground
#0d1009black
#0d1009black
Muted
#e1e3degainsboro
#1f211cblack
Muted foreground
#5a5f53dimgray
#a6aca0darkgray
Accent
#8dbfa3darkseagreen
#8dbfa3darkseagreen
Accent foreground
#09100cblack
#09100cblack
Destructive
#c33f13firebrick
#df4816chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8fbf8ddarkseagreen
#8fbf8ddarkseagreen

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.57:1AAA
Primary button9.15:1AAA
Secondary button9.57:1AAA
Muted text5.06:1AA
Accent9.24:1AAA
Destructive5.19:1AA
Dark mode
Text on background20.27:1AAA
Text on card19.93:1AAA
Primary button9.15:1AAA
Secondary button9.57:1AAA
Muted text7.00:1AAA
Accent9.24:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 144.083);
  --foreground: oklch(0.122 0.022 142.531);
  --muted: oklch(0.912 0.006 126.514);
  --muted-foreground: oklch(0.478 0.021 126.995);
  --popover: oklch(0.981 0.012 144.059);
  --popover-foreground: oklch(0.097 0.018 142.531);
  --card: oklch(0.981 0.012 144.059);
  --card-foreground: oklch(0.097 0.018 142.531);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.757 0.087 143.434);
  --primary-foreground: oklch(0.165 0.018 143.411);
  --secondary: oklch(0.774 0.073 127.7);
  --secondary-foreground: oklch(0.168 0.015 127.607);
  --accent: oklch(0.761 0.066 160.26);
  --accent-foreground: oklch(0.165 0.014 160.419);
  --destructive: oklch(0.553 0.175 36.78);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0.087 143.434);
  --chart-1: oklch(0.757 0.087 143.434);
  --chart-2: oklch(0.774 0.073 127.7);
  --chart-3: oklch(0.761 0.066 160.26);
  --chart-4: oklch(0.794 0.066 127.549);
  --chart-5: oklch(0.761 0.095 143.365);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.014 143.143);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.008 126.88);
  --muted-foreground: oklch(0.736 0.019 126.757);
  --popover: oklch(0.137 0.016 143.143);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.016 143.143);
  --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.757 0.087 143.434);
  --primary-foreground: oklch(0.165 0.018 143.411);
  --secondary: oklch(0.774 0.073 127.7);
  --secondary-foreground: oklch(0.168 0.015 127.607);
  --accent: oklch(0.761 0.066 160.26);
  --accent-foreground: oklch(0.165 0.014 160.419);
  --destructive: oklch(0.61 0.195 36.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0.087 143.434);
  --chart-1: oklch(0.757 0.087 143.434);
  --chart-2: oklch(0.774 0.073 127.7);
  --chart-3: oklch(0.761 0.066 160.26);
  --chart-4: oklch(0.794 0.066 127.549);
  --chart-5: oklch(0.761 0.095 143.365);
}