Mandolin for shadcn/ui

Mandolin is a shadcn/ui theme built around a muted yellow primary color (#c5c5b4) with muted purple accents (#c5b4c5). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted yellow primary (#c5c5b4) on a yellow-tinted background (#100f05).

Color palette

TokenLightDark
Background
#fefefbwhite
#100f05black
Foreground
#0d0c03black
#fbfbf8snow
Card
#fcfcf7snow
#141306black
Card foreground
#080802black
#fdfdfcwhite
Popover
#fcfcf7snow
#141306black
Popover foreground
#080802black
#fdfdfcwhite
Primary
#c5c5b4silver
#c5c5b4silver
Primary foreground
#28281fdarkslategray
#28281fdarkslategray
Secondary
#b4c5c5silver
#b4c5c5silver
Secondary foreground
#1f2828darkslategray
#1f2828darkslategray
Muted
#dfececlavender
#132020black
Muted foreground
#3c4848darkslategray
#b7c3c2silver
Accent
#c5b4c5silver
#c5b4c5silver
Accent foreground
#281f28darkslategray
#281f28darkslategray
Destructive
#7a2700saddlebrown
#ff661ftomato
Destructive foreground
#ffc7adpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5c5b4silver
#c5c5b4silver

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.56:1AAA
Primary button8.49:1AAA
Secondary button8.44:1AAA
Muted text7.85:1AAA
Accent8.13:1AAA
Destructive6.61:1AA
Dark mode
Text on background18.51:1AAA
Text on card18.32:1AAA
Primary button8.49:1AAA
Secondary button8.44:1AAA
Muted text9.21:1AAA
Accent8.13:1AAA
Destructive7.15:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 104.865);
  --foreground: oklch(0.153 0.024 107.511);
  --muted: oklch(0.934 0.015 194.499);
  --muted-foreground: oklch(0.392 0.015 194.066);
  --popover: oklch(0.991 0.006 104.922);
  --popover-foreground: oklch(0.133 0.02 107.66);
  --card: oklch(0.991 0.006 104.922);
  --card-foreground: oklch(0.133 0.02 107.66);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.818 0.023 105.285);
  --primary-foreground: oklch(0.274 0.016 105.773);
  --secondary: oklch(0.811 0.019 194.359);
  --secondary-foreground: oklch(0.269 0.013 193.9);
  --accent: oklch(0.789 0.03 324.86);
  --accent-foreground: oklch(0.254 0.022 325.14);
  --destructive: oklch(0.396 0.124 40.078);
  --destructive-foreground: oklch(0.874 0.073 46.079);
  --ring: oklch(0.818 0.023 105.285);
  --chart-1: oklch(0.818 0.023 105.285);
  --chart-2: oklch(0.811 0.019 194.359);
  --chart-3: oklch(0.789 0.03 324.86);
  --chart-4: oklch(0.833 0.017 194.42);
  --chart-5: oklch(0.823 0.028 105.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.167 0.022 107.021);
  --foreground: oklch(0.988 0.004 104.875);
  --muted: oklch(0.232 0.019 193.279);
  --muted-foreground: oklch(0.807 0.013 194.487);
  --popover: oklch(0.184 0.025 106.988);
  --popover-foreground: oklch(0.994 0.002 104.841);
  --card: oklch(0.184 0.025 106.988);
  --card-foreground: oklch(0.994 0.002 104.841);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.818 0.023 105.285);
  --primary-foreground: oklch(0.274 0.016 105.773);
  --secondary: oklch(0.811 0.019 194.359);
  --secondary-foreground: oklch(0.269 0.013 193.9);
  --accent: oklch(0.789 0.03 324.86);
  --accent-foreground: oklch(0.254 0.022 325.14);
  --destructive: oklch(0.696 0.201 41.115);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.818 0.023 105.285);
  --chart-1: oklch(0.818 0.023 105.285);
  --chart-2: oklch(0.811 0.019 194.359);
  --chart-3: oklch(0.789 0.03 324.86);
  --chart-4: oklch(0.833 0.017 194.42);
  --chart-5: oklch(0.823 0.028 105.386);
}