Legitimate for shadcn/ui

Legitimate is a shadcn/ui theme built around a near-black primary color (#030302) with muted light yellow accents (#d3cfc5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-black primary (#030302) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#161103black
#ffffffwhite
Card
#fdfbf7snow
#030303black
Card foreground
#120e02black
#ffffffwhite
Popover
#fefdfbsnow
#000000black
Popover foreground
#161103black
#ffffffwhite
Primary
#030302black
#030302black
Primary foreground
#a7a190darkgray
#a7a190darkgray
Secondary
#dddcdagainsboro
#141414black
Secondary foreground
#46443fdarkslategray
#adadaddarkgray
Muted
#efeadcantiquewhite
#231010black
Muted foreground
#635f54dimgray
#ab9c9cdarkgray
Accent
#d3cfc5lightgrey
#262222black
Accent foreground
#3a362cdarkslategray
#c1b9b9silver
Destructive
#d05411chocolate
#ef7c3ecoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030302black
#030302black

Contrast

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

Light mode
Text on background18.54:1AAA
Text on card18.70:1AAA
Primary button8.01:1AAA
Secondary button7.10:1AAA
Muted text5.29:1AA
Accent7.74:1AAA
Destructive4.25:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.01:1AAA
Secondary button8.18:1AAA
Muted text6.90:1AA
Accent8.21:1AAA
Destructive7.62:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 90.146);
  --foreground: oklch(0.181 0.029 91.884);
  --muted: oklch(0.937 0.019 90.262);
  --muted-foreground: oklch(0.487 0.017 90.349);
  --popover: oklch(0.995 0.003 90.146);
  --popover-foreground: oklch(0.181 0.029 91.884);
  --card: oklch(0.989 0.007 90.171);
  --card-foreground: oklch(0.164 0.026 93.343);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.093 0.002 91.36);
  --primary-foreground: oklch(0.71 0.026 90.351);
  --secondary: oklch(0.895 0.004 90.152);
  --secondary-foreground: oklch(0.386 0.008 90.273);
  --accent: oklch(0.855 0.014 90.238);
  --accent-foreground: oklch(0.334 0.017 90.406);
  --destructive: oklch(0.599 0.171 42.787);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.093 0.002 91.36);
  --chart-1: oklch(0.093 0.002 91.36);
  --chart-2: oklch(0.895 0.004 90.152);
  --chart-3: oklch(0.855 0.014 90.238);
  --chart-4: oklch(0.918 0.003 90.145);
  --chart-5: oklch(0.094 0.003 91.656);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.031 20.159);
  --muted-foreground: oklch(0.705 0.017 17.57);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.093 0.002 91.36);
  --primary-foreground: oklch(0.71 0.026 90.351);
  --secondary: oklch(0.193 0 164.055);
  --secondary-foreground: oklch(0.749 0 158.199);
  --accent: oklch(0.255 0.007 17.587);
  --accent-foreground: oklch(0.791 0.009 17.347);
  --destructive: oklch(0.707 0.161 46.542);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.093 0.002 91.36);
  --chart-1: oklch(0.093 0.002 91.36);
  --chart-2: oklch(0.193 0 164.055);
  --chart-3: oklch(0.255 0.007 17.587);
  --chart-4: oklch(0.227 0 164.055);
  --chart-5: oklch(0.094 0.003 91.656);
}