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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 6.74:1 | AA |
| Muted text | 6.27:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.73:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.53:1 | AA |
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);
}