Emotional for shadcn/ui

Emotional is a shadcn/ui theme built around a cyan primary color (#38798f) with green accents (#798f38). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the cyan primary (#38798f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#000000black
Foreground
#030a0cblack
#ffffffwhite
Card
#f3f9fbaliceblue
#030303black
Card foreground
#020708black
#ffffffwhite
Popover
#f3f9fbaliceblue
#030303black
Popover foreground
#020708black
#ffffffwhite
Primary
#38798fsteelblue
#38798fsteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8f3879rebeccapurple
#8f3879rebeccapurple
Secondary foreground
#fefbfdsnow
#fefbfdsnow
Muted
#f1eef0whitesmoke
#110e10black
Muted foreground
#6e5368dimgray
#ac91a5darkgray
Accent
#798f38olivedrab
#798f38olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bb3707firebrick
#f75e26tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#38798fsteelblue
#38798fsteelblue

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.11:1AAA
Primary button4.86:1AA
Secondary button6.78:1AA
Muted text5.89:1AA
Accent3.61:1AA Large
Destructive5.73:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button4.86:1AA
Secondary button6.78:1AA
Muted text6.71:1AA
Accent3.61:1AA Large
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.986 0.005 219.541);
  --foreground: oklch(0.137 0.015 215.451);
  --muted: oklch(0.953 0.004 333.94);
  --muted-foreground: oklch(0.479 0.047 335.447);
  --popover: oklch(0.979 0.007 219.559);
  --popover-foreground: oklch(0.119 0.013 214.488);
  --card: oklch(0.979 0.007 219.559);
  --card-foreground: oklch(0.119 0.013 214.488);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.544 0.075 222.664);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.483 0.142 338.526);
  --secondary-foreground: oklch(0.991 0.003 333.932);
  --accent: oklch(0.615 0.117 121.738);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.53 0.176 36.497);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.075 222.664);
  --chart-1: oklch(0.544 0.075 222.664);
  --chart-2: oklch(0.483 0.142 338.526);
  --chart-3: oklch(0.615 0.117 121.738);
  --chart-4: oklch(0.51 0.151 338.564);
  --chart-5: oklch(0.548 0.078 223.021);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.006 334.421);
  --muted-foreground: oklch(0.686 0.043 334.897);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.544 0.075 222.664);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.483 0.142 338.526);
  --secondary-foreground: oklch(0.991 0.003 333.932);
  --accent: oklch(0.615 0.117 121.738);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.675 0.199 38.493);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.544 0.075 222.664);
  --chart-1: oklch(0.544 0.075 222.664);
  --chart-2: oklch(0.483 0.142 338.526);
  --chart-3: oklch(0.615 0.117 121.738);
  --chart-4: oklch(0.51 0.151 338.564);
  --chart-5: oklch(0.548 0.078 223.021);
}