Mad for shadcn/ui

Mad is a shadcn/ui theme built around a red primary color (#bf8889) with muted light red accents (#e2cfd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#bf8889) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#050101black
#f9f5f5whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#050101black
#f9f5f5whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#050101black
#f9f5f5whitesmoke
Primary
#bf8889rosybrown
#bf8889rosybrown
Primary foreground
#0d0707black
#0d0707black
Secondary
#eae1e1gainsboro
#181616black
Secondary foreground
#5a3f3fdarkolivegreen
#b3adaddarkgray
Muted
#eeddddgainsboro
#221111black
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#e2cfd0lightgrey
#372a2adarkslategray
Accent foreground
#503030darkslategray
#d1c2c2silver
Destructive
#8a2b05saddlebrown
#f65313orangered
Destructive foreground
#fdd4c4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bf8889rosybrown
#bf8889rosybrown

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.72:1AA
Secondary button7.37:1AAA
Muted text5.96:1AA
Accent7.80:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button6.72:1AA
Secondary button8.15:1AAA
Muted text8.08:1AAA
Accent8.01:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.078 0.021 21.333);
  --muted: oklch(0.911 0.019 16.336);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.078 0.021 21.333);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.078 0.021 21.333);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.68 0.068 17.884);
  --primary-foreground: oklch(0.139 0.012 17.386);
  --secondary: oklch(0.917 0.01 16.167);
  --secondary-foreground: oklch(0.398 0.039 17.836);
  --accent: oklch(0.871 0.021 16.412);
  --accent-foreground: oklch(0.348 0.047 18.65);
  --destructive: oklch(0.429 0.136 38.087);
  --destructive-foreground: oklch(0.901 0.051 42.724);
  --ring: oklch(0.68 0.068 17.884);
  --chart-1: oklch(0.68 0.068 17.884);
  --chart-2: oklch(0.917 0.01 16.167);
  --chart-3: oklch(0.871 0.021 16.412);
  --chart-4: oklch(0.942 0.007 16.104);
  --chart-5: oklch(0.677 0.075 18.116);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.004 16.054);
  --muted: oklch(0.202 0.028 18.781);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.004 16.054);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.004 16.054);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.68 0.068 17.884);
  --primary-foreground: oklch(0.139 0.012 17.386);
  --secondary: oklch(0.202 0.003 16.231);
  --secondary-foreground: oklch(0.752 0.007 16.144);
  --accent: oklch(0.299 0.02 17.231);
  --accent-foreground: oklch(0.826 0.017 16.339);
  --destructive: oklch(0.661 0.209 37.955);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.068 17.884);
  --chart-1: oklch(0.68 0.068 17.884);
  --chart-2: oklch(0.202 0.003 16.231);
  --chart-3: oklch(0.299 0.02 17.231);
  --chart-4: oklch(0.235 0.004 16.259);
  --chart-5: oklch(0.677 0.075 18.116);
}