Judicious for shadcn/ui

Judicious is a shadcn/ui theme built around an orange primary color (#d3a673) with yellow accents (#d0d373). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#d3a673) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#050301black
#faf8f4whitesmoke
Card
#ffffffwhite
#040301black
Card foreground
#050301black
#faf8f4whitesmoke
Popover
#ffffffwhite
#040301black
Popover foreground
#050301black
#faf8f4whitesmoke
Primary
#d3a673darksalmon
#d3a673darksalmon
Primary foreground
#100b05black
#100b05black
Secondary
#d37773lightcoral
#d37773lightcoral
Secondary foreground
#100505black
#100505black
Muted
#f1efefwhitesmoke
#100e0eblack
Muted foreground
#5f4f4edimgray
#b1a0a0darkgray
Accent
#d0d373darkkhaki
#d0d373darkkhaki
Accent foreground
#0f1005black
#0f1005black
Destructive
#a90d04darkred
#f92a1forangered
Destructive foreground
#fee3e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3a673darksalmon
#d3a673darksalmon

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button8.86:1AAA
Secondary button6.34:1AA
Muted text6.73:1AA
Accent12.06:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button8.86:1AAA
Secondary button6.34:1AA
Muted text7.68:1AAA
Accent12.06:1AAA
Destructive3.89:1AA Large

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.096 0.015 82.196);
  --muted: oklch(0.953 0.002 19.638);
  --muted-foreground: oklch(0.443 0.023 20.37);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.015 82.196);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.096 0.015 82.196);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.756 0.085 69.694);
  --primary-foreground: oklch(0.152 0.016 74.678);
  --secondary: oklch(0.669 0.116 22.723);
  --secondary-foreground: oklch(0.135 0.021 23.114);
  --accent: oklch(0.844 0.119 110.381);
  --accent-foreground: oklch(0.167 0.022 110.088);
  --destructive: oklch(0.466 0.185 29.617);
  --destructive-foreground: oklch(0.937 0.031 21.324);
  --ring: oklch(0.756 0.085 69.694);
  --chart-1: oklch(0.756 0.085 69.694);
  --chart-2: oklch(0.669 0.116 22.723);
  --chart-3: oklch(0.844 0.119 110.381);
  --chart-4: oklch(0.696 0.105 22.238);
  --chart-5: oklch(0.758 0.09 69.532);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.01 78.683);
  --foreground: oklch(0.979 0.005 71.405);
  --muted: oklch(0.168 0.003 19.903);
  --muted-foreground: oklch(0.721 0.02 20.001);
  --popover: oklch(0.095 0.01 78.683);
  --popover-foreground: oklch(0.979 0.005 71.405);
  --card: oklch(0.095 0.01 78.683);
  --card-foreground: oklch(0.979 0.005 71.405);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.756 0.085 69.694);
  --primary-foreground: oklch(0.152 0.016 74.678);
  --secondary: oklch(0.669 0.116 22.723);
  --secondary-foreground: oklch(0.135 0.021 23.114);
  --accent: oklch(0.844 0.119 110.381);
  --accent-foreground: oklch(0.167 0.022 110.088);
  --destructive: oklch(0.632 0.239 29.149);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.756 0.085 69.694);
  --chart-1: oklch(0.756 0.085 69.694);
  --chart-2: oklch(0.669 0.116 22.723);
  --chart-3: oklch(0.844 0.119 110.381);
  --chart-4: oklch(0.696 0.105 22.238);
  --chart-5: oklch(0.758 0.09 69.532);
}