Emotional for shadcn/ui

Emotional is a shadcn/ui theme built around a green primary color (#d2d9a1) with purple accents (#d9a1d2). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the green primary (#d2d9a1) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#040401black
Foreground
#000000black
#fbfbf9snow
Card
#fbfcf8snow
#070803black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fbfcf8snow
#070803black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#d2d9a1palegoldenrod
#d2d9a1palegoldenrod
Primary foreground
#2f3315darkslategray
#2f3315darkslategray
Secondary
#a1d2d9lightblue
#a1d2d9lightblue
Secondary foreground
#152f33darkslategray
#152f33darkslategray
Muted
#e6f2f4lavender
#0b1719black
Muted foreground
#646868dimgray
#979b9bdarkgray
Accent
#d9a1d2plum
#d9a1d2plum
Accent foreground
#33152fdarkslategray
#33152fdarkslategray
Destructive
#922102darkred
#fc592ctomato
Destructive foreground
#fed4c8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d2d9a1palegoldenrod
#d2d9a1palegoldenrod

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.37:1AAA
Primary button8.80:1AAA
Secondary button8.56:1AAA
Muted text4.95:1AA
Accent7.72:1AAA
Destructive6.34:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.77:1AAA
Primary button8.80:1AAA
Secondary button8.56:1AAA
Muted text6.49:1AA
Accent7.72:1AAA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 111.828);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.954 0.013 206.363);
  --muted-foreground: oklch(0.513 0.005 206.389);
  --popover: oklch(0.989 0.005 111.877);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.005 111.877);
  --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.865 0.074 113.357);
  --primary-foreground: oklch(0.308 0.048 114.747);
  --secondary: oklch(0.832 0.052 206.261);
  --secondary-foreground: oklch(0.287 0.033 206.677);
  --accent: oklch(0.776 0.092 330.442);
  --accent-foreground: oklch(0.251 0.063 331.821);
  --destructive: oklch(0.433 0.152 34.392);
  --destructive-foreground: oklch(0.902 0.051 35.954);
  --ring: oklch(0.865 0.074 113.357);
  --chart-1: oklch(0.865 0.074 113.357);
  --chart-2: oklch(0.832 0.052 206.261);
  --chart-3: oklch(0.776 0.092 330.442);
  --chart-4: oklch(0.851 0.046 206.255);
  --chart-5: oklch(0.87 0.078 113.453);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.013 112.885);
  --foreground: oklch(0.987 0.003 111.828);
  --muted: oklch(0.195 0.018 206.388);
  --muted-foreground: oklch(0.685 0.004 206.404);
  --popover: oklch(0.129 0.016 112.885);
  --popover-foreground: oklch(0.993 0.001 111.804);
  --card: oklch(0.129 0.016 112.885);
  --card-foreground: oklch(0.993 0.001 111.804);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.865 0.074 113.357);
  --primary-foreground: oklch(0.308 0.048 114.747);
  --secondary: oklch(0.832 0.052 206.261);
  --secondary-foreground: oklch(0.287 0.033 206.677);
  --accent: oklch(0.776 0.092 330.442);
  --accent-foreground: oklch(0.251 0.063 331.821);
  --destructive: oklch(0.677 0.206 35.72);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.865 0.074 113.357);
  --chart-1: oklch(0.865 0.074 113.357);
  --chart-2: oklch(0.832 0.052 206.261);
  --chart-3: oklch(0.776 0.092 330.442);
  --chart-4: oklch(0.851 0.046 206.255);
  --chart-5: oklch(0.87 0.078 113.453);
}