Brave for shadcn/ui

Brave is a shadcn/ui theme built around a deep pink primary color (#281017) with muted pink accents (#cbb4bb). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the deep pink primary (#281017) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#000000black
Foreground
#090104black
#faf5f6whitesmoke
Card
#fdfbfcsnow
#000000black
Card foreground
#090104black
#faf5f6whitesmoke
Popover
#fdfbfcsnow
#000000black
Popover foreground
#090104black
#faf5f6whitesmoke
Primary
#281017black
#281017black
Primary foreground
#d695a8rosybrown
#d695a8rosybrown
Secondary
#d4c9cclightgrey
#2e2327darkslategray
Secondary foreground
#3c2f33darkslategray
#cababfsilver
Muted
#f4ebeelinen
#140b0eblack
Muted foreground
#6c5a60dimgray
#a59398rosybrown
Accent
#cbb4bbsilver
#4f363ddarkslategray
Accent foreground
#2d1f23black
#e2d5d9gainsboro
Destructive
#682a08saddlebrown
#ee6f2bchocolate
Destructive foreground
#f8c5aanavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#281017black
#281017black

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button7.41:1AAA
Secondary button7.90:1AAA
Muted text5.50:1AA
Accent8.07:1AAA
Destructive7.06:1AAA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.41:1AAA
Secondary button8.10:1AAA
Muted text6.67:1AA
Accent7.67:1AAA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 356.722);
  --foreground: oklch(0.1 0.028 356.214);
  --muted: oklch(0.949 0.01 356.956);
  --muted-foreground: oklch(0.489 0.025 358.067);
  --popover: oklch(0.991 0.002 356.722);
  --popover-foreground: oklch(0.1 0.028 356.214);
  --card: oklch(0.991 0.002 356.722);
  --card-foreground: oklch(0.1 0.028 356.214);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.212 0.042 2.273);
  --primary-foreground: oklch(0.737 0.082 359.711);
  --secondary: oklch(0.846 0.014 357.123);
  --secondary-foreground: oklch(0.321 0.02 358.364);
  --accent: oklch(0.791 0.028 357.651);
  --accent-foreground: oklch(0.259 0.022 359.044);
  --destructive: oklch(0.368 0.099 44.283);
  --destructive-foreground: oklch(0.863 0.069 49.721);
  --ring: oklch(0.212 0.042 2.273);
  --chart-1: oklch(0.212 0.042 2.273);
  --chart-2: oklch(0.846 0.014 357.123);
  --chart-3: oklch(0.791 0.028 357.651);
  --chart-4: oklch(0.87 0.011 357.036);
  --chart-5: oklch(0.212 0.045 2.704);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.006 356.828);
  --muted: oklch(0.163 0.016 359.315);
  --muted-foreground: oklch(0.679 0.023 357.595);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.006 356.828);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.006 356.828);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.212 0.042 2.273);
  --primary-foreground: oklch(0.737 0.082 359.711);
  --secondary: oklch(0.272 0.017 358.394);
  --secondary-foreground: oklch(0.803 0.019 357.336);
  --accent: oklch(0.363 0.038 359.52);
  --accent-foreground: oklch(0.884 0.016 357.172);
  --destructive: oklch(0.684 0.175 45.109);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.212 0.042 2.273);
  --chart-1: oklch(0.212 0.042 2.273);
  --chart-2: oklch(0.272 0.017 358.394);
  --chart-3: oklch(0.363 0.038 359.52);
  --chart-4: oklch(0.301 0.02 358.469);
  --chart-5: oklch(0.212 0.045 2.704);
}