Lively for shadcn/ui

Lively is a shadcn/ui theme built around a light violet primary color (#f1e3f7) with light green accents (#eaf7e3). The light mode uses a neutral background (#faf8fb). Dark mode keeps the light violet primary (#f1e3f7) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#faf8fbghostwhite
#030204black
Foreground
#0c0411black
#ffffffwhite
Card
#f8f5fawhitesmoke
#060307black
Card foreground
#09030dblack
#ffffffwhite
Popover
#f8f5fawhitesmoke
#060307black
Popover foreground
#09030dblack
#ffffffwhite
Primary
#f1e3f7lavender
#f1e3f7lavender
Primary foreground
#642484rebeccapurple
#642484rebeccapurple
Secondary
#eaf7e3beige
#eaf7e3beige
Secondary foreground
#1b340edarkgreen
#1b340edarkgreen
Muted
#dce5d7gainsboro
#1f281ablack
Muted foreground
#627359dimgray
#95a68cdarkseagreen
Accent
#eaf7e3beige
#eaf7e3beige
Accent foreground
#1b340edarkgreen
#1b340edarkgreen
Destructive
#b3170ffirebrick
#ec2218crimson
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1e3f7lavender
#f1e3f7lavender

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card18.86:1AAA
Primary button8.01:1AAA
Secondary button12.26:1AAA
Muted text3.93:1AA Large
Accent12.26:1AAA
Destructive6.46:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.50:1AAA
Primary button8.01:1AAA
Secondary button12.26:1AAA
Muted text5.88:1AA
Accent12.26:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 314.804);
  --foreground: oklch(0.13 0.036 315.228);
  --muted: oklch(0.91 0.021 134.943);
  --muted-foreground: oklch(0.534 0.046 135.281);
  --popover: oklch(0.974 0.007 314.793);
  --popover-foreground: oklch(0.117 0.031 316.646);
  --card: oklch(0.974 0.007 314.793);
  --card-foreground: oklch(0.117 0.031 316.646);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.932 0.031 314.667);
  --primary-foreground: oklch(0.404 0.157 311.948);
  --secondary: oklch(0.962 0.03 134.986);
  --secondary-foreground: oklch(0.295 0.069 136.665);
  --accent: oklch(0.962 0.03 134.986);
  --accent-foreground: oklch(0.295 0.069 136.665);
  --destructive: oklch(0.491 0.189 29.315);
  --destructive-foreground: oklch(0.979 0.009 21.004);
  --ring: oklch(0.932 0.031 314.667);
  --chart-1: oklch(0.932 0.031 314.667);
  --chart-2: oklch(0.962 0.03 134.986);
  --chart-3: oklch(0.962 0.03 134.986);
  --chart-4: oklch(0.978 0.017 134.915);
  --chart-5: oklch(0.932 0.032 314.658);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.012 316.078);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.264 0.028 135.42);
  --muted-foreground: oklch(0.705 0.043 135.14);
  --popover: oklch(0.108 0.015 316.078);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.015 316.078);
  --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.932 0.031 314.667);
  --primary-foreground: oklch(0.404 0.157 311.948);
  --secondary: oklch(0.962 0.03 134.986);
  --secondary-foreground: oklch(0.295 0.069 136.665);
  --accent: oklch(0.962 0.03 134.986);
  --accent-foreground: oklch(0.295 0.069 136.665);
  --destructive: oklch(0.604 0.232 29.294);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.932 0.031 314.667);
  --chart-1: oklch(0.932 0.031 314.667);
  --chart-2: oklch(0.962 0.03 134.986);
  --chart-3: oklch(0.962 0.03 134.986);
  --chart-4: oklch(0.978 0.017 134.915);
  --chart-5: oklch(0.932 0.032 314.658);
}