Brave (rainglow) for shadcn/ui

Brave (rainglow) is a shadcn/ui theme built around a neutral gray primary color (#d6dbdb) with muted blue accents (#545c73). The light mode uses a blue-tinted background (#333947). Dark mode keeps the neutral gray primary (#d6dbdb) on a blue-tinted background (#333947).

Color palette

TokenLightDark
Background
#333947darkslategray
#333947darkslategray
Foreground
#d6dbdbgainsboro
#d6dbdbgainsboro
Card
#2f3441darkslategray
#2f3441darkslategray
Card foreground
#e4e7e7gainsboro
#e4e7e7gainsboro
Popover
#2d323edarkslategray
#2d323edarkslategray
Popover foreground
#f1f3f3whitesmoke
#f1f3f3whitesmoke
Primary
#d6dbdbgainsboro
#d6dbdbgainsboro
Primary foreground
#3c4444darkslategray
#3c4444darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#3f4350darkslategray
#3f4350darkslategray
Muted foreground
#c0c4cesilver
#c0c4cesilver
Accent
#545c73dimgray
#545c73dimgray
Accent foreground
#fcfcfdwhite
#fcfcfdwhite
Destructive
#e12019crimson
#e12019crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#46484edarkslategray
#46484edarkslategray
Input
#4d4f56darkslategray
#4d4f56darkslategray
Ring
#d6dbdbgainsboro
#d6dbdbgainsboro

Contrast

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

Light mode
Text on background8.28:1AAA
Text on card10.00:1AAA
Primary button7.15:1AAA
Secondary button7.37:1AAA
Muted text5.62:1AA
Accent6.49:1AA
Destructive4.75:1AA
Dark mode
Text on background8.28:1AAA
Text on card10.00:1AAA
Primary button7.15:1AAA
Secondary button7.37:1AAA
Muted text5.62:1AA
Accent6.49:1AA
Destructive4.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.344 0.026 269.337);
  --foreground: oklch(0.888 0.005 197.067);
  --muted: oklch(0.385 0.022 269.554);
  --muted-foreground: oklch(0.82 0.014 269.97);
  --popover: oklch(0.316 0.023 269.363);
  --popover-foreground: oklch(0.963 0.002 197.131);
  --card: oklch(0.326 0.024 269.354);
  --card-foreground: oklch(0.926 0.003 197.1);
  --border: oklch(0.401 0.011 269.868);
  --input: oklch(0.429 0.012 269.864);
  --primary: oklch(0.888 0.005 197.067);
  --primary-foreground: oklch(0.378 0.01 196.733);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.477 0.039 269.26);
  --accent-foreground: oklch(0.992 0.001 270.114);
  --destructive: oklch(0.582 0.224 28.857);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.888 0.005 197.067);
  --chart-1: oklch(0.888 0.005 197.067);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.477 0.039 269.26);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.89 0.007 197.022);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.344 0.026 269.337);
  --foreground: oklch(0.888 0.005 197.067);
  --muted: oklch(0.385 0.022 269.554);
  --muted-foreground: oklch(0.82 0.014 269.97);
  --popover: oklch(0.316 0.023 269.363);
  --popover-foreground: oklch(0.963 0.002 197.131);
  --card: oklch(0.326 0.024 269.354);
  --card-foreground: oklch(0.926 0.003 197.1);
  --border: oklch(0.401 0.011 269.868);
  --input: oklch(0.429 0.012 269.864);
  --primary: oklch(0.888 0.005 197.067);
  --primary-foreground: oklch(0.378 0.01 196.733);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.477 0.039 269.26);
  --accent-foreground: oklch(0.992 0.001 270.114);
  --destructive: oklch(0.582 0.224 28.857);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.888 0.005 197.067);
  --chart-1: oklch(0.888 0.005 197.067);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.477 0.039 269.26);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.89 0.007 197.022);
}