Mule for shadcn/ui

Mule is a shadcn/ui theme built around a deep red primary color (#5b1522) with muted light red accents (#d5cdcd). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep red primary (#5b1522) on a neutral background (#080203).

Color palette

TokenLightDark
Background
#fefbfcsnow
#080203black
Foreground
#100507black
#fbf9f9snow
Card
#fefbfcsnow
#080203black
Card foreground
#100507black
#fbf9f9snow
Popover
#fefbfcsnow
#080203black
Popover foreground
#100507black
#fbf9f9snow
Primary
#5b1522maroon
#5b1522maroon
Primary foreground
#eeb4bflightpink
#eeb4bflightpink
Secondary
#e6e6e6gainsboro
#2a2324darkslategray
Secondary foreground
#4d4d4ddarkslategray
#c5babcsilver
Muted
#ebd1d1gainsboro
#2e1419black
Muted foreground
#544545darkslategray
#baabaedarkgray
Accent
#d5cdcdlightgrey
#3f2c2fdarkslategray
Accent foreground
#3d3434darkslategray
#d7c6c9thistle
Destructive
#a54312saddlebrown
#e86a2cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5b1522maroon
#5b1522maroon

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button7.55:1AAA
Secondary button6.74:1AA
Muted text6.27:1AA
Accent7.75:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button7.55:1AAA
Secondary button8.17:1AAA
Muted text7.73:1AAA
Accent7.94:1AAA
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 4.376);
  --foreground: oklch(0.134 0.022 5.816);
  --muted: oklch(0.881 0.03 17.729);
  --muted-foreground: oklch(0.406 0.021 18.053);
  --popover: oklch(0.991 0.002 4.376);
  --popover-foreground: oklch(0.134 0.022 5.816);
  --card: oklch(0.991 0.002 4.376);
  --card-foreground: oklch(0.134 0.022 5.816);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.32 0.102 14.745);
  --primary-foreground: oklch(0.826 0.068 6.46);
  --secondary: oklch(0.923 0 153.435);
  --secondary-foreground: oklch(0.418 0 173.29);
  --accent: oklch(0.856 0.008 17.316);
  --accent-foreground: oklch(0.333 0.013 17.816);
  --destructive: oklch(0.509 0.141 42.706);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.32 0.102 14.745);
  --chart-1: oklch(0.32 0.102 14.745);
  --chart-2: oklch(0.923 0 153.435);
  --chart-3: oklch(0.856 0.008 17.316);
  --chart-4: oklch(0.947 0 180);
  --chart-5: oklch(0.321 0.106 15.371);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.019 4.735);
  --foreground: oklch(0.984 0.002 4.366);
  --muted: oklch(0.232 0.044 9.415);
  --muted-foreground: oklch(0.755 0.018 4.94);
  --popover: oklch(0.104 0.019 4.735);
  --popover-foreground: oklch(0.984 0.002 4.366);
  --card: oklch(0.104 0.019 4.735);
  --card-foreground: oklch(0.984 0.002 4.366);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.32 0.102 14.745);
  --primary-foreground: oklch(0.826 0.068 6.46);
  --secondary: oklch(0.264 0.011 5.367);
  --secondary-foreground: oklch(0.797 0.013 4.751);
  --accent: oklch(0.317 0.029 6.694);
  --accent-foreground: oklch(0.841 0.02 4.937);
  --destructive: oklch(0.668 0.172 43.964);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.32 0.102 14.745);
  --chart-1: oklch(0.32 0.102 14.745);
  --chart-2: oklch(0.264 0.011 5.367);
  --chart-3: oklch(0.317 0.029 6.694);
  --chart-4: oklch(0.294 0.012 5.418);
  --chart-5: oklch(0.321 0.106 15.371);
}