Judgment for shadcn/ui

Judgment is a shadcn/ui theme built around a muted light blue primary color (#dfe2e7) with neutral gray accents (#e3e3e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#dfe2e7) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04070bblack
Foreground
#02070eblack
#f5f7fawhitesmoke
Card
#ffffffwhite
#04070bblack
Card foreground
#02070eblack
#f5f7fawhitesmoke
Popover
#ffffffwhite
#04070bblack
Popover foreground
#02070eblack
#f5f7fawhitesmoke
Primary
#dfe2e7gainsboro
#dfe2e7gainsboro
Primary foreground
#404854darkslategray
#404854darkslategray
Secondary
#e3e3e3gainsboro
#23262adarkslategray
Secondary foreground
#494a4bdarkslategray
#babec5silver
Muted
#d7dbe0gainsboro
#1f2328darkslategray
Muted foreground
#3b434fdarkslategray
#b0b8c4silver
Accent
#e3e3e3gainsboro
#23262adarkslategray
Accent foreground
#494a4bdarkslategray
#babec5silver
Destructive
#9d3801saddlebrown
#fe5a01orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dfe2e7gainsboro
#dfe2e7gainsboro

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button7.13:1AAA
Secondary button6.91:1AA
Muted text7.16:1AAA
Accent6.91:1AA
Destructive7.00:1AAA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button7.13:1AAA
Secondary button8.17:1AAA
Muted text7.89:1AAA
Accent8.17:1AAA
Destructive6.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.022 245.646);
  --muted: oklch(0.889 0.008 256.687);
  --muted-foreground: oklch(0.38 0.024 256.806);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.022 245.646);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.022 245.646);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.913 0.007 256.681);
  --primary-foreground: oklch(0.4 0.022 256.795);
  --secondary: oklch(0.915 0.001 256.654);
  --secondary-foreground: oklch(0.408 0.002 256.668);
  --accent: oklch(0.915 0.001 256.654);
  --accent-foreground: oklch(0.408 0.002 256.668);
  --destructive: oklch(0.479 0.146 41.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.913 0.007 256.681);
  --chart-1: oklch(0.913 0.007 256.681);
  --chart-2: oklch(0.915 0.001 256.654);
  --chart-3: oklch(0.915 0.001 256.654);
  --chart-4: oklch(0.939 0 256.653);
  --chart-5: oklch(0.912 0.008 256.687);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.012 250.241);
  --foreground: oklch(0.975 0.005 256.671);
  --muted: oklch(0.255 0.011 256.776);
  --muted-foreground: oklch(0.781 0.02 256.737);
  --popover: oklch(0.127 0.012 250.241);
  --popover-foreground: oklch(0.975 0.005 256.671);
  --card: oklch(0.127 0.012 250.241);
  --card-foreground: oklch(0.975 0.005 256.671);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.913 0.007 256.681);
  --primary-foreground: oklch(0.4 0.022 256.795);
  --secondary: oklch(0.266 0.009 256.755);
  --secondary-foreground: oklch(0.801 0.011 256.703);
  --accent: oklch(0.266 0.009 256.755);
  --accent-foreground: oklch(0.801 0.011 256.703);
  --destructive: oklch(0.679 0.213 40.026);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.913 0.007 256.681);
  --chart-1: oklch(0.913 0.007 256.681);
  --chart-2: oklch(0.266 0.009 256.755);
  --chart-3: oklch(0.266 0.009 256.755);
  --chart-4: oklch(0.297 0.01 256.758);
  --chart-5: oklch(0.912 0.008 256.687);
}