Emotional for shadcn/ui

Emotional is a shadcn/ui theme built around a muted violet primary color (#b8adcd) with muted purple accents (#c8adcd). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#b8adcd) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#fcfbfewhite
#050307black
Foreground
#080311black
#ffffffwhite
Card
#fcfbfewhite
#050307black
Card foreground
#080311black
#ffffffwhite
Popover
#fcfbfewhite
#050307black
Popover foreground
#080311black
#ffffffwhite
Primary
#b8adcdsilver
#b8adcdsilver
Primary foreground
#211b2cblack
#211b2cblack
Secondary
#adb1cdlightsteelblue
#adb1cdlightsteelblue
Secondary foreground
#1b1d2cblack
#1b1d2cblack
Muted
#e6e7f0lavender
#0f111ablack
Muted foreground
#434556darkslategray
#a9abbcdarkgray
Accent
#c8adcdsilver
#c8adcdsilver
Accent foreground
#2a1b2cdarkslategray
#2a1b2cdarkslategray
Destructive
#b3140ffirebrick
#ee312bcrimson
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8adcdsilver
#b8adcdsilver

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button7.86:1AAA
Secondary button7.89:1AAA
Muted text7.65:1AAA
Accent7.97:1AAA
Destructive6.51:1AA
Dark mode
Text on background20.54:1AAA
Text on card20.54:1AAA
Primary button7.86:1AAA
Secondary button7.89:1AAA
Muted text8.29:1AAA
Accent7.97:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 302.87);
  --foreground: oklch(0.122 0.036 302.074);
  --muted: oklch(0.929 0.012 279.144);
  --muted-foreground: oklch(0.396 0.029 278.114);
  --popover: oklch(0.99 0.004 302.87);
  --popover-foreground: oklch(0.122 0.036 302.074);
  --card: oklch(0.99 0.004 302.87);
  --card-foreground: oklch(0.122 0.036 302.074);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.767 0.047 302.001);
  --primary-foreground: oklch(0.238 0.033 300.74);
  --secondary: oklch(0.766 0.04 278.509);
  --secondary-foreground: oklch(0.237 0.029 277.223);
  --accent: oklch(0.781 0.054 321.779);
  --accent-foreground: oklch(0.249 0.038 321.974);
  --destructive: oklch(0.489 0.191 28.99);
  --destructive-foreground: oklch(0.979 0.009 19.735);
  --ring: oklch(0.767 0.047 302.001);
  --chart-1: oklch(0.767 0.047 302.001);
  --chart-2: oklch(0.766 0.04 278.509);
  --chart-3: oklch(0.781 0.054 321.779);
  --chart-4: oklch(0.794 0.035 278.645);
  --chart-5: oklch(0.763 0.052 301.878);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.015 303.465);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.018 277.585);
  --muted-foreground: oklch(0.745 0.025 278.818);
  --popover: oklch(0.105 0.015 303.465);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.015 303.465);
  --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.767 0.047 302.001);
  --primary-foreground: oklch(0.238 0.033 300.74);
  --secondary: oklch(0.766 0.04 278.509);
  --secondary-foreground: oklch(0.237 0.029 277.223);
  --accent: oklch(0.781 0.054 321.779);
  --accent-foreground: oklch(0.249 0.038 321.974);
  --destructive: oklch(0.617 0.224 28.137);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.767 0.047 302.001);
  --chart-1: oklch(0.767 0.047 302.001);
  --chart-2: oklch(0.766 0.04 278.509);
  --chart-3: oklch(0.781 0.054 321.779);
  --chart-4: oklch(0.794 0.035 278.645);
  --chart-5: oklch(0.763 0.052 301.878);
}