Essential for shadcn/ui

Essential is a shadcn/ui theme built around a muted deep red primary color (#221616) with muted deep teal accents (#162222). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted deep red primary (#221616) on a red-tinted background (#0b0504).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0b0504black
Foreground
#000000black
#fdfcfcsnow
Card
#fbf4f4lavenderblush
#0f0606black
Card foreground
#000000black
#ffffffwhite
Popover
#fbf4f4lavenderblush
#0f0606black
Popover foreground
#000000black
#ffffffwhite
Primary
#221616black
#221616black
Primary foreground
#c5a6a5darkgray
#c5a6a5darkgray
Secondary
#162222black
#162222black
Secondary foreground
#a5c4c5lightsteelblue
#a5c4c5lightsteelblue
Muted
#d9e2e3gainsboro
#1c2626black
Muted foreground
#565d5ddimgray
#a2a9a9darkgray
Accent
#162222black
#162222black
Accent foreground
#a5c4c5lightsteelblue
#a5c4c5lightsteelblue
Destructive
#a42a0efirebrick
#ec4b27chocolate
Destructive foreground
#fdebe8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#221616black
#221616black

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.35:1AAA
Primary button7.82:1AAA
Secondary button8.80:1AAA
Muted text5.12:1AA
Accent8.80:1AAA
Destructive6.24:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.03:1AAA
Primary button7.82:1AAA
Secondary button8.80:1AAA
Muted text6.49:1AA
Accent8.80:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 19.673);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.01 199.451);
  --muted-foreground: oklch(0.471 0.009 199.359);
  --popover: oklch(0.973 0.007 19.709);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.007 19.709);
  --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.217 0.02 21.043);
  --primary-foreground: oklch(0.752 0.037 20.343);
  --secondary: oklch(0.24 0.017 198.775);
  --secondary-foreground: oklch(0.798 0.034 199.066);
  --accent: oklch(0.24 0.017 198.775);
  --accent-foreground: oklch(0.798 0.034 199.066);
  --destructive: oklch(0.476 0.163 33.499);
  --destructive-foreground: oklch(0.954 0.02 32.675);
  --ring: oklch(0.217 0.02 21.043);
  --chart-1: oklch(0.217 0.02 21.043);
  --chart-2: oklch(0.24 0.017 198.775);
  --chart-3: oklch(0.24 0.017 198.775);
  --chart-4: oklch(0.276 0.02 198.732);
  --chart-5: oklch(0.216 0.022 21.289);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.015 22.385);
  --foreground: oklch(0.992 0.001 19.623);
  --muted: oklch(0.259 0.014 198.954);
  --muted-foreground: oklch(0.73 0.008 199.46);
  --popover: oklch(0.136 0.017 22.343);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.017 22.343);
  --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.217 0.02 21.043);
  --primary-foreground: oklch(0.752 0.037 20.343);
  --secondary: oklch(0.24 0.017 198.775);
  --secondary-foreground: oklch(0.798 0.034 199.066);
  --accent: oklch(0.24 0.017 198.775);
  --accent-foreground: oklch(0.798 0.034 199.066);
  --destructive: oklch(0.637 0.203 33.918);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.217 0.02 21.043);
  --chart-1: oklch(0.217 0.02 21.043);
  --chart-2: oklch(0.24 0.017 198.775);
  --chart-3: oklch(0.24 0.017 198.775);
  --chart-4: oklch(0.276 0.02 198.732);
  --chart-5: oklch(0.216 0.022 21.289);
}