Brand for shadcn/ui

Brand is a shadcn/ui theme built around a light violet primary color (#ebddf8) with light green accents (#eaf8dd). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#ebddf8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#faf6fdghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#faf6fdghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#ebddf8lavender
#ebddf8lavender
Primary foreground
#531c87indigo
#531c87indigo
Secondary
#eaf8ddbeige
#eaf8ddbeige
Secondary foreground
#1e330adarkgreen
#1e330adarkgreen
Muted
#f2f4f1whitesmoke
#0d0e0bblack
Muted foreground
#66705cdimgray
#99a38fdarkseagreen
Accent
#eaf8ddbeige
#eaf8ddbeige
Accent foreground
#1e330adarkgreen
#1e330adarkgreen
Destructive
#cc3005firebrick
#f94b1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebddf8lavender
#ebddf8lavender

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card19.72:1AAA
Primary button8.62:1AAA
Secondary button12.38:1AAA
Muted text4.69:1AA
Accent12.38:1AAA
Destructive5.25:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button8.62:1AAA
Secondary button12.38:1AAA
Muted text7.35:1AAA
Accent12.38:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 309.073);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.964 0.004 129.174);
  --muted-foreground: oklch(0.531 0.034 129.817);
  --popover: oklch(0.979 0.01 309.019);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.01 309.019);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.917 0.039 308.68);
  --primary-foreground: oklch(0.375 0.166 302.216);
  --secondary: oklch(0.962 0.038 129.555);
  --secondary-foreground: oklch(0.292 0.069 132.7);
  --accent: oklch(0.962 0.038 129.555);
  --accent-foreground: oklch(0.292 0.069 132.7);
  --destructive: oklch(0.554 0.197 33.868);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.917 0.039 308.68);
  --chart-1: oklch(0.917 0.039 308.68);
  --chart-2: oklch(0.962 0.038 129.555);
  --chart-3: oklch(0.962 0.038 129.555);
  --chart-4: oklch(0.976 0.024 129.388);
  --chart-5: oklch(0.916 0.041 308.659);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 309.117);
  --muted: oklch(0.162 0.007 129.578);
  --muted-foreground: oklch(0.702 0.031 129.609);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.917 0.039 308.68);
  --primary-foreground: oklch(0.375 0.166 302.216);
  --secondary: oklch(0.962 0.038 129.555);
  --secondary-foreground: oklch(0.292 0.069 132.7);
  --accent: oklch(0.962 0.038 129.555);
  --accent-foreground: oklch(0.292 0.069 132.7);
  --destructive: oklch(0.656 0.218 34.946);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.917 0.039 308.68);
  --chart-1: oklch(0.917 0.039 308.68);
  --chart-2: oklch(0.962 0.038 129.555);
  --chart-3: oklch(0.962 0.038 129.555);
  --chart-4: oklch(0.976 0.024 129.388);
  --chart-5: oklch(0.916 0.041 308.659);
}