Essential for shadcn/ui

Essential is a shadcn/ui theme built around a light violet primary color (#e2d4ed) with light purple accents (#edd4eb). The light mode uses a neutral background (#faf7fd). Dark mode keeps the light violet primary (#e2d4ed) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#000000black
Foreground
#0e0514black
#faf9fbghostwhite
Card
#faf7fdghostwhite
#000000black
Card foreground
#0e0514black
#faf9fbghostwhite
Popover
#faf7fdghostwhite
#000000black
Popover foreground
#0e0514black
#faf9fbghostwhite
Primary
#e2d4edgainsboro
#e2d4edgainsboro
Primary foreground
#4c2a65darkslateblue
#4c2a65darkslateblue
Secondary
#d6d4edgainsboro
#d6d4edgainsboro
Secondary foreground
#2f2a65midnightblue
#2f2a65midnightblue
Muted
#e4e3edlavender
#13121cblack
Muted foreground
#605f67dimgray
#9898a0darkgray
Accent
#edd4ebgainsboro
#edd4ebgainsboro
Accent foreground
#652a60darkslateblue
#652a60darkslateblue
Destructive
#c9360dfirebrick
#f3663ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2d4edgainsboro
#e2d4edgainsboro

Contrast

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

Light mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button8.14:1AAA
Secondary button8.83:1AAA
Muted text4.96:1AA
Accent7.40:1AAA
Destructive5.22:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button8.14:1AAA
Secondary button8.83:1AAA
Muted text6.48:1AA
Accent7.40:1AAA
Destructive6.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.009 311.649);
  --foreground: oklch(0.142 0.036 310.59);
  --muted: oklch(0.92 0.013 289.98);
  --muted-foreground: oklch(0.491 0.013 289.76);
  --popover: oklch(0.98 0.009 311.649);
  --popover-foreground: oklch(0.142 0.036 310.59);
  --card: oklch(0.98 0.009 311.649);
  --card-foreground: oklch(0.142 0.036 310.59);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.889 0.037 311.387);
  --primary-foreground: oklch(0.358 0.103 309.051);
  --secondary: oklch(0.879 0.034 289.499);
  --secondary-foreground: oklch(0.326 0.1 283.126);
  --accent: oklch(0.897 0.041 328.532);
  --accent-foreground: oklch(0.389 0.111 330.756);
  --destructive: oklch(0.554 0.19 34.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.037 311.387);
  --chart-1: oklch(0.889 0.037 311.387);
  --chart-2: oklch(0.879 0.034 289.499);
  --chart-3: oklch(0.897 0.041 328.532);
  --chart-4: oklch(0.909 0.026 289.713);
  --chart-5: oklch(0.888 0.04 311.361);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 311.699);
  --muted: oklch(0.189 0.019 288.197);
  --muted-foreground: oklch(0.681 0.012 289.925);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 311.699);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 311.699);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.889 0.037 311.387);
  --primary-foreground: oklch(0.358 0.103 309.051);
  --secondary: oklch(0.879 0.034 289.499);
  --secondary-foreground: oklch(0.326 0.1 283.126);
  --accent: oklch(0.897 0.041 328.532);
  --accent-foreground: oklch(0.389 0.111 330.756);
  --destructive: oklch(0.681 0.182 36.236);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.889 0.037 311.387);
  --chart-1: oklch(0.889 0.037 311.387);
  --chart-2: oklch(0.879 0.034 289.499);
  --chart-3: oklch(0.897 0.041 328.532);
  --chart-4: oklch(0.909 0.026 289.713);
  --chart-5: oklch(0.888 0.04 311.361);
}