Evocation for shadcn/ui

Evocation is a shadcn/ui theme built around a yellow primary color (#dda822) with violet accents (#a822dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#dda822) on a yellow-tinted background (#100c05).

Color palette

TokenLightDark
Background
#ffffffwhite
#100c05black
Foreground
#050301black
#fdfdfcwhite
Card
#ffffffwhite
#100c05black
Card foreground
#050301black
#fdfdfcwhite
Popover
#ffffffwhite
#100c05black
Popover foreground
#050301black
#fdfdfcwhite
Primary
#dda822goldenrod
#dda822goldenrod
Primary foreground
#2c2207black
#2c2207black
Secondary
#22dda8lightseagreen
#22dda8lightseagreen
Secondary foreground
#072c22black
#072c22black
Muted
#d7e4e1gainsboro
#1b2824black
Muted foreground
#4b625cdimgray
#9db4addarkgray
Accent
#a822dddarkorchid
#a822dddarkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c03502firebrick
#f24202orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dda822goldenrod
#dda822goldenrod

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button7.22:1AAA
Secondary button8.56:1AAA
Muted text5.03:1AA
Accent5.33:1AA
Destructive5.61:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button7.22:1AAA
Secondary button8.56:1AAA
Muted text6.97:1AA
Accent5.33:1AA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.017 96.025);
  --muted: oklch(0.909 0.015 177.229);
  --muted-foreground: oklch(0.476 0.029 175.809);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.017 96.025);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.017 96.025);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.76 0.148 84.36);
  --primary-foreground: oklch(0.256 0.044 87.192);
  --secondary: oklch(0.798 0.158 167.156);
  --secondary-foreground: oklch(0.264 0.046 170.08);
  --accent: oklch(0.562 0.259 313.184);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.536 0.183 35.969);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.76 0.148 84.36);
  --chart-1: oklch(0.76 0.148 84.36);
  --chart-2: oklch(0.798 0.158 167.156);
  --chart-3: oklch(0.562 0.259 313.184);
  --chart-4: oklch(0.806 0.153 168.214);
  --chart-5: oklch(0.767 0.151 83.903);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.018 91.078);
  --foreground: oklch(0.993 0.001 88.798);
  --muted: oklch(0.262 0.02 175.33);
  --muted-foreground: oklch(0.749 0.026 176.653);
  --popover: oklch(0.158 0.018 91.078);
  --popover-foreground: oklch(0.993 0.001 88.798);
  --card: oklch(0.158 0.018 91.078);
  --card-foreground: oklch(0.993 0.001 88.798);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.76 0.148 84.36);
  --primary-foreground: oklch(0.256 0.044 87.192);
  --secondary: oklch(0.798 0.158 167.156);
  --secondary-foreground: oklch(0.264 0.046 170.08);
  --accent: oklch(0.562 0.259 313.184);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.637 0.22 35.513);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.76 0.148 84.36);
  --chart-1: oklch(0.76 0.148 84.36);
  --chart-2: oklch(0.798 0.158 167.156);
  --chart-3: oklch(0.562 0.259 313.184);
  --chart-4: oklch(0.806 0.153 168.214);
  --chart-5: oklch(0.767 0.151 83.903);
}