Verdict for shadcn/ui

Verdict is a shadcn/ui theme built around a near-white primary color (#fcfdfc) with near-white accents (#fcfdfc). The light mode uses a neutral background (#fafcf8). Dark mode keeps the near-white primary (#fcfdfc) on a green-tinted background (#0a0e06).

Color palette

TokenLightDark
Background
#fafcf8snow
#0a0e06black
Foreground
#0c1405black
#f7faf4whitesmoke
Card
#f7faf4whitesmoke
#0c1208black
Card foreground
#091004black
#fafcf8snow
Popover
#fafcf8snow
#0a0e06black
Popover foreground
#0c1405black
#f7faf4whitesmoke
Primary
#fcfdfcwhite
#fcfdfcwhite
Primary foreground
#2e3f22darkslategray
#2e3f22darkslategray
Secondary
#fdfdfcwhite
#fdfdfcwhite
Secondary foreground
#3d3f22darkslategray
#3d3f22darkslategray
Muted
#eeefe1beige
#1c1e10black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#fcfdfcwhite
#fcfdfcwhite
Accent foreground
#223f24darkslategray
#223f24darkslategray
Destructive
#c21300firebrick
#ff2c14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfdfcwhite
#fcfdfcwhite

Contrast

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

Light mode
Text on background18.17:1AAA
Text on card18.36:1AAA
Primary button11.14:1AAA
Secondary button10.69:1AAA
Muted text8.89:1AAA
Accent11.42:1AAA
Destructive6.20:1AA
Dark mode
Text on background18.46:1AAA
Text on card18.40:1AAA
Primary button11.14:1AAA
Secondary button10.69:1AAA
Muted text9.20:1AAA
Accent11.42:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 131.772);
  --foreground: oklch(0.178 0.032 132.592);
  --muted: oklch(0.947 0.018 110.594);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.988 0.006 131.772);
  --popover-foreground: oklch(0.178 0.032 132.592);
  --card: oklch(0.982 0.009 131.796);
  --card-foreground: oklch(0.162 0.028 131.489);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.994 0.002 131.743);
  --primary-foreground: oklch(0.344 0.053 133.189);
  --secondary: oklch(0.994 0.002 110.285);
  --secondary-foreground: oklch(0.357 0.046 112.606);
  --accent: oklch(0.993 0.002 148.038);
  --accent-foreground: oklch(0.336 0.058 146.017);
  --destructive: oklch(0.517 0.204 30.489);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.994 0.002 131.743);
  --chart-1: oklch(0.994 0.002 131.743);
  --chart-2: oklch(0.994 0.002 110.285);
  --chart-3: oklch(0.993 0.002 148.038);
  --chart-4: oklch(1.012 0.004 290.172);
  --chart-5: oklch(0.994 0.002 131.744);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.02 131.584);
  --foreground: oklch(0.982 0.008 131.795);
  --muted: oklch(0.228 0.024 112.179);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.157 0.02 131.584);
  --popover-foreground: oklch(0.982 0.008 131.795);
  --card: oklch(0.172 0.023 132.595);
  --card-foreground: oklch(0.988 0.006 131.771);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.994 0.002 131.743);
  --primary-foreground: oklch(0.344 0.053 133.189);
  --secondary: oklch(0.994 0.002 110.285);
  --secondary-foreground: oklch(0.357 0.046 112.606);
  --accent: oklch(0.993 0.002 148.038);
  --accent-foreground: oklch(0.336 0.058 146.017);
  --destructive: oklch(0.643 0.244 30.492);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.994 0.002 131.743);
  --chart-1: oklch(0.994 0.002 131.743);
  --chart-2: oklch(0.994 0.002 110.285);
  --chart-3: oklch(0.993 0.002 148.038);
  --chart-4: oklch(1.012 0.004 290.172);
  --chart-5: oklch(0.994 0.002 131.744);
}