Lively for shadcn/ui

Lively is a shadcn/ui theme built around a muted deep green primary color (#444d42) with muted deep red accents (#4d4244). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#444d42) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#091406black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#091406black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#091406black
#ffffffwhite
Primary
#444d42darkslategray
#444d42darkslategray
Primary foreground
#dfe3degainsboro
#dfe3degainsboro
Secondary
#42444ddarkslategray
#42444ddarkslategray
Secondary foreground
#dedfe3gainsboro
#dedfe3gainsboro
Muted
#d7d8dbgainsboro
#242528darkslategray
Muted foreground
#4c5161darkslategray
#9ea3b3darkgray
Accent
#4d4244darkslategray
#4d4244darkslategray
Accent foreground
#e3dedfgainsboro
#e3dedfgainsboro
Destructive
#ca2e07firebrick
#f7542btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#444d42darkslategray
#444d42darkslategray

Contrast

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

Light mode
Text on background18.84:1AAA
Text on card18.84:1AAA
Primary button6.76:1AA
Secondary button7.25:1AAA
Muted text5.53:1AA
Accent7.26:1AAA
Destructive5.38:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.76:1AA
Secondary button7.25:1AAA
Muted text6.06:1AA
Accent7.26:1AAA
Destructive6.27:1AA

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.175 0.033 137.829);
  --muted: oklch(0.882 0.004 272.609);
  --muted-foreground: oklch(0.437 0.027 271.918);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.033 137.829);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.175 0.033 137.829);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.409 0.022 138.39);
  --primary-foreground: oklch(0.911 0.008 138.339);
  --secondary: oklch(0.389 0.015 272.213);
  --secondary-foreground: oklch(0.904 0.005 272.597);
  --accent: oklch(0.391 0.016 2.097);
  --accent-foreground: oklch(0.905 0.006 1.132);
  --destructive: oklch(0.548 0.196 33.372);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.409 0.022 138.39);
  --chart-1: oklch(0.409 0.022 138.39);
  --chart-2: oklch(0.389 0.015 272.213);
  --chart-3: oklch(0.391 0.016 2.097);
  --chart-4: oklch(0.416 0.017 272.205);
  --chart-5: oklch(0.413 0.03 138.416);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.266 0.006 272.43);
  --muted-foreground: oklch(0.716 0.024 272.286);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.409 0.022 138.39);
  --primary-foreground: oklch(0.911 0.008 138.339);
  --secondary: oklch(0.389 0.015 272.213);
  --secondary-foreground: oklch(0.904 0.005 272.597);
  --accent: oklch(0.391 0.016 2.097);
  --accent-foreground: oklch(0.905 0.006 1.132);
  --destructive: oklch(0.664 0.206 34.819);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.409 0.022 138.39);
  --chart-1: oklch(0.409 0.022 138.39);
  --chart-2: oklch(0.389 0.015 272.213);
  --chart-3: oklch(0.391 0.016 2.097);
  --chart-4: oklch(0.416 0.017 272.205);
  --chart-5: oklch(0.413 0.03 138.416);
}