Legitimate for shadcn/ui

Legitimate is a shadcn/ui theme built around a near-white primary color (#ededed) with near-white accents (#ededed). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#ededed) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0404black
Foreground
#110404black
#f9f6f6whitesmoke
Card
#fefbfbsnow
#0b0404black
Card foreground
#110404black
#f9f6f6whitesmoke
Popover
#fefbfbsnow
#0b0404black
Popover foreground
#110404black
#f9f6f6whitesmoke
Primary
#edededwhitesmoke
#edededwhitesmoke
Primary foreground
#545454dimgray
#545454dimgray
Secondary
#edededwhitesmoke
#edededwhitesmoke
Secondary foreground
#545454dimgray
#545454dimgray
Muted
#edd9d9gainsboro
#261212black
Muted foreground
#554444darkslategray
#bbaaaadarkgray
Accent
#edededwhitesmoke
#edededwhitesmoke
Accent foreground
#545454dimgray
#545454dimgray
Destructive
#7b2c04saddlebrown
#f65f13orangered
Destructive foreground
#fccdb5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#edededwhitesmoke
#edededwhitesmoke

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button6.47:1AA
Secondary button6.47:1AA
Muted text6.76:1AA
Accent6.47:1AA
Destructive6.59:1AA
Dark mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button6.47:1AA
Secondary button6.47:1AA
Muted text8.01:1AAA
Accent6.47:1AA
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.212);
  --foreground: oklch(0.13 0.028 21.716);
  --muted: oklch(0.902 0.022 17.563);
  --muted-foreground: oklch(0.405 0.023 18.155);
  --popover: oklch(0.99 0.003 17.212);
  --popover-foreground: oklch(0.13 0.028 21.716);
  --card: oklch(0.99 0.003 17.212);
  --card-foreground: oklch(0.13 0.028 21.716);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.947 0 180);
  --primary-foreground: oklch(0.446 0 180);
  --secondary: oklch(0.947 0 180);
  --secondary-foreground: oklch(0.446 0 180);
  --accent: oklch(0.947 0 180);
  --accent-foreground: oklch(0.446 0 180);
  --destructive: oklch(0.404 0.119 41.663);
  --destructive-foreground: oklch(0.883 0.063 47.99);
  --ring: oklch(0.947 0 180);
  --chart-1: oklch(0.947 0 180);
  --chart-2: oklch(0.947 0 180);
  --chart-3: oklch(0.947 0 180);
  --chart-4: oklch(0.97 0 180);
  --chart-5: oklch(0.946 0.001 17.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.016 19.638);
  --foreground: oklch(0.975 0.003 17.202);
  --muted: oklch(0.211 0.033 20.177);
  --muted-foreground: oklch(0.753 0.02 17.594);
  --popover: oklch(0.122 0.016 19.638);
  --popover-foreground: oklch(0.975 0.003 17.202);
  --card: oklch(0.122 0.016 19.638);
  --card-foreground: oklch(0.975 0.003 17.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.947 0 180);
  --primary-foreground: oklch(0.446 0 180);
  --secondary: oklch(0.947 0 180);
  --secondary-foreground: oklch(0.446 0 180);
  --accent: oklch(0.947 0 180);
  --accent-foreground: oklch(0.446 0 180);
  --destructive: oklch(0.674 0.2 41.164);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.947 0 180);
  --chart-1: oklch(0.947 0 180);
  --chart-2: oklch(0.947 0 180);
  --chart-3: oklch(0.947 0 180);
  --chart-4: oklch(0.97 0 180);
  --chart-5: oklch(0.946 0.001 17.178);
}