Dangerous Banana Bandanna for shadcn/ui

Dangerous Banana Bandanna is a shadcn/ui theme built around a vivid yellow primary color (#f5f236) with light green accents (#dce2ab). The light mode uses a neutral background (#fffff5). Dark mode switches to a light cyan primary (#abdce2) on a neutral background (#030708).

Color palette

TokenLightDark
Background
#fffff5ivory
#030708black
Foreground
#010404black
#f5f9f9whitesmoke
Card
#fffde3lightyellow
#030708black
Card foreground
#010404black
#f5f9f9whitesmoke
Popover
#f8fcfcmintcream
#030708black
Popover foreground
#010404black
#f5f9f9whitesmoke
Primary
#f5f236yellow
#abdce2lightblue
Primary foreground
#000000black
#173f44darkslategray
Secondary
#fda5f3violet
#e2abdcplum
Secondary foreground
#44173fdarkslategray
#44173fdarkslategray
Muted
#f1f0dfbeige
#200e1eblack
Muted foreground
#534651darkslategray
#b9acb7darkgray
Accent
#dce2abpalegoldenrod
#dce2abpalegoldenrod
Accent foreground
#3f4417darkolivegreen
#3f4417darkolivegreen
Destructive
#b42404firebrick
#e62e05orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e8e9lavender
#191a1ablack
Input
#e8e8e9lavender
#191a1ablack
Ring
#abdce2lightblue
#abdce2lightblue

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.05:1AAA
Primary button17.59:1AAA
Secondary button8.24:1AAA
Muted text7.74:1AAA
Accent7.58:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button7.68:1AAA
Secondary button7.73:1AAA
Muted text8.44:1AAA
Accent7.58:1AAA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.997 0.013 107.509);
  --foreground: oklch(0.097 0.01 203.48);
  --muted: oklch(0.952 0.023 104.03);
  --muted-foreground: oklch(0.412 0.024 329.79);
  --popover: oklch(0.987 0.004 206.416);
  --popover-foreground: oklch(0.097 0.01 203.48);
  --card: oklch(0.99 0.034 104.201);
  --card-foreground: oklch(0.097 0.01 203.48);
  --border: oklch(0.932 0.001 206.435);
  --input: oklch(0.932 0.001 206.435);
  --primary: oklch(0.933 0.189 108.398);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.834 0.141 330.966);
  --secondary-foreground: oklch(0.293 0.089 332.358);
  --accent: oklch(0.896 0.072 113.275);
  --accent-foreground: oklch(0.372 0.066 115.257);
  --destructive: oklch(0.5 0.183 32.755);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.051 206.257);
  --chart-1: oklch(0.933 0.189 108.398);
  --chart-2: oklch(0.834 0.141 330.966);
  --chart-3: oklch(0.896 0.072 113.275);
  --chart-4: oklch(0.859 0.118 330.63);
  --chart-5: oklch(0.942 0.193 108.407);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.011 203.89);
  --foreground: oklch(0.979 0.004 206.417);
  --muted: oklch(0.198 0.042 331.401);
  --muted-foreground: oklch(0.759 0.021 329.444);
  --popover: oklch(0.122 0.011 203.89);
  --popover-foreground: oklch(0.979 0.004 206.417);
  --card: oklch(0.122 0.011 203.89);
  --card-foreground: oklch(0.979 0.004 206.417);
  --border: oklch(0.216 0.001 206.402);
  --input: oklch(0.216 0.001 206.402);
  --primary: oklch(0.863 0.051 206.257);
  --primary-foreground: oklch(0.342 0.045 207.052);
  --secondary: oklch(0.808 0.09 330.367);
  --secondary-foreground: oklch(0.293 0.089 332.358);
  --accent: oklch(0.896 0.072 113.275);
  --accent-foreground: oklch(0.372 0.066 115.257);
  --destructive: oklch(0.598 0.222 32.439);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.051 206.257);
  --chart-1: oklch(0.863 0.051 206.257);
  --chart-2: oklch(0.808 0.09 330.367);
  --chart-3: oklch(0.896 0.072 113.275);
  --chart-4: oklch(0.834 0.078 330.168);
  --chart-5: oklch(0.865 0.054 206.261);
}