Advocacy for shadcn/ui

Advocacy is a shadcn/ui theme built around a vivid light purple primary color (#f391e1) with vivid light green accents (#91f3a3). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid light purple primary (#f391e1) on a neutral background (#080207).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#080207black
Foreground
#040104black
#ffffffwhite
Card
#fcf8fbsnow
#080207black
Card foreground
#040104black
#ffffffwhite
Popover
#fcf8fbsnow
#080207black
Popover foreground
#040104black
#ffffffwhite
Primary
#f391e1violet
#f391e1violet
Primary foreground
#49083dindigo
#49083dindigo
Secondary
#91f3a3palegreen
#91f3a3palegreen
Secondary foreground
#084914darkgreen
#084914darkgreen
Muted
#e7eee9lavender
#111812black
Muted foreground
#585a59dimgray
#a5a7a5darkgray
Accent
#91f3a3palegreen
#91f3a3palegreen
Accent foreground
#084914darkgreen
#084914darkgreen
Destructive
#db2c00orangered
#e62e00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f391e1violet
#f391e1violet

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button7.16:1AAA
Secondary button7.86:1AAA
Muted text5.88:1AA
Accent7.86:1AAA
Destructive4.79:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.16:1AAA
Secondary button7.86:1AAA
Muted text7.46:1AAA
Accent7.86:1AAA
Destructive4.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 331.494);
  --foreground: oklch(0.084 0.024 332.654);
  --muted: oklch(0.942 0.01 151.256);
  --muted-foreground: oklch(0.466 0.003 151.308);
  --popover: oklch(0.983 0.006 331.494);
  --popover-foreground: oklch(0.084 0.024 332.654);
  --card: oklch(0.983 0.006 331.494);
  --card-foreground: oklch(0.084 0.024 332.654);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.784 0.153 333.97);
  --primary-foreground: oklch(0.284 0.113 337.101);
  --secondary: oklch(0.883 0.144 148.708);
  --secondary-foreground: oklch(0.356 0.104 145.336);
  --accent: oklch(0.883 0.144 148.708);
  --accent-foreground: oklch(0.356 0.104 145.336);
  --destructive: oklch(0.578 0.214 32.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.784 0.153 333.97);
  --chart-1: oklch(0.784 0.153 333.97);
  --chart-2: oklch(0.883 0.144 148.708);
  --chart-3: oklch(0.883 0.144 148.708);
  --chart-4: oklch(0.896 0.127 149.118);
  --chart-5: oklch(0.783 0.159 334.058);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.021 332.291);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.014 150.31);
  --muted-foreground: oklch(0.725 0.003 151.35);
  --popover: oklch(0.109 0.021 332.291);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.021 332.291);
  --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.784 0.153 333.97);
  --primary-foreground: oklch(0.284 0.113 337.101);
  --secondary: oklch(0.883 0.144 148.708);
  --secondary-foreground: oklch(0.356 0.104 145.336);
  --accent: oklch(0.883 0.144 148.708);
  --accent-foreground: oklch(0.356 0.104 145.336);
  --destructive: oklch(0.598 0.222 32.767);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.784 0.153 333.97);
  --chart-1: oklch(0.784 0.153 333.97);
  --chart-2: oklch(0.883 0.144 148.708);
  --chart-3: oklch(0.883 0.144 148.708);
  --chart-4: oklch(0.896 0.127 149.118);
  --chart-5: oklch(0.783 0.159 334.058);
}