Proud for shadcn/ui

Proud is a shadcn/ui theme built around a vivid deep blue primary color (#010619) with vivid deep violet accents (#070119). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid deep blue primary (#010619) on a neutral background (#030408).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030408black
Foreground
#020408black
#fcfcfdwhite
Card
#f7f8fdghostwhite
#04060bblack
Card foreground
#010204black
#ffffffwhite
Popover
#f7f8fdghostwhite
#04060bblack
Popover foreground
#010204black
#ffffffwhite
Primary
#010619black
#010619black
Primary foreground
#b4c5fdlightblue
#b4c5fdlightblue
Secondary
#011219black
#011219black
Secondary foreground
#05a6e1deepskyblue
#05a6e1deepskyblue
Muted
#d2e4eagainsboro
#15272ddarkslategray
Muted foreground
#5d5f5fdimgray
#a0a1a2darkgray
Accent
#070119black
#070119black
Accent foreground
#c8b4fdthistle
#c8b4fdthistle
Destructive
#77180dmaroon
#e84330tomato
Destructive foreground
#f8c4bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010619black
#010619black

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.61:1AAA
Primary button11.85:1AAA
Secondary button6.83:1AA
Muted text4.88:1AA
Accent11.12:1AAA
Destructive7.08:1AAA
Dark mode
Text on background20.02:1AAA
Text on card20.29:1AAA
Primary button11.85:1AAA
Secondary button6.83:1AA
Muted text5.97:1AA
Accent11.12:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 272.625);
  --foreground: oklch(0.104 0.015 265.869);
  --muted: oklch(0.906 0.021 221.533);
  --muted-foreground: oklch(0.484 0.002 221.339);
  --popover: oklch(0.98 0.006 272.593);
  --popover-foreground: oklch(0.083 0.012 265.869);
  --card: oklch(0.98 0.006 272.593);
  --card-foreground: oklch(0.083 0.012 265.869);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.129 0.046 259.406);
  --primary-foreground: oklch(0.831 0.082 271.398);
  --secondary: oklch(0.171 0.03 221.505);
  --secondary-foreground: oklch(0.683 0.14 232.934);
  --accent: oklch(0.116 0.06 293.381);
  --accent-foreground: oklch(0.813 0.104 296.258);
  --destructive: oklch(0.374 0.132 30.413);
  --destructive-foreground: oklch(0.866 0.06 25.701);
  --ring: oklch(0.129 0.046 259.406);
  --chart-1: oklch(0.129 0.046 259.406);
  --chart-2: oklch(0.171 0.03 221.505);
  --chart-3: oklch(0.116 0.06 293.381);
  --chart-4: oklch(0.217 0.04 225.541);
  --chart-5: oklch(0.128 0.047 258.569);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.014 266.517);
  --foreground: oklch(0.991 0.002 272.637);
  --muted: oklch(0.26 0.027 223.131);
  --muted-foreground: oklch(0.708 0.002 221.326);
  --popover: oklch(0.12 0.016 266.623);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.016 266.623);
  --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.129 0.046 259.406);
  --primary-foreground: oklch(0.831 0.082 271.398);
  --secondary: oklch(0.171 0.03 221.505);
  --secondary-foreground: oklch(0.683 0.14 232.934);
  --accent: oklch(0.116 0.06 293.381);
  --accent-foreground: oklch(0.813 0.104 296.258);
  --destructive: oklch(0.622 0.205 30.133);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.129 0.046 259.406);
  --chart-1: oklch(0.129 0.046 259.406);
  --chart-2: oklch(0.171 0.03 221.505);
  --chart-3: oklch(0.116 0.06 293.381);
  --chart-4: oklch(0.217 0.04 225.541);
  --chart-5: oklch(0.128 0.047 258.569);
}