Euphoric for shadcn/ui

Euphoric is a shadcn/ui theme built around a vivid deep orange primary color (#843c06) with vivid deep yellow accents (#847b06). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#843c06) on an orange-tinted background (#0a0705).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0705black
Foreground
#160b03black
#fbfaf9snow
Card
#ffffffwhite
#0a0705black
Card foreground
#160b03black
#fbfaf9snow
Popover
#ffffffwhite
#0a0705black
Popover foreground
#160b03black
#fbfaf9snow
Primary
#843c06saddlebrown
#843c06saddlebrown
Primary foreground
#fcdac0peachpuff
#fcdac0peachpuff
Secondary
#84060fmaroon
#84060fmaroon
Secondary foreground
#fcc0c4pink
#fcc0c4pink
Muted
#f0eaeblinen
#150f0fblack
Muted foreground
#614849darkolivegreen
#b79ea0darkgray
Accent
#847b06olive
#847b06olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#91100ddarkred
#ec3936crimson
Destructive foreground
#fbd6d5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#843c06saddlebrown
#843c06saddlebrown

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button6.05:1AA
Secondary button6.71:1AA
Muted text6.99:1AA
Accent4.36:1AA Large
Destructive6.89:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button6.05:1AA
Secondary button6.71:1AA
Muted text7.60:1AAA
Accent4.36:1AA Large
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.026 63.22);
  --muted: oklch(0.942 0.006 12.564);
  --muted-foreground: oklch(0.428 0.035 14.17);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.026 63.22);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.164 0.026 63.22);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.444 0.114 49.935);
  --primary-foreground: oklch(0.91 0.052 59.474);
  --secondary: oklch(0.388 0.154 26.551);
  --secondary-foreground: oklch(0.862 0.07 14.16);
  --accent: oklch(0.573 0.12 104.747);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.419 0.162 28.421);
  --destructive-foreground: oklch(0.906 0.042 19.107);
  --ring: oklch(0.444 0.114 49.935);
  --chart-1: oklch(0.444 0.114 49.935);
  --chart-2: oklch(0.388 0.154 26.551);
  --chart-3: oklch(0.573 0.12 104.747);
  --chart-4: oklch(0.418 0.166 26.768);
  --chart-5: oklch(0.447 0.117 49.423);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.009 65.202);
  --foreground: oklch(0.985 0.002 60.26);
  --muted: oklch(0.176 0.01 13.595);
  --muted-foreground: oklch(0.723 0.03 13.298);
  --popover: oklch(0.134 0.009 65.202);
  --popover-foreground: oklch(0.985 0.002 60.26);
  --card: oklch(0.134 0.009 65.202);
  --card-foreground: oklch(0.985 0.002 60.26);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.444 0.114 49.935);
  --primary-foreground: oklch(0.91 0.052 59.474);
  --secondary: oklch(0.388 0.154 26.551);
  --secondary-foreground: oklch(0.862 0.07 14.16);
  --accent: oklch(0.573 0.12 104.747);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.621 0.215 26.88);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.444 0.114 49.935);
  --chart-1: oklch(0.444 0.114 49.935);
  --chart-2: oklch(0.388 0.154 26.551);
  --chart-3: oklch(0.573 0.12 104.747);
  --chart-4: oklch(0.418 0.166 26.768);
  --chart-5: oklch(0.447 0.117 49.423);
}