Bandanna for shadcn/ui

Bandanna is a shadcn/ui theme built around a green primary color (#5cd689) with muted light green accents (#e6eae7). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#5cd689) on a green-tinted background (#060e09).

Color palette

TokenLightDark
Background
#fbfefcwhite
#060e09black
Foreground
#04160ablack
#f6f8f7whitesmoke
Card
#fbfefcwhite
#060e09black
Card foreground
#04160ablack
#f6f8f7whitesmoke
Popover
#fbfefcwhite
#060e09black
Popover foreground
#04160ablack
#f6f8f7whitesmoke
Primary
#5cd689mediumaquamarine
#5cd689mediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#e6eae7lavender
#181b19black
Secondary foreground
#47574ddarkslategray
#aeb7b1darkgray
Muted
#f1f3f2whitesmoke
#0c0e0cblack
Muted foreground
#454545darkslategray
#bababasilver
Accent
#e6eae7lavender
#181b19black
Accent foreground
#47574ddarkslategray
#aeb7b1darkgray
Destructive
#ce0f09firebrick
#f5170fred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5cd689mediumaquamarine
#5cd689mediumaquamarine

Contrast

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

Light mode
Text on background18.39:1AAA
Text on card18.39:1AAA
Primary button11.45:1AAA
Secondary button6.32:1AA
Muted text8.62:1AAA
Accent6.32:1AA
Destructive5.69:1AA
Dark mode
Text on background18.30:1AAA
Text on card18.30:1AAA
Primary button11.45:1AAA
Secondary button8.43:1AAA
Muted text9.99:1AAA
Accent8.43:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 158.627);
  --foreground: oklch(0.179 0.035 155.118);
  --muted: oklch(0.963 0.003 158.658);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.994 0.004 158.627);
  --popover-foreground: oklch(0.179 0.035 155.118);
  --card: oklch(0.994 0.004 158.627);
  --card-foreground: oklch(0.179 0.035 155.118);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.788 0.156 153.066);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.934 0.006 158.574);
  --secondary-foreground: oklch(0.44 0.026 157.393);
  --accent: oklch(0.934 0.006 158.574);
  --accent-foreground: oklch(0.44 0.026 157.393);
  --destructive: oklch(0.538 0.215 29.261);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.156 153.066);
  --chart-1: oklch(0.788 0.156 153.066);
  --chart-2: oklch(0.934 0.006 158.574);
  --chart-3: oklch(0.934 0.006 158.574);
  --chart-4: oklch(0.956 0.004 158.626);
  --chart-5: oklch(0.794 0.163 152.798);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.017 157.521);
  --foreground: oklch(0.978 0.003 158.656);
  --muted: oklch(0.16 0.004 158.126);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.154 0.017 157.521);
  --popover-foreground: oklch(0.978 0.003 158.656);
  --card: oklch(0.154 0.017 157.521);
  --card-foreground: oklch(0.978 0.003 158.656);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.788 0.156 153.066);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.218 0.006 158.116);
  --secondary-foreground: oklch(0.771 0.013 158.348);
  --accent: oklch(0.218 0.006 158.116);
  --accent-foreground: oklch(0.771 0.013 158.348);
  --destructive: oklch(0.615 0.245 29.214);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.156 153.066);
  --chart-1: oklch(0.788 0.156 153.066);
  --chart-2: oklch(0.218 0.006 158.116);
  --chart-3: oklch(0.218 0.006 158.116);
  --chart-4: oklch(0.252 0.007 158.063);
  --chart-5: oklch(0.794 0.163 152.798);
}