Mantel for shadcn/ui

Mantel is a shadcn/ui theme built around a deep orange primary color (#3a2812) with muted light orange accents (#d2cfcb). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the deep orange primary (#3a2812) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#fdfaf7snow
#080502black
Foreground
#0d0802black
#faf8f4whitesmoke
Card
#fcf8f2floralwhite
#0c0804black
Card foreground
#090501black
#fcfaf8snow
Popover
#fcf8f2floralwhite
#0c0804black
Popover foreground
#090501black
#fcfaf8snow
Primary
#3a2812black
#3a2812black
Primary foreground
#e0c19eburlywood
#e0c19eburlywood
Secondary
#e8e8e8lavender
#1d1a16black
Secondary foreground
#504f4edarkslategray
#bdb3a8darkgray
Muted
#f2ede8linen
#17120dblack
Muted foreground
#5b5043darkolivegreen
#bcb1a4darkgray
Accent
#d2cfcblightgrey
#3a3127darkslategray
Accent foreground
#3a3631darkslategray
#d4cabflightgrey
Destructive
#a21311firebrick
#d01916firebrick
Destructive foreground
#fde8e8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3a2812black
#3a2812black

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.18:1AAA
Primary button8.26:1AAA
Secondary button6.67:1AA
Muted text6.77:1AA
Accent7.71:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.18:1AAA
Primary button8.26:1AAA
Secondary button8.41:1AAA
Muted text8.82:1AAA
Accent7.88:1AAA
Destructive5.49:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 71.4);
  --foreground: oklch(0.139 0.021 80.441);
  --muted: oklch(0.95 0.008 71.373);
  --muted-foreground: oklch(0.438 0.025 70.83);
  --popover: oklch(0.98 0.009 71.373);
  --popover-foreground: oklch(0.121 0.018 81.788);
  --card: oklch(0.98 0.009 71.373);
  --card-foreground: oklch(0.121 0.018 81.788);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.292 0.044 68.342);
  --primary-foreground: oklch(0.83 0.059 70.608);
  --secondary: oklch(0.931 0 71.446);
  --secondary-foreground: oklch(0.428 0.002 71.417);
  --accent: oklch(0.856 0.007 71.38);
  --accent-foreground: oklch(0.335 0.01 71.177);
  --destructive: oklch(0.455 0.175 28.379);
  --destructive-foreground: oklch(0.948 0.022 18.728);
  --ring: oklch(0.292 0.044 68.342);
  --chart-1: oklch(0.292 0.044 68.342);
  --chart-2: oklch(0.931 0 71.446);
  --chart-3: oklch(0.856 0.007 71.38);
  --chart-4: oklch(0.954 0 71.448);
  --chart-5: oklch(0.294 0.046 68.02);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.012 78.548);
  --foreground: oklch(0.979 0.005 71.404);
  --muted: oklch(0.187 0.012 70.678);
  --muted-foreground: oklch(0.765 0.022 71.181);
  --popover: oklch(0.137 0.014 78.1);
  --popover-foreground: oklch(0.986 0.004 71.42);
  --card: oklch(0.137 0.014 78.1);
  --card-foreground: oklch(0.986 0.004 71.42);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.292 0.044 68.342);
  --primary-foreground: oklch(0.83 0.059 70.608);
  --secondary: oklch(0.219 0.009 71.041);
  --secondary-foreground: oklch(0.773 0.02 71.213);
  --accent: oklch(0.32 0.021 70.704);
  --accent-foreground: oklch(0.844 0.018 71.252);
  --destructive: oklch(0.546 0.212 28.555);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.292 0.044 68.342);
  --chart-1: oklch(0.292 0.044 68.342);
  --chart-2: oklch(0.219 0.009 71.041);
  --chart-3: oklch(0.32 0.021 70.704);
  --chart-4: oklch(0.253 0.011 70.997);
  --chart-5: oklch(0.294 0.046 68.02);
}