Bright for shadcn/ui

Bright is a shadcn/ui theme built around a vivid deep violet primary color (#160434) with vivid deep green accents (#043416). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#160434) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020104black
#fcfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#160434black
#160434black
Primary foreground
#e3d5fclavender
#e3d5fclavender
Secondary
#341604black
#341604black
Secondary foreground
#f4a676lightsalmon
#f4a676lightsalmon
Muted
#f1ecealinen
#15110eblack
Muted foreground
#584d46darkolivegreen
#b9aea7darkgray
Accent
#043416darkgreen
#043416darkgreen
Accent foreground
#18ec69springgreen
#18ec69springgreen
Destructive
#9e3d05saddlebrown
#f86c1bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#160434black
#160434black

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.54:1AAA
Primary button13.77:1AAA
Secondary button8.34:1AAA
Muted text6.99:1AA
Accent8.78:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button13.77:1AAA
Secondary button8.34:1AAA
Muted text8.64:1AAA
Accent8.78:1AAA
Destructive7.16:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.077 0.021 304.874);
  --muted: oklch(0.947 0.006 54.418);
  --muted-foreground: oklch(0.429 0.018 53.942);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.183 0.087 294.098);
  --primary-foreground: oklch(0.896 0.055 302.728);
  --secondary: oklch(0.242 0.056 50.449);
  --secondary-foreground: oklch(0.791 0.112 52.336);
  --accent: oklch(0.286 0.072 151.151);
  --accent-foreground: oklch(0.825 0.23 148.801);
  --destructive: oklch(0.489 0.142 43.171);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.183 0.087 294.098);
  --chart-1: oklch(0.183 0.087 294.098);
  --chart-2: oklch(0.242 0.056 50.449);
  --chart-3: oklch(0.286 0.072 151.151);
  --chart-4: oklch(0.279 0.067 48.94);
  --chart-5: oklch(0.182 0.09 293.693);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 303.608);
  --muted: oklch(0.182 0.009 53.831);
  --muted-foreground: oklch(0.758 0.016 54.226);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.183 0.087 294.098);
  --primary-foreground: oklch(0.896 0.055 302.728);
  --secondary: oklch(0.242 0.056 50.449);
  --secondary-foreground: oklch(0.791 0.112 52.336);
  --accent: oklch(0.286 0.072 151.151);
  --accent-foreground: oklch(0.825 0.23 148.801);
  --destructive: oklch(0.694 0.19 44.679);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.183 0.087 294.098);
  --chart-1: oklch(0.183 0.087 294.098);
  --chart-2: oklch(0.242 0.056 50.449);
  --chart-3: oklch(0.286 0.072 151.151);
  --chart-4: oklch(0.279 0.067 48.94);
  --chart-5: oklch(0.182 0.09 293.693);
}