Brave for shadcn/ui

Brave is a shadcn/ui theme built around a vivid teal primary color (#34efef) with vivid blue accents (#3491ef). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the vivid teal primary (#34efef) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#050a0ablack
Foreground
#020808black
#ffffffwhite
Card
#f8fcfcmintcream
#050a0ablack
Card foreground
#020808black
#ffffffwhite
Popover
#f8fcfcmintcream
#050a0ablack
Popover foreground
#020808black
#ffffffwhite
Primary
#34efefturquoise
#34efefturquoise
Primary foreground
#075050darkslategray
#075050darkslategray
Secondary
#34ef91mediumspringgreen
#34ef91mediumspringgreen
Secondary foreground
#07502bdarkgreen
#07502bdarkgreen
Muted
#ddeee6gainsboro
#11221ablack
Muted foreground
#5c7066dimgray
#8fa399darkseagreen
Accent
#3491efdodgerblue
#3491efdodgerblue
Accent foreground
#000000black
#000000black
Destructive
#b53f08firebrick
#e64f0aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#34efefturquoise
#34efefturquoise

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button6.46:1AA
Secondary button6.32:1AA
Muted text4.40:1AA Large
Accent6.45:1AA
Destructive5.71:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button6.46:1AA
Secondary button6.32:1AA
Muted text6.18:1AA
Accent6.45:1AA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 197.094);
  --foreground: oklch(0.127 0.016 195.347);
  --muted: oklch(0.935 0.022 164.503);
  --muted-foreground: oklch(0.526 0.029 163.604);
  --popover: oklch(0.988 0.004 197.094);
  --popover-foreground: oklch(0.127 0.016 195.347);
  --card: oklch(0.988 0.004 197.094);
  --card-foreground: oklch(0.127 0.016 195.347);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.865 0.139 194.887);
  --primary-foreground: oklch(0.392 0.065 194.841);
  --secondary: oklch(0.841 0.194 155.269);
  --secondary-foreground: oklch(0.381 0.092 154.464);
  --accent: oklch(0.649 0.164 251.948);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.529 0.163 39.594);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.865 0.139 194.887);
  --chart-1: oklch(0.865 0.139 194.887);
  --chart-2: oklch(0.841 0.194 155.269);
  --chart-3: oklch(0.649 0.164 251.948);
  --chart-4: oklch(0.847 0.185 156.281);
  --chart-5: oklch(0.873 0.142 194.87);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.009 196.152);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.235 0.03 161.19);
  --muted-foreground: oklch(0.697 0.027 164.075);
  --popover: oklch(0.139 0.009 196.152);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.009 196.152);
  --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.865 0.139 194.887);
  --primary-foreground: oklch(0.392 0.065 194.841);
  --secondary: oklch(0.841 0.194 155.269);
  --secondary-foreground: oklch(0.381 0.092 154.464);
  --accent: oklch(0.649 0.164 251.948);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.63 0.198 39.146);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.865 0.139 194.887);
  --chart-1: oklch(0.865 0.139 194.887);
  --chart-2: oklch(0.841 0.194 155.269);
  --chart-3: oklch(0.649 0.164 251.948);
  --chart-4: oklch(0.847 0.185 156.281);
  --chart-5: oklch(0.873 0.142 194.87);
}