Brave for shadcn/ui

Brave is a shadcn/ui theme built around a neutral gray primary color (#65676c) with muted light blue accents (#c8cad0). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#65676c) on a blue-tinted background (#040710).

Color palette

TokenLightDark
Background
#ffffffwhite
#040710black
Foreground
#010204black
#fcfcfdwhite
Card
#ffffffwhite
#040710black
Card foreground
#010204black
#fcfcfdwhite
Popover
#ffffffwhite
#040710black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#65676cdimgray
#65676cdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dededegainsboro
#2e2f33darkslategray
Secondary foreground
#444446darkslategray
#c6c8cdsilver
Muted
#d6d8e1gainsboro
#1e2029black
Muted foreground
#474a57darkslategray
#a8abb8darkgray
Accent
#c8cad0lightgrey
#3e4251darkslategray
Accent foreground
#2f3137darkslategray
#dcdee4gainsboro
Destructive
#d84e03chocolate
#fc752ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#65676cdimgray
#65676cdimgray

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button5.67:1AA
Secondary button7.19:1AAA
Muted text6.19:1AA
Accent7.90:1AAA
Destructive4.19:1AA Large
Dark mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button5.67:1AA
Secondary button8.01:1AAA
Muted text7.06:1AAA
Accent7.43:1AAA
Destructive7.69:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.013 267.869);
  --muted: oklch(0.883 0.012 274.867);
  --muted-foreground: oklch(0.412 0.021 274.333);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.081 0.013 267.869);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.081 0.013 267.869);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.513 0.008 274.84);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.9 0.001 275.024);
  --secondary-foreground: oklch(0.388 0.002 274.975);
  --accent: oklch(0.838 0.009 274.899);
  --accent-foreground: oklch(0.312 0.012 274.538);
  --destructive: oklch(0.605 0.186 40.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.513 0.008 274.84);
  --chart-1: oklch(0.513 0.008 274.84);
  --chart-2: oklch(0.9 0.001 275.024);
  --chart-3: oklch(0.838 0.009 274.899);
  --chart-4: oklch(0.923 0.001 275.027);
  --chart-5: oklch(0.507 0.016 274.624);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.022 268.964);
  --foreground: oklch(0.992 0.001 275.024);
  --muted: oklch(0.247 0.017 274.107);
  --muted-foreground: oklch(0.743 0.018 274.719);
  --popover: oklch(0.129 0.022 268.964);
  --popover-foreground: oklch(0.992 0.001 275.024);
  --card: oklch(0.129 0.022 268.964);
  --card-foreground: oklch(0.992 0.001 275.024);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.513 0.008 274.84);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.305 0.008 274.678);
  --secondary-foreground: oklch(0.832 0.007 274.927);
  --accent: oklch(0.381 0.026 274.097);
  --accent-foreground: oklch(0.901 0.009 274.914);
  --destructive: oklch(0.712 0.184 44.948);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.513 0.008 274.84);
  --chart-1: oklch(0.513 0.008 274.84);
  --chart-2: oklch(0.305 0.008 274.678);
  --chart-3: oklch(0.381 0.026 274.097);
  --chart-4: oklch(0.334 0.01 274.665);
  --chart-5: oklch(0.507 0.016 274.624);
}