Enjoyment for shadcn/ui

Enjoyment is a shadcn/ui theme built around a muted light green primary color (#e5e6e0) with muted light purple accents (#e6e0e5). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted light green primary (#e5e6e0) on a green-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fefefbwhite
#0a0a05black
Foreground
#080802black
#ffffffwhite
Card
#fcfdf7snow
#0d0e07black
Card foreground
#040401black
#ffffffwhite
Popover
#fcfdf7snow
#0d0e07black
Popover foreground
#040401black
#ffffffwhite
Primary
#e5e6e0gainsboro
#e5e6e0gainsboro
Primary foreground
#505143darkolivegreen
#505143darkolivegreen
Secondary
#e0e5e6gainsboro
#e0e5e6gainsboro
Secondary foreground
#435051darkslategray
#435051darkslategray
Muted
#eff5f6whitesmoke
#091010black
Muted foreground
#58686adimgray
#95a5a7darkgray
Accent
#e6e0e5gainsboro
#e6e0e5gainsboro
Accent foreground
#514350darkslategray
#514350darkslategray
Destructive
#782908saddlebrown
#e14e0eorangered
Destructive foreground
#facbb7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5e6e0gainsboro
#e5e6e0gainsboro

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card20.05:1AAA
Primary button6.42:1AA
Secondary button6.60:1AA
Muted text5.28:1AA
Accent7.12:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.41:1AAA
Primary button6.42:1AA
Secondary button6.60:1AA
Muted text7.53:1AAA
Accent7.12:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 110.317);
  --foreground: oklch(0.133 0.021 111.936);
  --muted: oklch(0.966 0.007 203.519);
  --muted-foreground: oklch(0.505 0.02 203.276);
  --popover: oklch(0.991 0.008 110.388);
  --popover-foreground: oklch(0.105 0.017 111.936);
  --card: oklch(0.991 0.008 110.388);
  --card-foreground: oklch(0.105 0.017 111.936);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.008 110.399);
  --primary-foreground: oklch(0.43 0.024 111.254);
  --secondary: oklch(0.919 0.006 203.525);
  --secondary-foreground: oklch(0.42 0.017 203.261);
  --accent: oklch(0.913 0.009 328.168);
  --accent-foreground: oklch(0.402 0.03 328.806);
  --destructive: oklch(0.395 0.117 39.922);
  --destructive-foreground: oklch(0.879 0.06 44.417);
  --ring: oklch(0.922 0.008 110.399);
  --chart-1: oklch(0.922 0.008 110.399);
  --chart-2: oklch(0.919 0.006 203.525);
  --chart-3: oklch(0.913 0.009 328.168);
  --chart-4: oklch(0.941 0.004 203.541);
  --chart-5: oklch(0.924 0.01 110.444);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.013 111.266);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.01 203.167);
  --muted-foreground: oklch(0.711 0.018 203.365);
  --popover: oklch(0.159 0.015 111.763);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.015 111.763);
  --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.922 0.008 110.399);
  --primary-foreground: oklch(0.43 0.024 111.254);
  --secondary: oklch(0.919 0.006 203.525);
  --secondary-foreground: oklch(0.42 0.017 203.261);
  --accent: oklch(0.913 0.009 328.168);
  --accent-foreground: oklch(0.402 0.03 328.806);
  --destructive: oklch(0.62 0.194 38.764);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.008 110.399);
  --chart-1: oklch(0.922 0.008 110.399);
  --chart-2: oklch(0.919 0.006 203.525);
  --chart-3: oklch(0.913 0.009 328.168);
  --chart-4: oklch(0.941 0.004 203.541);
  --chart-5: oklch(0.924 0.01 110.444);
}