Standard for shadcn/ui

Standard is a shadcn/ui theme built around a purple primary color (#d558be) with pink accents (#d5587f). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#d558be) on a purple-tinted background (#0a0509).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0509black
Foreground
#040104black
#fcf8fbsnow
Card
#ffffffwhite
#0a0509black
Card foreground
#040104black
#fcf8fbsnow
Popover
#ffffffwhite
#0a0509black
Popover foreground
#040104black
#fcf8fbsnow
Primary
#d558beorchid
#d558beorchid
Primary foreground
#000000black
#000000black
Secondary
#ad58d5mediumorchid
#ad58d5mediumorchid
Secondary foreground
#000000black
#000000black
Muted
#ebe8edlavender
#151217black
Muted foreground
#4e4054darkslategray
#b9abbfsilver
Accent
#d5587fpalevioletred
#d5587fpalevioletred
Accent foreground
#000000black
#000000black
Destructive
#981701darkred
#fe300borangered
Destructive foreground
#ffd4ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d558beorchid
#d558beorchid

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button5.96:1AA
Secondary button5.13:1AA
Muted text7.93:1AAA
Accent5.53:1AA
Destructive6.30:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button5.96:1AA
Secondary button5.13:1AA
Muted text8.51:1AAA
Accent5.53:1AA
Destructive3.73: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.084 0.024 332.635);
  --muted: oklch(0.936 0.007 315.397);
  --muted-foreground: oklch(0.393 0.039 315.009);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.024 332.635);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.024 332.635);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.654 0.196 335.348);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.615 0.195 313.666);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.631 0.162 3.171);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.438 0.165 31.958);
  --destructive-foreground: oklch(0.904 0.05 29.762);
  --ring: oklch(0.654 0.196 335.348);
  --chart-1: oklch(0.654 0.196 335.348);
  --chart-2: oklch(0.615 0.195 313.666);
  --chart-3: oklch(0.631 0.162 3.171);
  --chart-4: oklch(0.64 0.182 313.949);
  --chart-5: oklch(0.656 0.204 335.517);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 332.009);
  --foreground: oklch(0.983 0.006 331.491);
  --muted: oklch(0.189 0.01 315.201);
  --muted-foreground: oklch(0.759 0.033 315.244);
  --popover: oklch(0.127 0.016 332.009);
  --popover-foreground: oklch(0.983 0.006 331.491);
  --card: oklch(0.127 0.016 332.009);
  --card-foreground: oklch(0.983 0.006 331.491);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.654 0.196 335.348);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.615 0.195 313.666);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.631 0.162 3.171);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.642 0.241 31.619);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.196 335.348);
  --chart-1: oklch(0.654 0.196 335.348);
  --chart-2: oklch(0.615 0.195 313.666);
  --chart-3: oklch(0.631 0.162 3.171);
  --chart-4: oklch(0.64 0.182 313.949);
  --chart-5: oklch(0.656 0.204 335.517);
}