Demur for shadcn/ui

Demur is a shadcn/ui theme built around an orange primary color (#e49677) with yellow accents (#e4cc77). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#e49677) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#090401black
#fdfcfcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#040201black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#090401black
#fdfcfcsnow
Primary
#e49677darksalmon
#e49677darksalmon
Primary foreground
#220e07black
#220e07black
Secondary
#e4778epalevioletred
#e4778epalevioletred
Secondary foreground
#22070dblack
#22070dblack
Muted
#e4d8dagainsboro
#271b1eblack
Muted foreground
#58464adarkslategray
#b9a7abdarkgray
Accent
#e4cc77burlywood
#e4cc77burlywood
Accent foreground
#221c07black
#221c07black
Destructive
#c81a0efirebrick
#d71c0ffirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e49677darksalmon
#e49677darksalmon

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.25:1AAA
Primary button7.85:1AAA
Secondary button6.62:1AA
Muted text6.31:1AA
Accent10.70:1AAA
Destructive5.80:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.85:1AAA
Secondary button6.62:1AA
Muted text7.27:1AAA
Accent10.70:1AAA
Destructive5.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.112 0.017 53.943);
  --muted: oklch(0.892 0.014 2.506);
  --muted-foreground: oklch(0.415 0.024 3.645);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.112 0.017 53.943);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.089 0.014 53.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.744 0.104 42.311);
  --primary-foreground: oklch(0.193 0.037 42.773);
  --secondary: oklch(0.699 0.137 7.515);
  --secondary-foreground: oklch(0.179 0.048 9.431);
  --accent: oklch(0.848 0.109 94.365);
  --accent-foreground: oklch(0.228 0.036 94.121);
  --destructive: oklch(0.533 0.206 29.729);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.744 0.104 42.311);
  --chart-1: oklch(0.744 0.104 42.311);
  --chart-2: oklch(0.699 0.137 7.515);
  --chart-3: oklch(0.848 0.109 94.365);
  --chart-4: oklch(0.724 0.123 6.713);
  --chart-5: oklch(0.744 0.109 42.274);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 43.121);
  --muted: oklch(0.238 0.02 4.364);
  --muted-foreground: oklch(0.745 0.021 2.825);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 43.121);
  --card: oklch(0.092 0 180);
  --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.744 0.104 42.311);
  --primary-foreground: oklch(0.193 0.037 42.773);
  --secondary: oklch(0.699 0.137 7.515);
  --secondary-foreground: oklch(0.179 0.048 9.431);
  --accent: oklch(0.848 0.109 94.365);
  --accent-foreground: oklch(0.228 0.036 94.121);
  --destructive: oklch(0.56 0.217 29.737);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.744 0.104 42.311);
  --chart-1: oklch(0.744 0.104 42.311);
  --chart-2: oklch(0.699 0.137 7.515);
  --chart-3: oklch(0.848 0.109 94.365);
  --chart-4: oklch(0.724 0.123 6.713);
  --chart-5: oklch(0.744 0.109 42.274);
}