Brush for shadcn/ui

Brush is a shadcn/ui theme built around a violet primary color (#932cdd) with green accents (#76dd2c). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#932cdd) on a violet-tinted background (#08040b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#08040bblack
Foreground
#09020eblack
#ffffffwhite
Card
#faf8fcghostwhite
#0b050fblack
Card foreground
#060109black
#ffffffwhite
Popover
#faf8fcghostwhite
#0b050fblack
Popover foreground
#060109black
#ffffffwhite
Primary
#932cddblueviolet
#932cddblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#76dd2cyellowgreen
#76dd2cyellowgreen
Secondary foreground
#1b3509darkgreen
#1b3509darkgreen
Muted
#e1eed8gainsboro
#1a2711black
Muted foreground
#424540darkslategray
#bcbfbasilver
Accent
#76dd2cyellowgreen
#76dd2cyellowgreen
Accent foreground
#1b3509darkgreen
#1b3509darkgreen
Destructive
#c12915firebrick
#dc2f18crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#932cddblueviolet
#932cddblueviolet

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.54:1AAA
Primary button5.74:1AA
Secondary button7.77:1AAA
Muted text8.08:1AAA
Accent7.77:1AAA
Destructive5.84:1AA
Dark mode
Text on background20.33:1AAA
Text on card20.11:1AAA
Primary button5.74:1AA
Secondary button7.77:1AAA
Muted text8.39:1AAA
Accent7.77:1AAA
Destructive4.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 311.697);
  --foreground: oklch(0.112 0.038 313.723);
  --muted: oklch(0.934 0.033 132.016);
  --muted-foreground: oklch(0.386 0.01 131.932);
  --popover: oklch(0.981 0.007 311.669);
  --popover-foreground: oklch(0.098 0.032 314.416);
  --card: oklch(0.981 0.007 311.669);
  --card-foreground: oklch(0.098 0.032 314.416);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.542 0.246 305.74);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.803 0.223 135.864);
  --secondary-foreground: oklch(0.296 0.075 135.022);
  --accent: oklch(0.803 0.223 135.864);
  --accent-foreground: oklch(0.296 0.075 135.022);
  --destructive: oklch(0.529 0.19 31.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.542 0.246 305.74);
  --chart-1: oklch(0.542 0.246 305.74);
  --chart-2: oklch(0.803 0.223 135.864);
  --chart-3: oklch(0.803 0.223 135.864);
  --chart-4: oklch(0.813 0.215 135.357);
  --chart-5: oklch(0.543 0.252 305.349);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.022 313.1);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.043 133.414);
  --muted-foreground: oklch(0.802 0.008 131.807);
  --popover: oklch(0.133 0.025 311.683);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.025 311.683);
  --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.542 0.246 305.74);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.803 0.223 135.864);
  --secondary-foreground: oklch(0.296 0.075 135.022);
  --accent: oklch(0.803 0.223 135.864);
  --accent-foreground: oklch(0.296 0.075 135.022);
  --destructive: oklch(0.583 0.211 31.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.542 0.246 305.74);
  --chart-1: oklch(0.542 0.246 305.74);
  --chart-2: oklch(0.803 0.223 135.864);
  --chart-3: oklch(0.803 0.223 135.864);
  --chart-4: oklch(0.813 0.215 135.357);
  --chart-5: oklch(0.543 0.252 305.349);
}