Protest for shadcn/ui

Protest is a shadcn/ui theme built around a vivid deep violet primary color (#3f0e67) with muted light violet accents (#c3b7cc). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid deep violet primary (#3f0e67) on a violet-tinted background (#08050b).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#08050bblack
Foreground
#0d0613black
#fcfcfdwhite
Card
#fdfbfdsnow
#08050bblack
Card foreground
#0d0613black
#fcfcfdwhite
Popover
#fdfbfdsnow
#08050bblack
Popover foreground
#0d0613black
#fcfcfdwhite
Primary
#3f0e67indigo
#3f0e67indigo
Primary foreground
#d7b3f5plum
#d7b3f5plum
Secondary
#dcd7e0gainsboro
#1a181bblack
Secondary foreground
#433a4adarkslategray
#b3afb6darkgray
Muted
#f2f0f4whitesmoke
#0d0b0fblack
Muted foreground
#454346darkslategray
#bab9bcsilver
Accent
#c3b7ccsilver
#2e2833darkslategray
Accent foreground
#292230darkslategray
#c8c0cesilver
Destructive
#5e1408maroon
#eb3114orangered
Destructive foreground
#f7ada1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f0e67indigo
#3f0e67indigo

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button7.91:1AAA
Secondary button7.63:1AAA
Muted text8.67:1AAA
Accent8.05:1AAA
Destructive7.26:1AAA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button7.91:1AAA
Secondary button8.16:1AAA
Muted text10.04:1AAA
Accent8.05:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 310.41);
  --foreground: oklch(0.143 0.031 309.134);
  --muted: oklch(0.959 0.006 310.384);
  --muted-foreground: oklch(0.387 0.005 310.317);
  --popover: oklch(0.991 0.003 310.41);
  --popover-foreground: oklch(0.143 0.031 309.134);
  --card: oklch(0.991 0.003 310.41);
  --card-foreground: oklch(0.143 0.031 309.134);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.305 0.141 303.427);
  --primary-foreground: oklch(0.82 0.098 309.314);
  --secondary: oklch(0.885 0.013 310.305);
  --secondary-foreground: oklch(0.365 0.029 309.695);
  --accent: oklch(0.797 0.032 310.07);
  --accent-foreground: oklch(0.266 0.027 309.475);
  --destructive: oklch(0.319 0.108 31.705);
  --destructive-foreground: oklch(0.814 0.09 28.888);
  --ring: oklch(0.305 0.141 303.427);
  --chart-1: oklch(0.305 0.141 303.427);
  --chart-2: oklch(0.885 0.013 310.305);
  --chart-3: oklch(0.797 0.032 310.07);
  --chart-4: oklch(0.91 0.01 310.337);
  --chart-5: oklch(0.306 0.145 302.999);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.017 311.527);
  --foreground: oklch(0.992 0.001 310.43);
  --muted: oklch(0.153 0.009 309.909);
  --muted-foreground: oklch(0.787 0.004 310.388);
  --popover: oklch(0.123 0.017 311.527);
  --popover-foreground: oklch(0.992 0.001 310.43);
  --card: oklch(0.123 0.017 311.527);
  --card-foreground: oklch(0.992 0.001 310.43);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.305 0.141 303.427);
  --primary-foreground: oklch(0.82 0.098 309.314);
  --secondary: oklch(0.213 0.005 310.203);
  --secondary-foreground: oklch(0.759 0.012 310.294);
  --accent: oklch(0.29 0.021 309.751);
  --accent-foreground: oklch(0.818 0.02 310.207);
  --destructive: oklch(0.609 0.223 31.48);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.305 0.141 303.427);
  --chart-1: oklch(0.305 0.141 303.427);
  --chart-2: oklch(0.213 0.005 310.203);
  --chart-3: oklch(0.29 0.021 309.751);
  --chart-4: oklch(0.245 0.007 310.181);
  --chart-5: oklch(0.306 0.145 302.999);
}