Judge for shadcn/ui

Judge is a shadcn/ui theme built around a neutral gray primary color (#afaeac) with muted yellow accents (#c2bdb2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#afaeac) on a yellow-tinted background (#0e0c07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0c07black
Foreground
#0d0a03black
#fbfaf9snow
Card
#fcfcfcsnow
#110e08black
Card foreground
#080602black
#fdfdfcwhite
Popover
#ffffffwhite
#0e0c07black
Popover foreground
#0d0a03black
#fbfaf9snow
Primary
#afaeacdarkgray
#afaeacdarkgray
Primary foreground
#151514black
#151514black
Secondary
#d6d5d1lightgrey
#191815black
Secondary foreground
#3e3c37darkslategray
#b5b2aadarkgray
Muted
#edece8linen
#171512black
Muted foreground
#645e4fdimgray
#b0aa9bdarkgray
Accent
#c2bdb2silver
#332e24darkslategray
Accent foreground
#25231dblack
#cec8basilver
Destructive
#d70f0fred
#f24040tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#afaeacdarkgray
#afaeacdarkgray

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.81:1AAA
Primary button8.24:1AAA
Secondary button7.48:1AAA
Muted text5.44:1AA
Accent8.42:1AAA
Destructive5.31:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.87:1AAA
Primary button8.24:1AAA
Secondary button8.41:1AAA
Muted text7.84:1AAA
Accent8.07:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.02 92.895);
  --muted: oklch(0.942 0.005 87.449);
  --muted-foreground: oklch(0.482 0.025 87.57);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.02 92.895);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.017 93.83);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.751 0.003 87.444);
  --primary-foreground: oklch(0.194 0.001 87.452);
  --secondary: oklch(0.872 0.005 87.451);
  --secondary-foreground: oklch(0.357 0.009 87.528);
  --accent: oklch(0.801 0.017 87.516);
  --accent-foreground: oklch(0.256 0.011 87.566);
  --destructive: oklch(0.555 0.222 28.68);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.003 87.444);
  --chart-1: oklch(0.751 0.003 87.444);
  --chart-2: oklch(0.872 0.005 87.451);
  --chart-3: oklch(0.801 0.017 87.516);
  --chart-4: oklch(0.895 0.004 87.445);
  --chart-5: oklch(0.754 0.009 87.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.011 88.912);
  --foreground: oklch(0.986 0.002 87.43);
  --muted: oklch(0.198 0.008 87.561);
  --muted-foreground: oklch(0.739 0.022 87.544);
  --popover: oklch(0.153 0.011 88.912);
  --popover-foreground: oklch(0.986 0.002 87.43);
  --card: oklch(0.167 0.013 87.754);
  --card-foreground: oklch(0.993 0.001 87.425);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.751 0.003 87.444);
  --primary-foreground: oklch(0.194 0.001 87.452);
  --secondary: oklch(0.207 0.005 87.52);
  --secondary-foreground: oklch(0.765 0.012 87.492);
  --accent: oklch(0.304 0.019 87.559);
  --accent-foreground: oklch(0.835 0.02 87.526);
  --destructive: oklch(0.638 0.214 25.703);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.003 87.444);
  --chart-1: oklch(0.751 0.003 87.444);
  --chart-2: oklch(0.207 0.005 87.52);
  --chart-3: oklch(0.304 0.019 87.559);
  --chart-4: oklch(0.242 0.006 87.527);
  --chart-5: oklch(0.754 0.009 87.476);
}