Standard for shadcn/ui

Standard is a shadcn/ui theme built around a vivid deep violet primary color (#150123) with vivid deep teal accents (#012315). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid deep violet primary (#150123) on a violet-tinted background (#0b070e).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0b070eblack
Foreground
#060208black
#faf8fcghostwhite
Card
#fbf6fdghostwhite
#0e0811black
Card foreground
#030104black
#fdfcfdwhite
Popover
#fdfbfewhite
#0b070eblack
Popover foreground
#060208black
#faf8fcghostwhite
Primary
#150123black
#150123black
Primary foreground
#e4befethistle
#e4befethistle
Secondary
#231501black
#231501black
Secondary foreground
#ec8f04darkorange
#ec8f04darkorange
Muted
#f1eeealinen
#15130eblack
Muted foreground
#4a4640darkslategray
#bfbbb5silver
Accent
#012315black
#012315black
Accent foreground
#04ec8fmediumspringgreen
#04ec8fmediumspringgreen
Destructive
#6f2801maroon
#fd6412orangered
Destructive foreground
#fec4a4navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#150123black
#150123black

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.53:1AAA
Primary button12.36:1AAA
Secondary button7.18:1AAA
Muted text8.08:1AAA
Accent10.68:1AAA
Destructive6.90:1AA
Dark mode
Text on background18.97:1AAA
Text on card19.32:1AAA
Primary button12.36:1AAA
Secondary button7.18:1AAA
Muted text9.73:1AAA
Accent10.68:1AAA
Destructive6.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 312.319);
  --foreground: oklch(0.104 0.022 314.167);
  --muted: oklch(0.95 0.007 78.291);
  --muted-foreground: oklch(0.395 0.011 78.198);
  --popover: oklch(0.99 0.005 312.319);
  --popover-foreground: oklch(0.104 0.022 314.167);
  --card: oklch(0.979 0.01 312.279);
  --card-foreground: oklch(0.082 0.018 314.167);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.154 0.075 309.316);
  --primary-foreground: oklch(0.855 0.096 311.516);
  --secondary: oklch(0.21 0.043 77.234);
  --secondary-foreground: oklch(0.731 0.163 65.378);
  --accent: oklch(0.227 0.049 162.494);
  --accent-foreground: oklch(0.83 0.2 156.354);
  --destructive: oklch(0.377 0.111 42.911);
  --destructive-foreground: oklch(0.864 0.079 49.578);
  --ring: oklch(0.154 0.075 309.316);
  --chart-1: oklch(0.154 0.075 309.316);
  --chart-2: oklch(0.21 0.043 77.234);
  --chart-3: oklch(0.227 0.049 162.494);
  --chart-4: oklch(0.256 0.053 73.678);
  --chart-5: oklch(0.153 0.078 309.261);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.019 312.299);
  --foreground: oklch(0.982 0.005 312.32);
  --muted: oklch(0.187 0.01 78.023);
  --muted-foreground: oklch(0.794 0.009 78.273);
  --popover: oklch(0.137 0.019 312.299);
  --popover-foreground: oklch(0.982 0.005 312.32);
  --card: oklch(0.148 0.022 311.463);
  --card-foreground: oklch(0.991 0.003 312.339);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.154 0.075 309.316);
  --primary-foreground: oklch(0.855 0.096 311.516);
  --secondary: oklch(0.21 0.043 77.234);
  --secondary-foreground: oklch(0.731 0.163 65.378);
  --accent: oklch(0.227 0.049 162.494);
  --accent-foreground: oklch(0.83 0.2 156.354);
  --destructive: oklch(0.69 0.202 42.133);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.154 0.075 309.316);
  --chart-1: oklch(0.154 0.075 309.316);
  --chart-2: oklch(0.21 0.043 77.234);
  --chart-3: oklch(0.227 0.049 162.494);
  --chart-4: oklch(0.256 0.053 73.678);
  --chart-5: oklch(0.153 0.078 309.261);
}