Brow for shadcn/ui

Brow is a shadcn/ui theme built around a muted purple primary color (#b9a7b5) with muted pink accents (#b9a7ac). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the muted purple primary (#b9a7b5) on a purple-tinted background (#0a0509).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#0a0509black
Foreground
#080207black
#faf5f9whitesmoke
Card
#fcf3falavenderblush
#0e070cblack
Card foreground
#040103black
#fcf8fbsnow
Popover
#fcf3falavenderblush
#0e070cblack
Popover foreground
#040103black
#fcf8fbsnow
Primary
#b9a7b5darkgray
#b9a7b5darkgray
Primary foreground
#191418black
#191418black
Secondary
#b4a7b9darkgray
#b4a7b9darkgray
Secondary foreground
#181419black
#181419black
Muted
#ebe1eflavender
#1a101eblack
Muted foreground
#493b4edarkslategray
#bfb1c4silver
Accent
#b9a7acdarkgray
#b9a7acdarkgray
Accent foreground
#191416black
#191416black
Destructive
#a14612saddlebrown
#e76a23chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b9a7b5darkgray
#b9a7b5darkgray

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.12:1AAA
Primary button8.02:1AAA
Secondary button7.96:1AAA
Muted text8.20:1AAA
Accent7.97:1AAA
Destructive6.17:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.96:1AAA
Primary button8.02:1AAA
Secondary button7.96:1AAA
Muted text9.05:1AAA
Accent7.97:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 333.375);
  --foreground: oklch(0.108 0.022 333.984);
  --muted: oklch(0.922 0.021 317.137);
  --muted-foreground: oklch(0.376 0.037 316.96);
  --popover: oklch(0.973 0.012 333.445);
  --popover-foreground: oklch(0.086 0.017 333.984);
  --card: oklch(0.973 0.012 333.445);
  --card-foreground: oklch(0.086 0.017 333.984);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.748 0.027 333.818);
  --primary-foreground: oklch(0.201 0.011 334.099);
  --secondary: oklch(0.745 0.028 317.103);
  --secondary-foreground: oklch(0.2 0.011 317.059);
  --accent: oklch(0.745 0.021 359.578);
  --accent-foreground: oklch(0.2 0.009 359.977);
  --destructive: oklch(0.506 0.134 45.398);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.027 333.818);
  --chart-1: oklch(0.748 0.027 333.818);
  --chart-2: oklch(0.745 0.028 317.103);
  --chart-3: oklch(0.745 0.021 359.578);
  --chart-4: oklch(0.771 0.025 317.114);
  --chart-5: oklch(0.746 0.035 333.974);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 333.747);
  --foreground: oklch(0.975 0.007 333.359);
  --muted: oklch(0.194 0.031 316.794);
  --muted-foreground: oklch(0.777 0.031 317.098);
  --popover: oklch(0.14 0.019 334.697);
  --popover-foreground: oklch(0.983 0.005 333.319);
  --card: oklch(0.14 0.019 334.697);
  --card-foreground: oklch(0.983 0.005 333.319);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.748 0.027 333.818);
  --primary-foreground: oklch(0.201 0.011 334.099);
  --secondary: oklch(0.745 0.028 317.103);
  --secondary-foreground: oklch(0.2 0.011 317.059);
  --accent: oklch(0.745 0.021 359.578);
  --accent-foreground: oklch(0.2 0.009 359.977);
  --destructive: oklch(0.666 0.173 45.86);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.748 0.027 333.818);
  --chart-1: oklch(0.748 0.027 333.818);
  --chart-2: oklch(0.745 0.028 317.103);
  --chart-3: oklch(0.745 0.021 359.578);
  --chart-4: oklch(0.771 0.025 317.114);
  --chart-5: oklch(0.746 0.035 333.974);
}