Standard for shadcn/ui

Standard is a shadcn/ui theme built around a near-black primary color (#080206) with near-black accents (#080203). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#080206) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0508black
Foreground
#15040fblack
#faf5f8whitesmoke
Card
#fcfcfcsnow
#0d070bblack
Card foreground
#11040cblack
#fcf8fasnow
Popover
#fcfcfcsnow
#0d070bblack
Popover foreground
#11040cblack
#fcf8fasnow
Primary
#080206black
#080206black
Primary foreground
#d864aepalevioletred
#d864aepalevioletred
Secondary
#070208black
#070208black
Secondary foreground
#c964d8orchid
#c964d8orchid
Muted
#ede2eelavender
#1c111dblack
Muted foreground
#6b5a6ddimgray
#a392a5darkgray
Accent
#080203black
#080203black
Accent foreground
#edb6bdlightpink
#edb6bdlightpink
Destructive
#981a01darkred
#fe4925orangered
Destructive foreground
#ffd5ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080206black
#080206black

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.63:1AAA
Primary button6.21:1AA
Secondary button6.16:1AA
Muted text5.03:1AA
Accent11.78:1AAA
Destructive6.28:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.93:1AAA
Primary button6.21:1AA
Secondary button6.16:1AA
Muted text6.30:1AA
Accent11.78:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.038 342.455);
  --muted: oklch(0.924 0.021 321.655);
  --muted-foreground: oklch(0.49 0.038 321.8);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.135 0.034 341.238);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.135 0.034 341.238);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.106 0.023 339.011);
  --primary-foreground: oklch(0.667 0.168 343.781);
  --secondary: oklch(0.106 0.026 323.529);
  --secondary-foreground: oklch(0.666 0.192 322.142);
  --accent: oklch(0.104 0.02 8.828);
  --accent-foreground: oklch(0.827 0.065 9.649);
  --destructive: oklch(0.44 0.164 32.451);
  --destructive-foreground: oklch(0.906 0.049 31.246);
  --ring: oklch(0.106 0.023 339.011);
  --chart-1: oklch(0.106 0.023 339.011);
  --chart-2: oklch(0.106 0.026 323.529);
  --chart-3: oklch(0.104 0.02 8.828);
  --chart-4: oklch(0.148 0.04 322.463);
  --chart-5: oklch(0.106 0.025 339.027);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.013 338.858);
  --foreground: oklch(0.974 0.007 338.883);
  --muted: oklch(0.197 0.03 321.977);
  --muted-foreground: oklch(0.68 0.035 321.733);
  --popover: oklch(0.14 0.014 339.996);
  --popover-foreground: oklch(0.983 0.005 338.827);
  --card: oklch(0.14 0.014 339.996);
  --card-foreground: oklch(0.983 0.005 338.827);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.106 0.023 339.011);
  --primary-foreground: oklch(0.667 0.168 343.781);
  --secondary: oklch(0.106 0.026 323.529);
  --secondary-foreground: oklch(0.666 0.192 322.142);
  --accent: oklch(0.104 0.02 8.828);
  --accent-foreground: oklch(0.827 0.065 9.649);
  --destructive: oklch(0.663 0.222 33.016);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.106 0.023 339.011);
  --chart-1: oklch(0.106 0.023 339.011);
  --chart-2: oklch(0.106 0.026 323.529);
  --chart-3: oklch(0.104 0.02 8.828);
  --chart-4: oklch(0.148 0.04 322.463);
  --chart-5: oklch(0.106 0.025 339.027);
}