White for shadcn/ui

White is a shadcn/ui theme built around a vivid pink primary color (#a20252) with vivid teal accents (#02a252). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid pink primary (#a20252) on a pink-tinted background (#0f060a).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0f060ablack
Foreground
#10040ablack
#fdfbfcsnow
Card
#fdf7fasnow
#13070dblack
Card foreground
#0c0308black
#ffffffwhite
Popover
#fdf7fasnow
#13070dblack
Popover foreground
#0c0308black
#ffffffwhite
Primary
#a20252brown
#a20252brown
Primary foreground
#ffd7ebmistyrose
#ffd7ebmistyrose
Secondary
#02a252seagreen
#02a252seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4e7e6gainsboro
#181b19black
Muted foreground
#3e4c45darkslategray
#b3c1basilver
Accent
#02a252seagreen
#02a252seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#731c0dmaroon
#e84c30tomato
Destructive foreground
#f7c3balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a20252brown
#a20252brown

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.23:1AAA
Primary button6.09:1AA
Secondary button3.35:1AA Large
Muted text7.26:1AAA
Accent3.35:1AA Large
Destructive7.09:1AAA
Dark mode
Text on background19.43:1AAA
Text on card19.76:1AAA
Primary button6.09:1AA
Secondary button3.35:1AA Large
Muted text9.28:1AAA
Accent3.35:1AA Large
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 345.239);
  --foreground: oklch(0.135 0.027 347.055);
  --muted: oklch(0.926 0.005 165.016);
  --muted-foreground: oklch(0.401 0.021 163.689);
  --popover: oklch(0.981 0.007 345.336);
  --popover-foreground: oklch(0.122 0.024 345.253);
  --card: oklch(0.981 0.007 345.336);
  --card-foreground: oklch(0.122 0.024 345.253);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.46 0.185 1.158);
  --primary-foreground: oklch(0.917 0.051 346.547);
  --secondary: oklch(0.623 0.164 151.888);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.623 0.164 151.888);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.37 0.123 32.358);
  --destructive-foreground: oklch(0.862 0.061 29.891);
  --ring: oklch(0.46 0.185 1.158);
  --chart-1: oklch(0.46 0.185 1.158);
  --chart-2: oklch(0.623 0.164 151.888);
  --chart-3: oklch(0.623 0.164 151.888);
  --chart-4: oklch(0.665 0.176 151.748);
  --chart-5: oklch(0.464 0.188 1.658);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.021 346.766);
  --foreground: oklch(0.991 0.002 345.207);
  --muted: oklch(0.219 0.006 164.354);
  --muted-foreground: oklch(0.798 0.018 164.542);
  --popover: oklch(0.149 0.025 348.333);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.025 348.333);
  --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.46 0.185 1.158);
  --primary-foreground: oklch(0.917 0.051 346.547);
  --secondary: oklch(0.623 0.164 151.888);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.623 0.164 151.888);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.197 32.371);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.185 1.158);
  --chart-1: oklch(0.46 0.185 1.158);
  --chart-2: oklch(0.623 0.164 151.888);
  --chart-3: oklch(0.623 0.164 151.888);
  --chart-4: oklch(0.665 0.176 151.748);
  --chart-5: oklch(0.464 0.188 1.658);
}