Essential for shadcn/ui

Essential is a shadcn/ui theme built around a deep red primary color (#1a0e0a) with deep indigo accents (#0e0a1a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#1a0e0a) on a neutral background (#070404).

Color palette

TokenLightDark
Background
#ffffffwhite
#070404black
Foreground
#040201black
#f9f7f6whitesmoke
Card
#fcfcfcsnow
#0a0605black
Card foreground
#000000black
#fbf9f9snow
Popover
#ffffffwhite
#070404black
Popover foreground
#040201black
#f9f7f6whitesmoke
Primary
#1a0e0ablack
#1a0e0ablack
Primary foreground
#cf9887rosybrown
#cf9887rosybrown
Secondary
#0a1a0eblack
#0a1a0eblack
Secondary foreground
#44ab5cmediumseagreen
#44ab5cmediumseagreen
Muted
#d9e8dcgainsboro
#17261bblack
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#0e0a1ablack
#0e0a1ablack
Accent foreground
#9887cfmediumpurple
#9887cfmediumpurple
Destructive
#d91d08firebrick
#f7321dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a0e0ablack
#1a0e0ablack

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.54:1AAA
Primary button7.66:1AAA
Secondary button6.21:1AA
Muted text5.51:1AA
Accent6.22:1AA
Destructive5.10:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.19:1AAA
Primary button7.66:1AAA
Secondary button6.21:1AA
Muted text6.47:1AA
Accent6.22:1AA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.087 0.014 47.912);
  --muted: oklch(0.916 0.023 152.832);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.087 0.014 47.912);
  --card: oklch(0.992 0 161.565);
  --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.178 0.022 37.64);
  --primary-foreground: oklch(0.727 0.072 37.615);
  --secondary: oklch(0.198 0.032 150.18);
  --secondary-foreground: oklch(0.663 0.15 148.479);
  --accent: oklch(0.159 0.032 293.132);
  --accent-foreground: oklch(0.666 0.107 294.025);
  --destructive: oklch(0.564 0.219 30.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.178 0.022 37.64);
  --chart-1: oklch(0.178 0.022 37.64);
  --chart-2: oklch(0.198 0.032 150.18);
  --chart-3: oklch(0.159 0.032 293.132);
  --chart-4: oklch(0.238 0.043 149.734);
  --chart-5: oklch(0.178 0.023 37.67);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.007 41.253);
  --foreground: oklch(0.977 0.002 37.731);
  --muted: oklch(0.252 0.03 151.05);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.113 0.007 41.253);
  --popover-foreground: oklch(0.977 0.002 37.731);
  --card: oklch(0.13 0.008 41.253);
  --card-foreground: oklch(0.984 0.001 37.735);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.178 0.022 37.64);
  --primary-foreground: oklch(0.727 0.072 37.615);
  --secondary: oklch(0.198 0.032 150.18);
  --secondary-foreground: oklch(0.663 0.15 148.479);
  --accent: oklch(0.159 0.032 293.132);
  --accent-foreground: oklch(0.666 0.107 294.025);
  --destructive: oklch(0.632 0.232 30.516);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.178 0.022 37.64);
  --chart-1: oklch(0.178 0.022 37.64);
  --chart-2: oklch(0.198 0.032 150.18);
  --chart-3: oklch(0.159 0.032 293.132);
  --chart-4: oklch(0.238 0.043 149.734);
  --chart-5: oklch(0.178 0.023 37.67);
}