Judicious for shadcn/ui

Judicious is a shadcn/ui theme built around a deep yellow primary color (#625932) with deep purple accents (#593262). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#625932) on a yellow-tinted background (#0d0c07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0c07black
Foreground
#040401black
#fbfbf9snow
Card
#ffffffwhite
#0d0c07black
Card foreground
#040401black
#fbfbf9snow
Popover
#ffffffwhite
#0d0c07black
Popover foreground
#040401black
#fbfbf9snow
Primary
#625932darkolivegreen
#625932darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#326259darkslategray
#326259darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#cee3dfgainsboro
#1c312ddarkslategray
Muted foreground
#5c605fdimgray
#9fa3a2darkgray
Accent
#593262darkslateblue
#593262darkslateblue
Accent foreground
#e9daeclavender
#e9daeclavender
Destructive
#662200maroon
#ff6619orangered
Destructive foreground
#ffbb99burlywood
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#625932darkolivegreen
#625932darkolivegreen

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button7.03:1AAA
Secondary button6.91:1AA
Muted text4.77:1AA
Accent7.67:1AAA
Destructive7.14:1AAA
Dark mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button7.03:1AAA
Secondary button6.91:1AA
Muted text5.40:1AA
Accent7.67:1AAA
Destructive7.16:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.103 0.016 100.226);
  --muted: oklch(0.9 0.023 182.458);
  --muted-foreground: oklch(0.486 0.005 182.909);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.103 0.016 100.226);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.103 0.016 100.226);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.462 0.058 95.741);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.46 0.056 179.117);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.385 0.092 319.374);
  --accent-foreground: oklch(0.905 0.03 319.453);
  --destructive: oklch(0.352 0.106 42.086);
  --destructive-foreground: oklch(0.847 0.091 47.611);
  --ring: oklch(0.462 0.058 95.741);
  --chart-1: oklch(0.462 0.058 95.741);
  --chart-2: oklch(0.46 0.056 179.117);
  --chart-3: oklch(0.385 0.092 319.374);
  --chart-4: oklch(0.493 0.06 179.059);
  --chart-5: oklch(0.467 0.062 95.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.011 96.321);
  --foreground: oklch(0.986 0.002 95.06);
  --muted: oklch(0.293 0.029 180.131);
  --muted-foreground: oklch(0.711 0.004 183.013);
  --popover: oklch(0.154 0.011 96.321);
  --popover-foreground: oklch(0.986 0.002 95.06);
  --card: oklch(0.154 0.011 96.321);
  --card-foreground: oklch(0.986 0.002 95.06);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.462 0.058 95.741);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.46 0.056 179.117);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.385 0.092 319.374);
  --accent-foreground: oklch(0.905 0.03 319.453);
  --destructive: oklch(0.696 0.202 41.791);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.462 0.058 95.741);
  --chart-1: oklch(0.462 0.058 95.741);
  --chart-2: oklch(0.46 0.056 179.117);
  --chart-3: oklch(0.385 0.092 319.374);
  --chart-4: oklch(0.493 0.06 179.059);
  --chart-5: oklch(0.467 0.062 95.689);
}