Bright for shadcn/ui

Bright is a shadcn/ui theme built around a deep green primary color (#204625) with muted light green accents (#c0cec2). The light mode uses a neutral background (#fbfefb). Dark mode keeps the deep green primary (#204625) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#fbfefbwhite
#040b05black
Foreground
#010401black
#fcfdfcwhite
Card
#f7fdf8mintcream
#050f07black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdf8mintcream
#050f07black
Popover foreground
#000000black
#ffffffwhite
Primary
#204625darkslategray
#204625darkslategray
Primary foreground
#b9dfbesilver
#b9dfbesilver
Secondary
#d9ded9gainsboro
#232a24darkslategray
Secondary foreground
#3e473fdarkslategray
#bac5bbsilver
Muted
#e0f0e2gainsboro
#0f1f11black
Muted foreground
#535554dimgray
#aaacaadarkgray
Accent
#c0cec2silver
#2c3f2edarkslategray
Accent foreground
#28342adarkslategray
#c6d7c8lightgrey
Destructive
#b00603darkred
#fc3431crimson
Destructive foreground
#ffe6e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#204625darkslategray
#204625darkslategray

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.32:1AAA
Primary button7.32:1AAA
Secondary button7.06:1AAA
Muted text6.34:1AA
Accent7.95:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.46:1AAA
Primary button7.32:1AAA
Secondary button8.28:1AAA
Muted text7.51:1AAA
Accent7.49:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 149.63);
  --foreground: oklch(0.098 0.021 148.292);
  --muted: oklch(0.939 0.024 149.358);
  --muted-foreground: oklch(0.447 0.003 149.596);
  --popover: oklch(0.988 0.009 149.575);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.009 149.575);
  --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.356 0.071 146.779);
  --primary-foreground: oklch(0.867 0.06 148.791);
  --secondary: oklch(0.895 0.008 149.574);
  --secondary-foreground: oklch(0.387 0.018 149.088);
  --accent: oklch(0.837 0.023 149.331);
  --accent-foreground: oklch(0.31 0.024 148.657);
  --destructive: oklch(0.477 0.193 29.284);
  --destructive-foreground: oklch(0.945 0.027 18.805);
  --ring: oklch(0.356 0.071 146.779);
  --chart-1: oklch(0.356 0.071 146.779);
  --chart-2: oklch(0.895 0.008 149.574);
  --chart-3: oklch(0.837 0.023 149.331);
  --chart-4: oklch(0.918 0.006 149.6);
  --chart-5: oklch(0.36 0.075 146.565);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.022 148.659);
  --foreground: oklch(0.993 0.003 149.648);
  --muted: oklch(0.219 0.034 147.532);
  --muted-foreground: oklch(0.742 0.003 149.637);
  --popover: oklch(0.155 0.025 148.295);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.025 148.295);
  --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.356 0.071 146.779);
  --primary-foreground: oklch(0.867 0.06 148.791);
  --secondary: oklch(0.275 0.015 149.005);
  --secondary-foreground: oklch(0.812 0.019 149.396);
  --accent: oklch(0.346 0.038 148.217);
  --accent-foreground: oklch(0.863 0.028 149.277);
  --destructive: oklch(0.644 0.234 27.496);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.356 0.071 146.779);
  --chart-1: oklch(0.356 0.071 146.779);
  --chart-2: oklch(0.275 0.015 149.005);
  --chart-3: oklch(0.346 0.038 148.217);
  --chart-4: oklch(0.307 0.017 148.973);
  --chart-5: oklch(0.36 0.075 146.565);
}