Modest for shadcn/ui

Modest is a shadcn/ui theme built around a light red primary color (#eccbc1) with muted light red accents (#cbc1be). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light red primary (#eccbc1) on a red-tinted background (#0c0503).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0c0503black
Foreground
#000000black
#ffffffwhite
Card
#fdf8f6snow
#100704black
Card foreground
#000000black
#ffffffwhite
Popover
#fefcfbsnow
#0c0503black
Popover foreground
#000000black
#ffffffwhite
Primary
#eccbc1pink
#eccbc1pink
Primary foreground
#5e2c1dsaddlebrown
#5e2c1dsaddlebrown
Secondary
#dbd8d6gainsboro
#1c1817black
Secondary foreground
#443e3cdarkslategray
#bbaeaadarkgray
Muted
#e2d8d5gainsboro
#2a201dblack
Muted foreground
#5a5958dimgray
#a7a5a5darkgray
Accent
#cbc1besilver
#342622darkslategray
Accent foreground
#302927darkslategray
#d1beb8silver
Destructive
#6d1a03maroon
#f96339tomato
Destructive foreground
#fcb9a6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eccbc1pink
#eccbc1pink

Contrast

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

Light mode
Text on background20.47:1AAA
Text on card19.95:1AAA
Primary button7.46:1AAA
Secondary button7.38:1AAA
Muted text4.99:1AA
Accent8.08:1AAA
Destructive7.01:1AAA
Dark mode
Text on background20.18:1AAA
Text on card19.90:1AAA
Primary button7.46:1AAA
Secondary button8.17:1AAA
Muted text6.45:1AA
Accent8.08:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 37.727);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.889 0.012 37.682);
  --muted-foreground: oklch(0.464 0.002 37.722);
  --popover: oklch(0.991 0.003 37.727);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.006 37.712);
  --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.866 0.04 37.602);
  --primary-foreground: oklch(0.357 0.077 37.665);
  --secondary: oklch(0.883 0.004 37.719);
  --secondary-foreground: oklch(0.368 0.009 37.647);
  --accent: oklch(0.818 0.012 37.677);
  --accent-foreground: oklch(0.287 0.012 37.61);
  --destructive: oklch(0.355 0.12 35.2);
  --destructive-foreground: oklch(0.843 0.083 36.049);
  --ring: oklch(0.866 0.04 37.602);
  --chart-1: oklch(0.866 0.04 37.602);
  --chart-2: oklch(0.883 0.004 37.719);
  --chart-3: oklch(0.818 0.012 37.677);
  --chart-4: oklch(0.907 0.003 37.724);
  --chart-5: oklch(0.866 0.042 37.599);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.016 44.811);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.016 37.592);
  --muted-foreground: oklch(0.724 0.002 37.731);
  --popover: oklch(0.128 0.016 44.811);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.019 43.145);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.866 0.04 37.602);
  --primary-foreground: oklch(0.357 0.077 37.665);
  --secondary: oklch(0.214 0.007 37.62);
  --secondary-foreground: oklch(0.761 0.016 37.655);
  --accent: oklch(0.286 0.023 37.596);
  --accent-foreground: oklch(0.815 0.023 37.634);
  --destructive: oklch(0.685 0.193 36.098);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.866 0.04 37.602);
  --chart-1: oklch(0.866 0.04 37.602);
  --chart-2: oklch(0.214 0.007 37.62);
  --chart-3: oklch(0.286 0.023 37.596);
  --chart-4: oklch(0.246 0.009 37.615);
  --chart-5: oklch(0.866 0.042 37.599);
}