Legitimate for shadcn/ui

Legitimate is a shadcn/ui theme built around a neutral gray primary color (#353636) with neutral gray accents (#363535). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#353636) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#ffffffwhite
#010404black
Foreground
#020808black
#fcfdfdwhite
Card
#fcfcfcsnow
#030707black
Card foreground
#010404black
#ffffffwhite
Popover
#ffffffwhite
#010404black
Popover foreground
#020808black
#fcfdfdwhite
Primary
#353636darkslategray
#353636darkslategray
Primary foreground
#cecfcflightgrey
#cecfcflightgrey
Secondary
#363535darkslategray
#363535darkslategray
Secondary foreground
#cfcecelightgrey
#cfcecelightgrey
Muted
#f2e4e3mistyrose
#1c0d0dblack
Muted foreground
#5b4e4ddimgray
#b2a4a4darkgray
Accent
#363535darkslategray
#363535darkslategray
Accent foreground
#cfcecelightgrey
#cfcecelightgrey
Destructive
#932001darkred
#fe3801orangered
Destructive foreground
#ffd3c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#353636darkslategray
#353636darkslategray

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.13:1AAA
Primary button7.75:1AAA
Secondary button7.78:1AAA
Muted text6.40:1AA
Accent7.78:1AAA
Destructive6.26:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.22:1AAA
Primary button7.75:1AAA
Secondary button7.78:1AAA
Muted text7.84:1AAA
Accent7.78:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.015 196.396);
  --muted: oklch(0.929 0.016 18.625);
  --muted-foreground: oklch(0.436 0.018 19.013);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.015 196.396);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.012 196.396);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.332 0.001 198.296);
  --primary-foreground: oklch(0.854 0.001 198.344);
  --secondary: oklch(0.33 0.001 18.43);
  --secondary-foreground: oklch(0.852 0.001 18.381);
  --accent: oklch(0.33 0.001 18.43);
  --accent-foreground: oklch(0.852 0.001 18.381);
  --destructive: oklch(0.435 0.155 34.314);
  --destructive-foreground: oklch(0.902 0.052 35.955);
  --ring: oklch(0.332 0.001 198.296);
  --chart-1: oklch(0.332 0.001 198.296);
  --chart-2: oklch(0.33 0.001 18.43);
  --chart-3: oklch(0.33 0.001 18.43);
  --chart-4: oklch(0.36 0.002 18.432);
  --chart-5: oklch(0.335 0.006 198.108);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 196.897);
  --foreground: oklch(0.994 0.002 198.336);
  --muted: oklch(0.181 0.025 20.861);
  --muted-foreground: oklch(0.731 0.015 18.69);
  --popover: oklch(0.098 0.009 196.897);
  --popover-foreground: oklch(0.994 0.002 198.336);
  --card: oklch(0.123 0.011 196.897);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.332 0.001 198.296);
  --primary-foreground: oklch(0.854 0.001 198.344);
  --secondary: oklch(0.33 0.001 18.43);
  --secondary-foreground: oklch(0.852 0.001 18.381);
  --accent: oklch(0.33 0.001 18.43);
  --accent-foreground: oklch(0.852 0.001 18.381);
  --destructive: oklch(0.648 0.237 33.261);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.332 0.001 198.296);
  --chart-1: oklch(0.332 0.001 198.296);
  --chart-2: oklch(0.33 0.001 18.43);
  --chart-3: oklch(0.33 0.001 18.43);
  --chart-4: oklch(0.36 0.002 18.432);
  --chart-5: oklch(0.335 0.006 198.108);
}