Outstanding for shadcn/ui

Outstanding is a shadcn/ui theme built around a vivid purple primary color (#ed40b9) with vivid red accents (#ed4062). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#ed40b9) on a purple-tinted background (#10040c).

Color palette

TokenLightDark
Background
#fefbfdsnow
#10040cblack
Foreground
#000000black
#fdfcfdwhite
Card
#fcf7fbsnow
#140610black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfdsnow
#10040cblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#ed40b9hotpink
#ed40b9hotpink
Primary foreground
#000000black
#000000black
Secondary
#cb40edmediumorchid
#cb40edmediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0dbe1gainsboro
#231e24black
Muted foreground
#645b67dimgray
#a298a4darkgray
Accent
#ed4062indianred
#ed4062indianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6b1c0amaroon
#ec5836tomato
Destructive foreground
#f8bdb0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ed40b9hotpink
#ed40b9hotpink

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card19.90:1AAA
Primary button6.03:1AA
Secondary button3.83:1AA Large
Muted text4.74:1AA
Accent3.80:1AA Large
Destructive7.17:1AAA
Dark mode
Text on background19.59:1AAA
Text on card19.79:1AAA
Primary button6.03:1AA
Secondary button3.83:1AA Large
Muted text5.89:1AA
Accent3.80:1AA Large
Destructive6.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 335.933);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.896 0.011 319.448);
  --muted-foreground: oklch(0.484 0.022 319.456);
  --popover: oklch(0.991 0.003 335.933);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.007 336);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.663 0.238 342.753);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.641 0.259 318.657);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.635 0.209 14.313);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.355 0.116 33.826);
  --destructive-foreground: oklch(0.848 0.071 32.927);
  --ring: oklch(0.663 0.238 342.753);
  --chart-1: oklch(0.663 0.238 342.753);
  --chart-2: oklch(0.641 0.259 318.657);
  --chart-3: oklch(0.635 0.209 14.313);
  --chart-4: oklch(0.66 0.246 318.904);
  --chart-5: oklch(0.666 0.244 342.986);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.029 338.105);
  --foreground: oklch(0.992 0.002 335.904);
  --muted: oklch(0.243 0.015 319.46);
  --muted-foreground: oklch(0.692 0.02 319.452);
  --popover: oklch(0.137 0.029 338.105);
  --popover-foreground: oklch(0.992 0.002 335.904);
  --card: oklch(0.149 0.033 339.019);
  --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.663 0.238 342.753);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.641 0.259 318.657);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.635 0.209 14.313);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.652 0.19 34.13);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.663 0.238 342.753);
  --chart-1: oklch(0.663 0.238 342.753);
  --chart-2: oklch(0.641 0.259 318.657);
  --chart-3: oklch(0.635 0.209 14.313);
  --chart-4: oklch(0.66 0.246 318.904);
  --chart-5: oklch(0.666 0.244 342.986);
}