Lively for shadcn/ui

Lively is a shadcn/ui theme built around a muted deep green primary color (#25412e) with muted light green accents (#c7d1ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#25412e) on a green-tinted background (#041008).

Color palette

TokenLightDark
Background
#ffffffwhite
#041008black
Foreground
#031108black
#ffffffwhite
Card
#ffffffwhite
#041008black
Card foreground
#031108black
#ffffffwhite
Popover
#ffffffwhite
#041008black
Popover foreground
#031108black
#ffffffwhite
Primary
#25412edarkslategray
#25412edarkslategray
Primary foreground
#bedac7lightgrey
#bedac7lightgrey
Secondary
#dadcdbgainsboro
#151916black
Secondary foreground
#404442darkslategray
#a8b8addarkgray
Muted
#e0f0e5gainsboro
#0f1f14black
Muted foreground
#5f6d64dimgray
#92a097darkseagreen
Accent
#c7d1calightgrey
#26362bdarkslategray
Accent foreground
#2e3831darkslategray
#bdd0c4silver
Destructive
#962b0dsaddlebrown
#eb4719orangered
Destructive foreground
#fce1d9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25412edarkslategray
#25412edarkslategray

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button7.46:1AAA
Secondary button7.19:1AAA
Muted text4.61:1AA
Accent7.76:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.46:1AAA
Secondary button8.55:1AAA
Muted text6.26:1AA
Accent7.91:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.162 0.031 155.218);
  --muted: oklch(0.941 0.023 156.764);
  --muted-foreground: oklch(0.52 0.023 156.344);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.162 0.031 155.218);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.162 0.031 155.218);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.347 0.048 153.976);
  --primary-foreground: oklch(0.863 0.04 156.285);
  --secondary: oklch(0.894 0.003 157.197);
  --secondary-foreground: oklch(0.383 0.007 156.896);
  --accent: oklch(0.851 0.014 156.916);
  --accent-foreground: oklch(0.329 0.018 156.091);
  --destructive: oklch(0.452 0.148 35.114);
  --destructive-foreground: oklch(0.929 0.031 35.945);
  --ring: oklch(0.347 0.048 153.976);
  --chart-1: oklch(0.347 0.048 153.976);
  --chart-2: oklch(0.894 0.003 157.197);
  --chart-3: oklch(0.851 0.014 156.916);
  --chart-4: oklch(0.917 0.002 157.213);
  --chart-5: oklch(0.351 0.053 153.628);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.025 155.631);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.031 153.919);
  --muted-foreground: oklch(0.692 0.021 156.626);
  --popover: oklch(0.158 0.025 155.631);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.025 155.631);
  --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.347 0.048 153.976);
  --primary-foreground: oklch(0.863 0.04 156.285);
  --secondary: oklch(0.208 0.009 156.336);
  --secondary-foreground: oklch(0.767 0.023 156.643);
  --accent: oklch(0.314 0.028 155.312);
  --accent-foreground: oklch(0.841 0.027 156.596);
  --destructive: oklch(0.629 0.208 35.004);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.347 0.048 153.976);
  --chart-1: oklch(0.347 0.048 153.976);
  --chart-2: oklch(0.208 0.009 156.336);
  --chart-3: oklch(0.314 0.028 155.312);
  --chart-4: oklch(0.243 0.012 156.239);
  --chart-5: oklch(0.351 0.053 153.628);
}