Energetic for shadcn/ui

Energetic is a shadcn/ui theme built around a vivid deep orange primary color (#77410e) with vivid deep violet accents (#410e77). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#77410e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d0702black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#0d0702black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#0d0702black
#fdfcfcsnow
Primary
#77410esaddlebrown
#77410esaddlebrown
Primary foreground
#f8dabfpeachpuff
#f8dabfpeachpuff
Secondary
#0e7741forestgreen
#0e7741forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3e8e5gainsboro
#171c19black
Muted foreground
#5b5d5cdimgray
#a2a4a3darkgray
Accent
#410e77indigo
#410e77indigo
Accent foreground
#dabff8thistle
#dabff8thistle
Destructive
#692102maroon
#fb5c18orangered
Destructive foreground
#febca0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#77410esaddlebrown
#77410esaddlebrown

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.22:1AA
Secondary button5.64:1AA
Muted text5.34:1AA
Accent8.25:1AAA
Destructive7.08:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.22:1AA
Secondary button5.64:1AA
Muted text6.89:1AA
Accent8.25:1AAA
Destructive6.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.021 75.753);
  --muted: oklch(0.926 0.006 164.123);
  --muted-foreground: oklch(0.475 0.003 164.136);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.021 75.753);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.137 0.021 75.753);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.432 0.096 57.485);
  --primary-foreground: oklch(0.907 0.049 65.257);
  --secondary: oklch(0.5 0.123 153.547);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.322 0.158 298.225);
  --accent-foreground: oklch(0.847 0.082 306.65);
  --destructive: oklch(0.357 0.111 39.813);
  --destructive-foreground: oklch(0.848 0.086 44.206);
  --ring: oklch(0.432 0.096 57.485);
  --chart-1: oklch(0.432 0.096 57.485);
  --chart-2: oklch(0.5 0.123 153.547);
  --chart-3: oklch(0.322 0.158 298.225);
  --chart-4: oklch(0.541 0.134 153.379);
  --chart-5: oklch(0.435 0.099 56.883);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 65.951);
  --muted: oklch(0.22 0.008 163.28);
  --muted-foreground: oklch(0.717 0.002 164.197);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 65.951);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 65.951);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.432 0.096 57.485);
  --primary-foreground: oklch(0.907 0.049 65.257);
  --secondary: oklch(0.5 0.123 153.547);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.322 0.158 298.225);
  --accent-foreground: oklch(0.847 0.082 306.65);
  --destructive: oklch(0.679 0.207 39.41);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.432 0.096 57.485);
  --chart-1: oklch(0.432 0.096 57.485);
  --chart-2: oklch(0.5 0.123 153.547);
  --chart-3: oklch(0.322 0.158 298.225);
  --chart-4: oklch(0.541 0.134 153.379);
  --chart-5: oklch(0.435 0.099 56.883);
}