Decadence for shadcn/ui

Decadence is a shadcn/ui theme built around a vivid light green primary color (#e8f7ab) with vivid light indigo accents (#bbabf7). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid light green primary (#e8f7ab) on a green-tinted background (#0d1005).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0d1005black
Foreground
#111405black
#ffffffwhite
Card
#fdfefbwhite
#0d1005black
Card foreground
#111405black
#ffffffwhite
Popover
#fdfefbwhite
#0d1005black
Popover foreground
#111405black
#ffffffwhite
Primary
#e8f7abpalegoldenrod
#e8f7abpalegoldenrod
Primary foreground
#080901black
#080901black
Secondary
#bbabf7lightsteelblue
#bbabf7lightsteelblue
Secondary foreground
#1c0a66midnightblue
#1c0a66midnightblue
Muted
#edecf3lavender
#0d0c13black
Muted foreground
#535257dimgray
#a9a8addarkgray
Accent
#bbabf7lightsteelblue
#bbabf7lightsteelblue
Accent foreground
#1c0a66midnightblue
#1c0a66midnightblue
Destructive
#8e1c10darkred
#e6321eorangered
Destructive foreground
#fad9d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8f7abpalegoldenrod
#e8f7abpalegoldenrod

Contrast

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

Light mode
Text on background18.38:1AAA
Text on card18.38:1AAA
Primary button17.41:1AAA
Secondary button8.01:1AAA
Muted text6.60:1AA
Accent8.01:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button17.41:1AAA
Secondary button8.01:1AAA
Muted text8.25:1AAA
Accent8.01:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 115.633);
  --foreground: oklch(0.184 0.029 118.175);
  --muted: oklch(0.946 0.01 295.386);
  --muted-foreground: oklch(0.44 0.008 295.232);
  --popover: oklch(0.995 0.003 115.633);
  --popover-foreground: oklch(0.184 0.029 118.175);
  --card: oklch(0.995 0.003 115.633);
  --card-foreground: oklch(0.184 0.029 118.175);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.947 0.097 117.5);
  --primary-foreground: oklch(0.135 0.026 116.324);
  --secondary: oklch(0.783 0.107 292.944);
  --secondary-foreground: oklch(0.26 0.144 278.676);
  --accent: oklch(0.783 0.107 292.944);
  --accent-foreground: oklch(0.26 0.144 278.676);
  --destructive: oklch(0.423 0.151 30.462);
  --destructive-foreground: oklch(0.913 0.037 25.374);
  --ring: oklch(0.947 0.097 117.5);
  --chart-1: oklch(0.947 0.097 117.5);
  --chart-2: oklch(0.783 0.107 292.944);
  --chart-3: oklch(0.783 0.107 292.944);
  --chart-4: oklch(0.819 0.088 293.53);
  --chart-5: oklch(0.95 0.101 117.562);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.165 0.023 117.419);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.158 0.016 293.713);
  --muted-foreground: oklch(0.735 0.007 295.397);
  --popover: oklch(0.165 0.023 117.419);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.165 0.023 117.419);
  --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.947 0.097 117.5);
  --primary-foreground: oklch(0.135 0.026 116.324);
  --secondary: oklch(0.783 0.107 292.944);
  --secondary-foreground: oklch(0.26 0.144 278.676);
  --accent: oklch(0.783 0.107 292.944);
  --accent-foreground: oklch(0.26 0.144 278.676);
  --destructive: oklch(0.603 0.218 30.489);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.097 117.5);
  --chart-1: oklch(0.947 0.097 117.5);
  --chart-2: oklch(0.783 0.107 292.944);
  --chart-3: oklch(0.783 0.107 292.944);
  --chart-4: oklch(0.819 0.088 293.53);
  --chart-5: oklch(0.95 0.101 117.562);
}