Bright for shadcn/ui

Bright is a shadcn/ui theme built around a vivid deep indigo primary color (#0b0b6b) with vivid deep violet accents (#3b0b6b). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid deep indigo primary (#0b0b6b) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#010104black
Foreground
#010104black
#fcfcfdwhite
Card
#f8f8fcghostwhite
#010104black
Card foreground
#010104black
#fcfcfdwhite
Popover
#f8f8fcghostwhite
#010104black
Popover foreground
#010104black
#fcfcfdwhite
Primary
#0b0b6bmidnightblue
#0b0b6bmidnightblue
Primary foreground
#b0b0f7lightsteelblue
#b0b0f7lightsteelblue
Secondary
#0b3b6bmidnightblue
#0b3b6bmidnightblue
Secondary foreground
#b0d4f7lightblue
#b0d4f7lightblue
Muted
#d3dbe4gainsboro
#1b242cdarkslategray
Muted foreground
#596169dimgray
#969ea6darkgray
Accent
#3b0b6bindigo
#3b0b6bindigo
Accent foreground
#d4b0f7plum
#d4b0f7plum
Destructive
#cb4b06chocolate
#f8722atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0b6bmidnightblue
#0b0b6bmidnightblue

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button8.18:1AAA
Secondary button7.38:1AAA
Muted text4.50:1AA
Accent7.87:1AAA
Destructive4.62:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button8.18:1AAA
Secondary button7.38:1AAA
Muted text5.80:1AA
Accent7.87:1AAA
Destructive7.46:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.005 286.3);
  --foreground: oklch(0.074 0.018 281.076);
  --muted: oklch(0.888 0.014 247.989);
  --muted-foreground: oklch(0.488 0.016 248.151);
  --popover: oklch(0.98 0.005 286.3);
  --popover-foreground: oklch(0.074 0.018 281.076);
  --card: oklch(0.98 0.005 286.3);
  --card-foreground: oklch(0.074 0.018 281.076);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.255 0.154 268.252);
  --primary-foreground: oklch(0.784 0.101 283.836);
  --secondary: oklch(0.349 0.097 252.907);
  --secondary-foreground: oklch(0.855 0.063 248.561);
  --accent: oklch(0.3 0.147 299.159);
  --accent-foreground: oklch(0.813 0.105 307.013);
  --destructive: oklch(0.58 0.175 41.295);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.154 268.252);
  --chart-1: oklch(0.255 0.154 268.252);
  --chart-2: oklch(0.349 0.097 252.907);
  --chart-3: oklch(0.3 0.147 299.159);
  --chart-4: oklch(0.379 0.107 253.105);
  --chart-5: oklch(0.254 0.158 267.559);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.073 0.018 280.915);
  --foreground: oklch(0.99 0.002 286.354);
  --muted: oklch(0.255 0.02 248.599);
  --muted-foreground: oklch(0.696 0.014 248.035);
  --popover: oklch(0.073 0.018 280.915);
  --popover-foreground: oklch(0.99 0.002 286.354);
  --card: oklch(0.073 0.018 280.915);
  --card-foreground: oklch(0.99 0.002 286.354);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.255 0.154 268.252);
  --primary-foreground: oklch(0.784 0.101 283.836);
  --secondary: oklch(0.349 0.097 252.907);
  --secondary-foreground: oklch(0.855 0.063 248.561);
  --accent: oklch(0.3 0.147 299.159);
  --accent-foreground: oklch(0.813 0.105 307.013);
  --destructive: oklch(0.704 0.183 44.858);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.255 0.154 268.252);
  --chart-1: oklch(0.255 0.154 268.252);
  --chart-2: oklch(0.349 0.097 252.907);
  --chart-3: oklch(0.3 0.147 299.159);
  --chart-4: oklch(0.379 0.107 253.105);
  --chart-5: oklch(0.254 0.158 267.559);
}