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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 4.84:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 7.22:1 | AAA |
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);
}