Bracket for shadcn/ui

Bracket is a shadcn/ui theme built around a green primary color (#a8db29) with muted light green accents (#d4d8ca). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#a8db29) on a green-tinted background (#090b05).

Color palette

TokenLightDark
Background
#fbfcf8snow
#090b05black
Foreground
#101505black
#fbfbf8snow
Card
#f9faf4whitesmoke
#0c0e06black
Card foreground
#0d1104black
#fdfdfcwhite
Popover
#f9faf4whitesmoke
#0c0e06black
Popover foreground
#0d1104black
#fdfdfcwhite
Primary
#a8db29yellowgreen
#a8db29yellowgreen
Primary foreground
#253008black
#253008black
Secondary
#ebecealinen
#1c1f14black
Secondary foreground
#53564edarkslategray
#b9c2a3silver
Muted
#e7e9e2gainsboro
#1b1d16black
Muted foreground
#40413edarkslategray
#c0c1besilver
Accent
#d4d8calightgrey
#363e23darkslategray
Accent foreground
#3c4130darkslategray
#d0d8bblightgrey
Destructive
#cc2605firebrick
#e02a06orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a8db29yellowgreen
#a8db29yellowgreen

Contrast

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

Light mode
Text on background17.99:1AAA
Text on card18.24:1AAA
Primary button8.51:1AAA
Secondary button6.29:1AA
Muted text8.41:1AAA
Accent7.27:1AAA
Destructive5.45:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.06:1AAA
Primary button8.51:1AAA
Secondary button9.04:1AAA
Muted text9.38:1AAA
Accent7.64:1AAA
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 119.4);
  --foreground: oklch(0.185 0.032 121.892);
  --muted: oklch(0.931 0.01 119.497);
  --muted-foreground: oklch(0.374 0.004 119.505);
  --popover: oklch(0.983 0.008 119.448);
  --popover-foreground: oklch(0.168 0.028 121.069);
  --card: oklch(0.983 0.008 119.448);
  --card-foreground: oklch(0.168 0.028 121.069);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.826 0.197 125.22);
  --primary-foreground: oklch(0.289 0.062 123.976);
  --secondary: oklch(0.941 0.003 119.355);
  --secondary-foreground: oklch(0.447 0.013 119.818);
  --accent: oklch(0.875 0.019 119.679);
  --accent-foreground: oklch(0.364 0.029 120.677);
  --destructive: oklch(0.546 0.203 32.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.826 0.197 125.22);
  --chart-1: oklch(0.826 0.197 125.22);
  --chart-2: oklch(0.941 0.003 119.355);
  --chart-3: oklch(0.875 0.019 119.679);
  --chart-4: oklch(0.963 0.002 119.335);
  --chart-5: oklch(0.836 0.202 125.441);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.015 119.325);
  --foreground: oklch(0.988 0.004 119.376);
  --muted: oklch(0.227 0.015 120.427);
  --muted-foreground: oklch(0.808 0.004 119.381);
  --popover: oklch(0.159 0.017 120.499);
  --popover-foreground: oklch(0.994 0.002 119.34);
  --card: oklch(0.159 0.017 120.499);
  --card-foreground: oklch(0.994 0.002 119.34);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.826 0.197 125.22);
  --primary-foreground: oklch(0.289 0.062 123.976);
  --secondary: oklch(0.231 0.019 120.772);
  --secondary-foreground: oklch(0.798 0.043 120.237);
  --accent: oklch(0.348 0.044 121.585);
  --accent-foreground: oklch(0.868 0.04 120.098);
  --destructive: oklch(0.585 0.219 31.998);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.826 0.197 125.22);
  --chart-1: oklch(0.826 0.197 125.22);
  --chart-2: oklch(0.231 0.019 120.772);
  --chart-3: oklch(0.348 0.044 121.585);
  --chart-4: oklch(0.268 0.024 120.892);
  --chart-5: oklch(0.836 0.202 125.441);
}