Brief for shadcn/ui

Brief is a shadcn/ui theme built around a vivid blue primary color (#497ff3) with vivid green accents (#7ff349). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid blue primary (#497ff3) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030407black
Foreground
#050a15black
#f6f7f9whitesmoke
Card
#fbfcfewhite
#030407black
Card foreground
#050a15black
#f6f7f9whitesmoke
Popover
#fbfcfewhite
#030407black
Popover foreground
#050a15black
#f6f7f9whitesmoke
Primary
#497ff3royalblue
#497ff3royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#f3497fpalevioletred
#f3497fpalevioletred
Secondary foreground
#000000black
#000000black
Muted
#f4e6eblinen
#190b0fblack
Muted foreground
#60575adimgray
#a89fa2darkgray
Accent
#7ff349yellowgreen
#7ff349yellowgreen
Accent foreground
#030a01black
#030a01black
Destructive
#651306maroon
#f03114orangered
Destructive foreground
#f9afa4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#497ff3royalblue
#497ff3royalblue

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button3.74:1AA Large
Secondary button6.07:1AA
Muted text5.77:1AA
Accent14.18:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button3.74:1AA Large
Secondary button6.07:1AA
Muted text7.43:1AAA
Accent14.18:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 265.995);
  --foreground: oklch(0.144 0.026 261.235);
  --muted: oklch(0.938 0.016 356.109);
  --muted-foreground: oklch(0.467 0.013 356.39);
  --popover: oklch(0.991 0.003 265.995);
  --popover-foreground: oklch(0.144 0.026 261.235);
  --card: oklch(0.991 0.003 265.995);
  --card-foreground: oklch(0.144 0.026 261.235);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.62 0.184 263.327);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.66 0.209 5.904);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.864 0.23 137.623);
  --accent-foreground: oklch(0.13 0.032 132.969);
  --destructive: oklch(0.332 0.117 31.779);
  --destructive-foreground: oklch(0.822 0.089 28.865);
  --ring: oklch(0.62 0.184 263.327);
  --chart-1: oklch(0.62 0.184 263.327);
  --chart-2: oklch(0.66 0.209 5.904);
  --chart-3: oklch(0.864 0.23 137.623);
  --chart-4: oklch(0.679 0.195 4.47);
  --chart-5: oklch(0.619 0.19 263.242);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.01 260.684);
  --foreground: oklch(0.975 0.004 265.99);
  --muted: oklch(0.172 0.025 359.691);
  --muted-foreground: oklch(0.71 0.011 356.077);
  --popover: oklch(0.109 0.01 260.684);
  --popover-foreground: oklch(0.975 0.004 265.99);
  --card: oklch(0.109 0.01 260.684);
  --card-foreground: oklch(0.975 0.004 265.99);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.62 0.184 263.327);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.66 0.209 5.904);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.864 0.23 137.623);
  --accent-foreground: oklch(0.13 0.032 132.969);
  --destructive: oklch(0.619 0.228 31.456);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.62 0.184 263.327);
  --chart-1: oklch(0.62 0.184 263.327);
  --chart-2: oklch(0.66 0.209 5.904);
  --chart-3: oklch(0.864 0.23 137.623);
  --chart-4: oklch(0.679 0.195 4.47);
  --chart-5: oklch(0.619 0.19 263.242);
}