Mandolin for shadcn/ui

Mandolin is a shadcn/ui theme built around a muted deep indigo primary color (#3b365e) with muted deep green accents (#365e3b). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted deep indigo primary (#3b365e) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#020104black
Foreground
#030208black
#fcfcfdwhite
Card
#fcfcfdwhite
#020104black
Card foreground
#030208black
#fcfcfdwhite
Popover
#fcfcfdwhite
#020104black
Popover foreground
#030208black
#fcfcfdwhite
Primary
#3b365edarkslategray
#3b365edarkslategray
Primary foreground
#dddbebgainsboro
#dddbebgainsboro
Secondary
#5e3b36darkolivegreen
#5e3b36darkolivegreen
Secondary foreground
#ebdddbgainsboro
#ebdddbgainsboro
Muted
#ead5d2gainsboro
#2d1815black
Muted foreground
#554f4edarkslategray
#b1abaadarkgray
Accent
#365e3bdarkslategray
#365e3bdarkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#850705maroon
#e20c08red
Destructive foreground
#fdc0bflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b365edarkslategray
#3b365edarkslategray

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button8.21:1AAA
Secondary button7.35:1AAA
Muted text5.71:1AA
Accent7.45:1AAA
Destructive6.64:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button8.21:1AAA
Secondary button7.35:1AAA
Muted text7.37:1AAA
Accent7.45:1AAA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 292.497);
  --foreground: oklch(0.092 0.025 289.819);
  --muted: oklch(0.889 0.023 28.087);
  --muted-foreground: oklch(0.434 0.008 28.029);
  --popover: oklch(0.99 0.002 292.497);
  --popover-foreground: oklch(0.092 0.025 289.819);
  --card: oklch(0.99 0.002 292.497);
  --card-foreground: oklch(0.092 0.025 289.819);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.358 0.068 288.576);
  --primary-foreground: oklch(0.899 0.021 292.109);
  --secondary: oklch(0.393 0.05 29.11);
  --secondary-foreground: oklch(0.909 0.015 28.021);
  --accent: oklch(0.442 0.072 147.377);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.39 0.155 29.018);
  --destructive-foreground: oklch(0.862 0.07 19.727);
  --ring: oklch(0.358 0.068 288.576);
  --chart-1: oklch(0.358 0.068 288.576);
  --chart-2: oklch(0.393 0.05 29.11);
  --chart-3: oklch(0.442 0.072 147.377);
  --chart-4: oklch(0.42 0.055 29.136);
  --chart-5: oklch(0.353 0.076 287.994);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.078 0.015 290.735);
  --foreground: oklch(0.99 0.002 292.497);
  --muted: oklch(0.238 0.034 29.31);
  --muted-foreground: oklch(0.746 0.007 27.979);
  --popover: oklch(0.078 0.015 290.735);
  --popover-foreground: oklch(0.99 0.002 292.497);
  --card: oklch(0.078 0.015 290.735);
  --card-foreground: oklch(0.99 0.002 292.497);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.358 0.068 288.576);
  --primary-foreground: oklch(0.899 0.021 292.109);
  --secondary: oklch(0.393 0.05 29.11);
  --secondary-foreground: oklch(0.909 0.015 28.021);
  --accent: oklch(0.442 0.072 147.377);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.577 0.233 29.12);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.358 0.068 288.576);
  --chart-1: oklch(0.358 0.068 288.576);
  --chart-2: oklch(0.393 0.05 29.11);
  --chart-3: oklch(0.442 0.072 147.377);
  --chart-4: oklch(0.42 0.055 29.136);
  --chart-5: oklch(0.353 0.076 287.994);
}