Moustache for shadcn/ui

Moustache is a shadcn/ui theme built around a light purple primary color (#f4d1f5) with light teal accents (#d1f5f4). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#f4d1f5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#140515black
#fcf8fcsnow
Card
#fdf7fdsnow
#030303black
Card foreground
#100411black
#fdfbfdsnow
Popover
#fdf7fdsnow
#030303black
Popover foreground
#100411black
#fdfbfdsnow
Primary
#f4d1f5lavender
#f4d1f5lavender
Primary foreground
#771a7apurple
#771a7apurple
Secondary
#f5f4d1lightgoldenrodyellow
#f5f4d1lightgoldenrodyellow
Secondary foreground
#262508black
#262508black
Muted
#e7e6dagainsboro
#252418black
Muted foreground
#63624bdimgray
#b4b49cdarkgray
Accent
#d1f5f4lightcyan
#d1f5f4lightcyan
Accent foreground
#082625black
#082625black
Destructive
#7c0a04maroon
#f8180dred
Destructive foreground
#fdb8b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4d1f5lavender
#f4d1f5lavender

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card18.98:1AAA
Primary button6.89:1AA
Secondary button13.87:1AAA
Muted text4.95:1AA
Accent13.76:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.97:1AAA
Text on card20.08:1AAA
Primary button6.89:1AA
Secondary button13.87:1AAA
Muted text7.38:1AAA
Accent13.76:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 324.649);
  --foreground: oklch(0.151 0.043 326.264);
  --muted: oklch(0.922 0.016 105.104);
  --muted-foreground: oklch(0.49 0.036 106.001);
  --popover: oklch(0.982 0.01 324.68);
  --popover-foreground: oklch(0.137 0.038 326.283);
  --card: oklch(0.982 0.01 324.68);
  --card-foreground: oklch(0.137 0.038 326.283);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.062 325.044);
  --primary-foreground: oklch(0.415 0.168 326.599);
  --secondary: oklch(0.959 0.046 105.613);
  --secondary-foreground: oklch(0.258 0.045 107.305);
  --accent: oklch(0.944 0.038 194.054);
  --accent-foreground: oklch(0.246 0.035 192.029);
  --destructive: oklch(0.373 0.146 29.695);
  --destructive-foreground: oklch(0.846 0.08 22.296);
  --ring: oklch(0.9 0.062 325.044);
  --chart-1: oklch(0.9 0.062 325.044);
  --chart-2: oklch(0.959 0.046 105.613);
  --chart-3: oklch(0.944 0.038 194.054);
  --chart-4: oklch(0.97 0.034 105.397);
  --chart-5: oklch(0.9 0.065 325.063);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.007 324.662);
  --muted: oklch(0.258 0.021 106.129);
  --muted-foreground: oklch(0.763 0.033 105.527);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.003 324.64);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.003 324.64);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0.062 325.044);
  --primary-foreground: oklch(0.415 0.168 326.599);
  --secondary: oklch(0.959 0.046 105.613);
  --secondary-foreground: oklch(0.258 0.045 107.305);
  --accent: oklch(0.944 0.038 194.054);
  --accent-foreground: oklch(0.246 0.035 192.029);
  --destructive: oklch(0.62 0.246 29.49);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.062 325.044);
  --chart-1: oklch(0.9 0.062 325.044);
  --chart-2: oklch(0.959 0.046 105.613);
  --chart-3: oklch(0.944 0.038 194.054);
  --chart-4: oklch(0.97 0.034 105.397);
  --chart-5: oklch(0.9 0.065 325.063);
}