FunkyDrummer for shadcn/ui

FunkyDrummer is a shadcn/ui theme built around a red primary color (#a93232) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the red primary (#a93232) on a neutral background (#fafafa).

Color palette

TokenLightDark
Background
#fafafasnow
#fafafasnow
Foreground
#000000black
#000000black
Card
#f5f5f5whitesmoke
#f5f5f5whitesmoke
Card foreground
#000000black
#000000black
Popover
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Popover foreground
#000000black
#000000black
Primary
#a93232brown
#a93232brown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2acactan
#d2acactan
Secondary foreground
#321b1bblack
#321b1bblack
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d4d4d4lightgrey
#d4d4d4lightgrey
Accent foreground
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Destructive
#611305maroon
#611305maroon
Destructive foreground
#faac9elightpink
#faac9elightpink
Border
#edededwhitesmoke
#edededwhitesmoke
Input
#e6e6e6gainsboro
#e6e6e6gainsboro
Ring
#a93232brown
#a93232brown

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card19.22:1AAA
Primary button6.57:1AA
Secondary button7.84:1AAA
Muted text7.22:1AAA
Accent7.53:1AAA
Destructive7.14:1AAA
Dark mode
Text on background20.10:1AAA
Text on card19.22:1AAA
Primary button6.57:1AA
Secondary button7.84:1AAA
Muted text7.22:1AAA
Accent7.53:1AAA
Destructive7.14:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.962 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.947 0 180);
  --input: oklch(0.923 0 153.435);
  --primary: oklch(0.497 0.155 24.749);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.779 0.045 18.157);
  --secondary-foreground: oklch(0.252 0.037 19.95);
  --accent: oklch(0.869 0 165.964);
  --accent-foreground: oklch(0.351 0 167.471);
  --destructive: oklch(0.325 0.114 32.575);
  --destructive-foreground: oklch(0.815 0.096 30.335);
  --ring: oklch(0.497 0.155 24.749);
  --chart-1: oklch(0.497 0.155 24.749);
  --chart-2: oklch(0.779 0.045 18.157);
  --chart-3: oklch(0.869 0 165.964);
  --chart-4: oklch(0.806 0.039 17.989);
  --chart-5: oklch(0.499 0.162 25.241);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.985 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.962 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.947 0 180);
  --input: oklch(0.923 0 153.435);
  --primary: oklch(0.497 0.155 24.749);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.779 0.045 18.157);
  --secondary-foreground: oklch(0.252 0.037 19.95);
  --accent: oklch(0.869 0 165.964);
  --accent-foreground: oklch(0.351 0 167.471);
  --destructive: oklch(0.325 0.114 32.575);
  --destructive-foreground: oklch(0.815 0.096 30.335);
  --ring: oklch(0.497 0.155 24.749);
  --chart-1: oklch(0.497 0.155 24.749);
  --chart-2: oklch(0.779 0.045 18.157);
  --chart-3: oklch(0.869 0 165.964);
  --chart-4: oklch(0.806 0.039 17.989);
  --chart-5: oklch(0.499 0.162 25.241);
}