Mutt for shadcn/ui

Mutt is a shadcn/ui theme built around a vivid deep violet primary color (#240448) with vivid deep green accents (#294804). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid deep violet primary (#240448) on a violet-tinted background (#07050b).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#07050bblack
Foreground
#0a0411black
#fcfbfdsnow
Card
#faf8fcghostwhite
#07050bblack
Card foreground
#0a0411black
#fcfbfdsnow
Popover
#faf8fcghostwhite
#07050bblack
Popover foreground
#0a0411black
#fcfbfdsnow
Primary
#240448midnightblue
#240448midnightblue
Primary foreground
#bb87f8plum
#bb87f8plum
Secondary
#294804darkgreen
#294804darkgreen
Secondary foreground
#93f226greenyellow
#93f226greenyellow
Muted
#e6e8e3gainsboro
#1a1c17black
Muted foreground
#5c6057dimgray
#a4a89fdarkgray
Accent
#294804darkgreen
#294804darkgreen
Accent foreground
#93f226greenyellow
#93f226greenyellow
Destructive
#75120bmaroon
#eb3a2dcrimson
Destructive foreground
#f8bdb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#240448midnightblue
#240448midnightblue

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button6.68:1AA
Secondary button7.37:1AAA
Muted text5.20:1AA
Accent7.37:1AAA
Destructive7.04:1AAA
Dark mode
Text on background19.67:1AAA
Text on card19.67:1AAA
Primary button6.68:1AA
Secondary button7.37:1AAA
Muted text7.10:1AAA
Accent7.37:1AAA
Destructive4.04:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 307.051);
  --foreground: oklch(0.127 0.033 306.807);
  --muted: oklch(0.928 0.007 127.208);
  --muted-foreground: oklch(0.484 0.015 127.506);
  --popover: oklch(0.982 0.005 307.051);
  --popover-foreground: oklch(0.127 0.033 306.807);
  --card: oklch(0.982 0.005 307.051);
  --card-foreground: oklch(0.127 0.033 306.807);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.226 0.113 297.337);
  --primary-foreground: oklch(0.719 0.167 304.056);
  --secondary: oklch(0.364 0.099 132.68);
  --secondary-foreground: oklch(0.869 0.235 132.899);
  --accent: oklch(0.364 0.099 132.68);
  --accent-foreground: oklch(0.869 0.235 132.899);
  --destructive: oklch(0.364 0.134 29.443);
  --destructive-foreground: oklch(0.852 0.069 23.295);
  --ring: oklch(0.226 0.113 297.337);
  --chart-1: oklch(0.226 0.113 297.337);
  --chart-2: oklch(0.364 0.099 132.68);
  --chart-3: oklch(0.364 0.099 132.68);
  --chart-4: oklch(0.411 0.113 133.011);
  --chart-5: oklch(0.225 0.116 296.916);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.017 308.014);
  --foreground: oklch(0.991 0.003 307.077);
  --muted: oklch(0.222 0.01 127.693);
  --muted-foreground: oklch(0.725 0.014 127.349);
  --popover: oklch(0.122 0.017 308.014);
  --popover-foreground: oklch(0.991 0.003 307.077);
  --card: oklch(0.122 0.017 308.014);
  --card-foreground: oklch(0.991 0.003 307.077);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.226 0.113 297.337);
  --primary-foreground: oklch(0.719 0.167 304.056);
  --secondary: oklch(0.364 0.099 132.68);
  --secondary-foreground: oklch(0.869 0.235 132.899);
  --accent: oklch(0.364 0.099 132.68);
  --accent-foreground: oklch(0.869 0.235 132.899);
  --destructive: oklch(0.619 0.216 29.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.226 0.113 297.337);
  --chart-1: oklch(0.226 0.113 297.337);
  --chart-2: oklch(0.364 0.099 132.68);
  --chart-3: oklch(0.364 0.099 132.68);
  --chart-4: oklch(0.411 0.113 133.011);
  --chart-5: oklch(0.225 0.116 296.916);
}