Mousse for shadcn/ui

Mousse is a shadcn/ui theme built around a deep blue primary color (#090c2a) with deep yellow accents (#2a2709). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep blue primary (#090c2a) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#010104black
Foreground
#010104black
#f7f7f8whitesmoke
Card
#f6f7fdghostwhite
#020308black
Card foreground
#000000black
#f9f9faghostwhite
Popover
#f6f7fdghostwhite
#020308black
Popover foreground
#000000black
#f9f9faghostwhite
Primary
#090c2ablack
#090c2ablack
Primary foreground
#818be4cornflowerblue
#818be4cornflowerblue
Secondary
#2a2709black
#2a2709black
Secondary foreground
#d2c22dgoldenrod
#d2c22dgoldenrod
Muted
#e0ded2gainsboro
#2d2c1fdarkslategray
Muted foreground
#5f5e53dimgray
#acaba0darkgray
Accent
#2a2709black
#2a2709black
Accent foreground
#d2c22dgoldenrod
#d2c22dgoldenrod
Destructive
#6b2c0asaddlebrown
#ec7636tomato
Destructive foreground
#f8c9b0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090c2ablack
#090c2ablack

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card19.67:1AAA
Primary button6.14:1AA
Secondary button8.27:1AAA
Muted text4.84:1AA
Accent8.27:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.43:1AAA
Text on card19.60:1AAA
Primary button6.14:1AA
Secondary button8.27:1AAA
Muted text6.10:1AA
Accent8.27:1AAA
Destructive7.22:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 281.218);
  --foreground: oklch(0.076 0.016 274.282);
  --muted: oklch(0.899 0.017 101.577);
  --muted-foreground: oklch(0.48 0.018 101.843);
  --popover: oklch(0.978 0.008 281.147);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.008 281.147);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.174 0.06 273.572);
  --primary-foreground: oklch(0.666 0.133 277.354);
  --secondary: oklch(0.268 0.046 102.982);
  --secondary-foreground: oklch(0.803 0.157 102.615);
  --accent: oklch(0.268 0.046 102.982);
  --accent-foreground: oklch(0.803 0.157 102.615);
  --destructive: oklch(0.378 0.1 44.443);
  --destructive-foreground: oklch(0.87 0.063 49.802);
  --ring: oklch(0.174 0.06 273.572);
  --chart-1: oklch(0.174 0.06 273.572);
  --chart-2: oklch(0.268 0.046 102.982);
  --chart-3: oklch(0.268 0.046 102.982);
  --chart-4: oklch(0.314 0.056 102.93);
  --chart-5: oklch(0.173 0.063 272.981);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.078 0.015 274.982);
  --foreground: oklch(0.975 0.002 281.254);
  --muted: oklch(0.29 0.022 102.342);
  --muted-foreground: oklch(0.738 0.016 101.622);
  --popover: oklch(0.098 0.019 274.982);
  --popover-foreground: oklch(0.984 0.001 281.265);
  --card: oklch(0.098 0.019 274.982);
  --card-foreground: oklch(0.984 0.001 281.265);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.174 0.06 273.572);
  --primary-foreground: oklch(0.666 0.133 277.354);
  --secondary: oklch(0.268 0.046 102.982);
  --secondary-foreground: oklch(0.803 0.157 102.615);
  --accent: oklch(0.268 0.046 102.982);
  --accent-foreground: oklch(0.803 0.157 102.615);
  --destructive: oklch(0.693 0.164 46.095);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.174 0.06 273.572);
  --chart-1: oklch(0.174 0.06 273.572);
  --chart-2: oklch(0.268 0.046 102.982);
  --chart-3: oklch(0.268 0.046 102.982);
  --chart-4: oklch(0.314 0.056 102.93);
  --chart-5: oklch(0.173 0.063 272.981);
}