Mousse for shadcn/ui

Mousse is a shadcn/ui theme built around a red primary color (#cd7070) with neutral gray accents (#d6d1d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#cd7070) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#ffffffwhite
#080202black
Foreground
#090202black
#faf4f4whitesmoke
Card
#fcfcfcsnow
#0c0404black
Card foreground
#040101black
#fcf8f8snow
Popover
#fcfcfcsnow
#0c0404black
Popover foreground
#040101black
#fcf8f8snow
Primary
#cd7070indianred
#cd7070indianred
Primary foreground
#080303black
#080303black
Secondary
#d6d1d1lightgrey
#281b1bblack
Secondary foreground
#3e3737darkslategray
#c8acacsilver
Muted
#f0e0e0mistyrose
#1f0f0fblack
Muted foreground
#4c4343darkslategray
#bcb3b3silver
Accent
#d6d1d1lightgrey
#281b1bblack
Accent foreground
#3e3737darkslategray
#c8acacsilver
Destructive
#6b1405maroon
#f42e0borangered
Destructive foreground
#fbb4a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cd7070indianred
#cd7070indianred

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.34:1AAA
Primary button5.96:1AA
Secondary button7.70:1AAA
Muted text7.50:1AAA
Accent7.70:1AAA
Destructive7.03:1AAA
Dark mode
Text on background18.90:1AAA
Text on card19.30:1AAA
Primary button5.96:1AA
Secondary button7.91:1AAA
Muted text9.03:1AAA
Accent7.91:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.023 21.939);
  --muted: oklch(0.92 0.018 17.478);
  --muted-foreground: oklch(0.392 0.012 17.663);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.08 0.018 21.939);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.08 0.018 21.939);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.118 20.806);
  --primary-foreground: oklch(0.106 0.015 19.87);
  --secondary: oklch(0.865 0.006 17.268);
  --secondary-foreground: oklch(0.345 0.01 17.644);
  --accent: oklch(0.865 0.006 17.268);
  --accent-foreground: oklch(0.345 0.01 17.644);
  --destructive: oklch(0.346 0.123 32.41);
  --destructive-foreground: oklch(0.833 0.085 30.181);
  --ring: oklch(0.649 0.118 20.806);
  --chart-1: oklch(0.649 0.118 20.806);
  --chart-2: oklch(0.865 0.006 17.268);
  --chart-3: oklch(0.865 0.006 17.268);
  --chart-4: oklch(0.889 0.005 17.245);
  --chart-5: oklch(0.647 0.125 21.106);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.017 20.398);
  --foreground: oklch(0.973 0.006 17.264);
  --muted: oklch(0.191 0.027 19.914);
  --muted-foreground: oklch(0.775 0.01 17.367);
  --popover: oklch(0.119 0.02 20.423);
  --popover-foreground: oklch(0.982 0.004 17.228);
  --card: oklch(0.119 0.02 20.423);
  --card-foreground: oklch(0.982 0.004 17.228);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.118 20.806);
  --primary-foreground: oklch(0.106 0.015 19.87);
  --secondary: oklch(0.237 0.021 18.77);
  --secondary-foreground: oklch(0.77 0.032 17.87);
  --accent: oklch(0.237 0.021 18.77);
  --accent-foreground: oklch(0.77 0.032 17.87);
  --destructive: oklch(0.623 0.233 31.664);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.118 20.806);
  --chart-1: oklch(0.649 0.118 20.806);
  --chart-2: oklch(0.237 0.021 18.77);
  --chart-3: oklch(0.237 0.021 18.77);
  --chart-4: oklch(0.266 0.025 18.885);
  --chart-5: oklch(0.647 0.125 21.106);
}