Modest for shadcn/ui

Modest is a shadcn/ui theme built around a muted deep orange primary color (#44352c) with muted deep blue accents (#2c3b44). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted deep orange primary (#44352c) on a neutral background (#080402).

Color palette

TokenLightDark
Background
#fcf9f8snow
#080402black
Foreground
#0d0603black
#ffffffwhite
Card
#fcf9f8snow
#080402black
Card foreground
#0d0603black
#ffffffwhite
Popover
#fcf9f8snow
#080402black
Popover foreground
#0d0603black
#ffffffwhite
Primary
#44352cdarkslategray
#44352cdarkslategray
Primary foreground
#dbcfc7lightgrey
#dbcfc7lightgrey
Secondary
#2c3b44darkslategray
#2c3b44darkslategray
Secondary foreground
#c7d3dblightgrey
#c7d3dblightgrey
Muted
#ecf1f3whitesmoke
#0c1013black
Muted foreground
#576a75dimgray
#8a9da8lightslategray
Accent
#2c3b44darkslategray
#2c3b44darkslategray
Accent foreground
#c7d3dblightgrey
#c7d3dblightgrey
Destructive
#d7550fchocolate
#db570fchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#44352cdarkslategray
#44352cdarkslategray

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button7.65:1AAA
Secondary button7.58:1AAA
Muted text4.94:1AA
Accent7.58:1AAA
Destructive4.05:1AA Large
Dark mode
Text on background20.37:1AAA
Text on card20.37:1AAA
Primary button7.65:1AAA
Secondary button7.58:1AAA
Muted text6.79:1AA
Accent7.58:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 54.458);
  --foreground: oklch(0.133 0.018 63.827);
  --muted: oklch(0.954 0.006 234.599);
  --muted-foreground: oklch(0.512 0.029 235.439);
  --popover: oklch(0.985 0.003 54.458);
  --popover-foreground: oklch(0.133 0.018 63.827);
  --card: oklch(0.985 0.003 54.458);
  --card-foreground: oklch(0.133 0.018 63.827);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.343 0.026 53.488);
  --primary-foreground: oklch(0.862 0.017 54.241);
  --secondary: oklch(0.343 0.025 235.742);
  --secondary-foreground: oklch(0.861 0.017 234.787);
  --accent: oklch(0.343 0.025 235.742);
  --accent-foreground: oklch(0.861 0.017 234.787);
  --destructive: oklch(0.612 0.178 42.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.343 0.026 53.488);
  --chart-1: oklch(0.343 0.026 53.488);
  --chart-2: oklch(0.343 0.025 235.742);
  --chart-3: oklch(0.343 0.025 235.742);
  --chart-4: oklch(0.372 0.028 235.778);
  --chart-5: oklch(0.344 0.03 53.333);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.014 63.588);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.17 0.009 235.385);
  --muted-foreground: oklch(0.684 0.028 235.128);
  --popover: oklch(0.116 0.014 63.588);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.116 0.014 63.588);
  --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.343 0.026 53.488);
  --primary-foreground: oklch(0.862 0.017 54.241);
  --secondary: oklch(0.343 0.025 235.742);
  --secondary-foreground: oklch(0.861 0.017 234.787);
  --accent: oklch(0.343 0.025 235.742);
  --accent-foreground: oklch(0.861 0.017 234.787);
  --destructive: oklch(0.621 0.181 42.346);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.343 0.026 53.488);
  --chart-1: oklch(0.343 0.026 53.488);
  --chart-2: oklch(0.343 0.025 235.742);
  --chart-3: oklch(0.343 0.025 235.742);
  --chart-4: oklch(0.372 0.028 235.778);
  --chart-5: oklch(0.344 0.03 53.333);
}