Bandana for shadcn/ui

Bandana is a shadcn/ui theme built around a vivid green primary color (#17d964) with muted green accents (#b0c4b8). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#17d964) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030705black
Foreground
#03160bblack
#f8fcfamintcream
Card
#fbfefcwhite
#030705black
Card foreground
#03160bblack
#f8fcfamintcream
Popover
#fbfefcwhite
#030705black
Popover foreground
#03160bblack
#f8fcfamintcream
Primary
#17d964springgreen
#17d964springgreen
Primary foreground
#03200fblack
#03200fblack
Secondary
#c8d0cblightgrey
#131514black
Secondary foreground
#2f3732darkslategray
#a9b1addarkgray
Muted
#d8e8dfgainsboro
#17271dblack
Muted foreground
#435b4ddarkslategray
#a4bcaedarkgray
Accent
#b0c4b8silver
#212c25darkslategray
Accent foreground
#1c2620black
#b6c8bdsilver
Destructive
#6f290bsaddlebrown
#d54f15chocolate
Destructive foreground
#f8c9b5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#17d964springgreen
#17d964springgreen

Contrast

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

Light mode
Text on background18.40:1AAA
Text on card18.40:1AAA
Primary button9.15:1AAA
Secondary button7.77:1AAA
Muted text5.83:1AA
Accent8.51:1AAA
Destructive6.99:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button9.15:1AAA
Secondary button8.33:1AAA
Muted text7.76:1AAA
Accent8.29:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 160.141);
  --foreground: oklch(0.181 0.036 156.225);
  --muted: oklch(0.918 0.021 159.694);
  --muted-foreground: oklch(0.447 0.037 158.167);
  --popover: oklch(0.994 0.004 160.141);
  --popover-foreground: oklch(0.181 0.036 156.225);
  --card: oklch(0.994 0.004 160.141);
  --card-foreground: oklch(0.181 0.036 156.225);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.775 0.212 149.464);
  --primary-foreground: oklch(0.217 0.049 153.926);
  --secondary: oklch(0.85 0.01 159.969);
  --secondary-foreground: oklch(0.327 0.012 159.345);
  --accent: oklch(0.803 0.028 159.399);
  --accent-foreground: oklch(0.257 0.018 158.524);
  --destructive: oklch(0.38 0.107 40.707);
  --destructive-foreground: oklch(0.871 0.06 44.415);
  --ring: oklch(0.775 0.212 149.464);
  --chart-1: oklch(0.775 0.212 149.464);
  --chart-2: oklch(0.85 0.01 159.969);
  --chart-3: oklch(0.803 0.028 159.399);
  --chart-4: oklch(0.872 0.008 160.016);
  --chart-5: oklch(0.784 0.217 149.156);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 160.15);
  --foreground: oklch(0.987 0.004 160.133);
  --muted: oklch(0.253 0.028 157.34);
  --muted-foreground: oklch(0.773 0.033 159.223);
  --popover: oklch(0.121 0.012 160.15);
  --popover-foreground: oklch(0.987 0.004 160.133);
  --card: oklch(0.121 0.012 160.15);
  --card-foreground: oklch(0.987 0.004 160.133);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.775 0.212 149.464);
  --primary-foreground: oklch(0.217 0.049 153.926);
  --secondary: oklch(0.195 0.004 159.755);
  --secondary-foreground: oklch(0.754 0.011 159.882);
  --accent: oklch(0.279 0.019 158.573);
  --accent-foreground: oklch(0.817 0.024 159.53);
  --destructive: oklch(0.602 0.181 39.699);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.775 0.212 149.464);
  --chart-1: oklch(0.775 0.212 149.464);
  --chart-2: oklch(0.195 0.004 159.755);
  --chart-3: oklch(0.279 0.019 158.573);
  --chart-4: oklch(0.229 0.005 159.695);
  --chart-5: oklch(0.784 0.217 149.156);
}