Scheme for shadcn/ui

Scheme is a shadcn/ui theme built around a vivid light red primary color (#fc9992) with vivid light indigo accents (#9992fc). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the vivid light red primary (#fc9992) on a red-tinted background (#100504).

Color palette

TokenLightDark
Background
#fdf8f7snow
#100504black
Foreground
#0c0403black
#faf5f5whitesmoke
Card
#fdf8f7snow
#100504black
Card foreground
#0c0403black
#faf5f5whitesmoke
Popover
#fdf8f7snow
#100504black
Popover foreground
#0c0403black
#faf5f5whitesmoke
Primary
#fc9992lightsalmon
#fc9992lightsalmon
Primary foreground
#5a0802maroon
#5a0802maroon
Secondary
#92fc99palegreen
#92fc99palegreen
Secondary foreground
#025a08darkgreen
#025a08darkgreen
Muted
#eaf1eawhitesmoke
#0e150fblack
Muted foreground
#3f463fdarkslategray
#b9c0basilver
Accent
#9992fcmediumpurple
#9992fcmediumpurple
Accent foreground
#08025amidnightblue
#08025amidnightblue
Destructive
#e14a05orangered
#e64c05orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fc9992lightsalmon
#fc9992lightsalmon

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button6.86:1AA
Secondary button6.73:1AA
Muted text8.43:1AAA
Accent6.72:1AA
Destructive4.04:1AA Large
Dark mode
Text on background18.59:1AAA
Text on card18.59:1AAA
Primary button6.86:1AA
Secondary button6.73:1AA
Muted text9.96:1AAA
Accent6.72:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 22.278);
  --foreground: oklch(0.121 0.019 26.8);
  --muted: oklch(0.95 0.011 147.43);
  --muted-foreground: oklch(0.385 0.014 147.192);
  --popover: oklch(0.982 0.006 22.278);
  --popover-foreground: oklch(0.121 0.019 26.8);
  --card: oklch(0.982 0.006 22.278);
  --card-foreground: oklch(0.121 0.019 26.8);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.783 0.121 24.562);
  --primary-foreground: oklch(0.299 0.114 30.474);
  --secondary: oklch(0.903 0.167 145.471);
  --secondary-foreground: oklch(0.404 0.133 143.185);
  --accent: oklch(0.71 0.153 284.84);
  --accent-foreground: oklch(0.219 0.14 268.951);
  --destructive: oklch(0.615 0.197 38.595);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.783 0.121 24.562);
  --chart-1: oklch(0.783 0.121 24.562);
  --chart-2: oklch(0.903 0.167 145.471);
  --chart-3: oklch(0.71 0.153 284.84);
  --chart-4: oklch(0.914 0.146 145.793);
  --chart-5: oklch(0.782 0.124 24.661);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.023 26.81);
  --foreground: oklch(0.975 0.004 22.266);
  --muted: oklch(0.187 0.016 146.635);
  --muted-foreground: oklch(0.801 0.011 147.406);
  --popover: oklch(0.135 0.023 26.81);
  --popover-foreground: oklch(0.975 0.004 22.266);
  --card: oklch(0.135 0.023 26.81);
  --card-foreground: oklch(0.975 0.004 22.266);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.783 0.121 24.562);
  --primary-foreground: oklch(0.299 0.114 30.474);
  --secondary: oklch(0.903 0.167 145.471);
  --secondary-foreground: oklch(0.404 0.133 143.185);
  --accent: oklch(0.71 0.153 284.84);
  --accent-foreground: oklch(0.219 0.14 268.951);
  --destructive: oklch(0.625 0.201 38.551);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.783 0.121 24.562);
  --chart-1: oklch(0.783 0.121 24.562);
  --chart-2: oklch(0.903 0.167 145.471);
  --chart-3: oklch(0.71 0.153 284.84);
  --chart-4: oklch(0.914 0.146 145.793);
  --chart-5: oklch(0.782 0.124 24.661);
}