Mule for shadcn/ui

Mule is a shadcn/ui theme built around a vivid yellow primary color (#ae8d09) with vivid purple accents (#8d09ae). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid yellow primary (#ae8d09) on a yellow-tinted background (#0a0905).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0a0905black
Foreground
#000000black
#fdfdfbsnow
Card
#fcfaf2floralwhite
#0d0c07black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfaf2floralwhite
#0d0c07black
Popover foreground
#000000black
#ffffffwhite
Primary
#ae8d09darkgoldenrod
#ae8d09darkgoldenrod
Primary foreground
#000000black
#000000black
Secondary
#09ae8ddarkcyan
#09ae8ddarkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dce4e3gainsboro
#1b2321black
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#8d09aedarkmagenta
#8d09aedarkmagenta
Accent foreground
#faecfelavenderblush
#faecfelavenderblush
Destructive
#bc1a01firebrick
#f42201red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ae8d09darkgoldenrod
#ae8d09darkgoldenrod

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.16:1AAA
Primary button6.64:1AA
Secondary button2.80:1Fail
Muted text5.19:1AA
Accent6.62:1AA
Destructive6.40:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.64:1AA
Secondary button2.80:1Fail
Muted text6.38:1AA
Accent6.62:1AA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 95.12);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.914 0.009 182.92);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.986 0.011 95.162);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.011 95.162);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.657 0.132 91.851);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.671 0.128 172.622);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.479 0.228 317.201);
  --accent-foreground: oklch(0.959 0.029 319.453);
  --destructive: oklch(0.508 0.196 31.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.132 91.851);
  --chart-1: oklch(0.657 0.132 91.851);
  --chart-2: oklch(0.671 0.128 172.622);
  --chart-3: oklch(0.479 0.228 317.201);
  --chart-4: oklch(0.712 0.136 172.527);
  --chart-5: oklch(0.663 0.134 91.544);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.01 97.674);
  --foreground: oklch(0.994 0.002 95.059);
  --muted: oklch(0.246 0.012 181.811);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.155 0.011 96.405);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.011 96.405);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.657 0.132 91.851);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.671 0.128 172.622);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.479 0.228 317.201);
  --accent-foreground: oklch(0.959 0.029 319.453);
  --destructive: oklch(0.616 0.24 30.914);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.132 91.851);
  --chart-1: oklch(0.657 0.132 91.851);
  --chart-2: oklch(0.671 0.128 172.622);
  --chart-3: oklch(0.479 0.228 317.201);
  --chart-4: oklch(0.712 0.136 172.527);
  --chart-5: oklch(0.663 0.134 91.544);
}