Bright for shadcn/ui

Bright is a shadcn/ui theme built around a deep blue primary color (#030d16) with deep indigo accents (#030416). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep blue primary (#030d16) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfewhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fbfdfewhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfdfewhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#030d16black
#030d16black
Primary foreground
#65aae7cornflowerblue
#65aae7cornflowerblue
Secondary
#031615black
#031615black
Secondary foreground
#1fc7c1lightseagreen
#1fc7c1lightseagreen
Muted
#e6f4f3whitesmoke
#0b1918black
Muted foreground
#455454darkslategray
#abbabasilver
Accent
#030416black
#030416black
Accent foreground
#bdbff5lightsteelblue
#bdbff5lightsteelblue
Destructive
#8f0904darkred
#df0e07red
Destructive foreground
#fdcac9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030d16black
#030d16black

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button7.86:1AAA
Secondary button8.84:1AAA
Muted text7.02:1AAA
Accent11.54:1AAA
Destructive6.52:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.86:1AAA
Secondary button8.84:1AAA
Muted text8.99:1AAA
Accent11.54:1AAA
Destructive5.00: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.003 244.125);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.014 194.511);
  --muted-foreground: oklch(0.433 0.019 193.976);
  --popover: oklch(0.992 0.003 244.125);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.003 244.125);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.155 0.025 242.321);
  --primary-foreground: oklch(0.717 0.114 246.596);
  --secondary: oklch(0.184 0.026 192.342);
  --secondary-foreground: oklch(0.75 0.125 191.14);
  --accent: oklch(0.122 0.043 275.642);
  --accent-foreground: oklch(0.821 0.076 283.051);
  --destructive: oklch(0.413 0.164 29.359);
  --destructive-foreground: oklch(0.884 0.058 20.616);
  --ring: oklch(0.155 0.025 242.321);
  --chart-1: oklch(0.155 0.025 242.321);
  --chart-2: oklch(0.184 0.026 192.342);
  --chart-3: oklch(0.122 0.043 275.642);
  --chart-4: oklch(0.235 0.035 191.919);
  --chart-5: oklch(0.155 0.027 242.101);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.019 193.021);
  --muted-foreground: oklch(0.777 0.017 194.386);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.155 0.025 242.321);
  --primary-foreground: oklch(0.717 0.114 246.596);
  --secondary: oklch(0.184 0.026 192.342);
  --secondary-foreground: oklch(0.75 0.125 191.14);
  --accent: oklch(0.122 0.043 275.642);
  --accent-foreground: oklch(0.821 0.076 283.051);
  --destructive: oklch(0.57 0.229 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.155 0.025 242.321);
  --chart-1: oklch(0.155 0.025 242.321);
  --chart-2: oklch(0.184 0.026 192.342);
  --chart-3: oklch(0.122 0.043 275.642);
  --chart-4: oklch(0.235 0.035 191.919);
  --chart-5: oklch(0.155 0.027 242.101);
}