Bright for shadcn/ui

Bright is a shadcn/ui theme built around a vivid green primary color (#04ae07) with vivid teal accents (#04ae5c). The light mode uses a neutral background (#f7fcf7). Dark mode keeps the vivid green primary (#04ae07) on a green-tinted background (#070e07).

Color palette

TokenLightDark
Background
#f7fcf7mintcream
#070e07black
Foreground
#020d02black
#ffffffwhite
Card
#f4fbf4whitesmoke
#081108black
Card foreground
#010901black
#ffffffwhite
Popover
#f4fbf4whitesmoke
#081108black
Popover foreground
#010901black
#ffffffwhite
Primary
#04ae07green
#04ae07green
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#56ae04olivedrab
#56ae04olivedrab
Secondary foreground
#000000black
#000000black
Muted
#dee1dagainsboro
#21251eblack
Muted foreground
#596151dimgray
#a5ae9edarkgray
Accent
#04ae5cseagreen
#04ae5cseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d3501saddlebrown
#fe7734tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#04ae07green
#04ae07green

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.16:1AAA
Primary button2.97:1Fail
Secondary button7.45:1AAA
Muted text4.89:1AA
Accent2.90:1Fail
Destructive7.12:1AAA
Dark mode
Text on background19.56:1AAA
Text on card19.15:1AAA
Primary button2.97:1Fail
Secondary button7.45:1AAA
Muted text6.80:1AA
Accent2.90:1Fail
Destructive7.91:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 145.985);
  --foreground: oklch(0.143 0.036 143.897);
  --muted: oklch(0.906 0.011 129.25);
  --muted-foreground: oklch(0.481 0.027 129.739);
  --popover: oklch(0.981 0.012 145.95);
  --popover-foreground: oklch(0.124 0.031 143.929);
  --card: oklch(0.981 0.012 145.95);
  --card-foreground: oklch(0.124 0.031 143.929);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.651 0.22 142.591);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.669 0.197 135.796);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.659 0.17 152.765);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.476 0.148 40.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.651 0.22 142.591);
  --chart-1: oklch(0.651 0.22 142.591);
  --chart-2: oklch(0.669 0.197 135.796);
  --chart-3: oklch(0.659 0.17 152.765);
  --chart-4: oklch(0.711 0.21 135.874);
  --chart-5: oklch(0.658 0.223 142.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.02 144.981);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.257 0.014 129.735);
  --muted-foreground: oklch(0.739 0.024 129.481);
  --popover: oklch(0.166 0.023 144.861);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.166 0.023 144.861);
  --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.651 0.22 142.591);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.669 0.197 135.796);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.659 0.17 152.765);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.72 0.182 44.176);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.651 0.22 142.591);
  --chart-1: oklch(0.651 0.22 142.591);
  --chart-2: oklch(0.669 0.197 135.796);
  --chart-3: oklch(0.659 0.17 152.765);
  --chart-4: oklch(0.711 0.21 135.874);
  --chart-5: oklch(0.658 0.223 142.578);
}