Bright for shadcn/ui

Bright is a shadcn/ui theme built around a blue primary color (#1a5ca8) with orange accents (#a8661a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#1a5ca8) on a blue-tinted background (#05070a).

Color palette

TokenLightDark
Background
#fbfcfewhite
#05070ablack
Foreground
#020a12black
#ffffffwhite
Card
#f8fafcghostwhite
#070a0eblack
Card foreground
#02070eblack
#ffffffwhite
Popover
#f8fafcghostwhite
#070a0eblack
Popover foreground
#02070eblack
#ffffffwhite
Primary
#1a5ca8steelblue
#1a5ca8steelblue
Primary foreground
#f6fafeghostwhite
#f6fafeghostwhite
Secondary
#a8661asienna
#a8661asienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f2f1whitesmoke
#0e0d0bblack
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#a8661asienna
#a8661asienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8a1e00darkred
#ff5b2etomato
Destructive foreground
#ffcbbdpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a5ca8steelblue
#1a5ca8steelblue

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.27:1AAA
Primary button6.36:1AA
Secondary button4.60:1AA
Muted text6.00:1AA
Accent4.60:1AA
Destructive6.43:1AA
Dark mode
Text on background20.12:1AAA
Text on card19.84:1AAA
Primary button6.36:1AA
Secondary button4.60:1AA
Muted text7.70:1AAA
Accent4.60:1AA
Destructive6.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 251.466);
  --foreground: oklch(0.138 0.024 244.786);
  --muted: oklch(0.963 0.002 71.429);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.984 0.004 251.481);
  --popover-foreground: oklch(0.125 0.02 241.421);
  --card: oklch(0.984 0.004 251.481);
  --card-foreground: oklch(0.125 0.02 241.421);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.477 0.137 254.959);
  --primary-foreground: oklch(0.983 0.006 251.504);
  --secondary: oklch(0.57 0.119 63.389);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.57 0.119 63.389);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.415 0.147 34.482);
  --destructive-foreground: oklch(0.884 0.063 35.977);
  --ring: oklch(0.477 0.137 254.959);
  --chart-1: oklch(0.477 0.137 254.959);
  --chart-2: oklch(0.57 0.119 63.389);
  --chart-3: oklch(0.57 0.119 63.389);
  --chart-4: oklch(0.602 0.127 63.246);
  --chart-5: oklch(0.478 0.142 255.237);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.008 246.763);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.159 0.004 71.228);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.143 0.01 249.165);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.01 249.165);
  --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.477 0.137 254.959);
  --primary-foreground: oklch(0.983 0.006 251.504);
  --secondary: oklch(0.57 0.119 63.389);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.57 0.119 63.389);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.685 0.207 35.76);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.477 0.137 254.959);
  --chart-1: oklch(0.477 0.137 254.959);
  --chart-2: oklch(0.57 0.119 63.389);
  --chart-3: oklch(0.57 0.119 63.389);
  --chart-4: oklch(0.602 0.127 63.246);
  --chart-5: oklch(0.478 0.142 255.237);
}