Expression for shadcn/ui

Expression is a shadcn/ui theme built around a light purple primary color (#eba8d6) with light red accents (#eba8b4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#eba8d6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040103black
#fdfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#040103black
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040103black
#fdfcfdwhite
Primary
#eba8d6plum
#eba8d6plum
Primary foreground
#4e123bdarkslategray
#4e123bdarkslategray
Secondary
#dea8ebplum
#dea8ebplum
Secondary foreground
#43124emidnightblue
#43124emidnightblue
Muted
#e4d4e8gainsboro
#27172bblack
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#eba8b4lightpink
#eba8b4lightpink
Accent foreground
#4e121dmaroon
#4e121dmaroon
Destructive
#c81a14firebrick
#eb3d37crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eba8d6plum
#eba8d6plum

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.77:1AAA
Primary button7.53:1AAA
Secondary button7.61:1AAA
Muted text7.34:1AAA
Accent7.56:1AAA
Destructive5.83:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.53:1AAA
Secondary button7.61:1AAA
Muted text9.15:1AAA
Accent7.56:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.022 337.124);
  --muted: oklch(0.889 0.032 320.024);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.022 337.124);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.022 337.124);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.809 0.097 338.755);
  --primary-foreground: oklch(0.302 0.102 343.084);
  --secondary: oklch(0.804 0.108 320.091);
  --secondary-foreground: oklch(0.295 0.112 319.663);
  --accent: oklch(0.798 0.08 6.902);
  --accent-foreground: oklch(0.291 0.089 14.147);
  --destructive: oklch(0.531 0.205 28.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.809 0.097 338.755);
  --chart-1: oklch(0.809 0.097 338.755);
  --chart-2: oklch(0.804 0.108 320.091);
  --chart-3: oklch(0.798 0.08 6.902);
  --chart-4: oklch(0.832 0.093 320.08);
  --chart-5: oklch(0.808 0.102 338.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 336.605);
  --muted: oklch(0.236 0.044 320.098);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 336.605);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.002 336.605);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.809 0.097 338.755);
  --primary-foreground: oklch(0.302 0.102 343.084);
  --secondary: oklch(0.804 0.108 320.091);
  --secondary-foreground: oklch(0.295 0.112 319.663);
  --accent: oklch(0.798 0.08 6.902);
  --accent-foreground: oklch(0.291 0.089 14.147);
  --destructive: oklch(0.623 0.211 27.337);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.809 0.097 338.755);
  --chart-1: oklch(0.809 0.097 338.755);
  --chart-2: oklch(0.804 0.108 320.091);
  --chart-3: oklch(0.798 0.08 6.902);
  --chart-4: oklch(0.832 0.093 320.08);
  --chart-5: oklch(0.808 0.102 338.859);
}