Lively for shadcn/ui

Lively is a shadcn/ui theme built around a vivid deep blue primary color (#07518d) with vivid deep orange accents (#8d4307). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the vivid deep blue primary (#07518d) on a blue-tinted background (#040b10).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#040b10black
Foreground
#000000black
#f8fafcghostwhite
Card
#fbfdfdwhite
#040b10black
Card foreground
#000000black
#f8fafcghostwhite
Popover
#fbfdfdwhite
#040b10black
Popover foreground
#000000black
#f8fafcghostwhite
Primary
#07518dteal
#07518dteal
Primary foreground
#cae5fclavender
#cae5fclavender
Secondary
#8d4307saddlebrown
#8d4307saddlebrown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f6f2eewhitesmoke
#110c09black
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#8d4307saddlebrown
#8d4307saddlebrown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d1d01darkred
#ef2d01orangered
Destructive foreground
#ffdad1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#07518dteal
#07518dteal

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.53:1AAA
Primary button6.30:1AA
Secondary button7.15:1AAA
Muted text6.00:1AA
Accent7.15:1AAA
Destructive6.18:1AA
Dark mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button6.30:1AA
Secondary button7.15:1AAA
Muted text7.69:1AAA
Accent7.15:1AAA
Destructive4.17: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.992 0.002 242.217);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.963 0.007 62.099);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.992 0.002 242.217);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.002 242.217);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.427 0.118 250.493);
  --primary-foreground: oklch(0.91 0.043 242.83);
  --secondary: oklch(0.47 0.118 51.477);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.47 0.118 51.477);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.452 0.166 32.922);
  --destructive-foreground: oklch(0.916 0.043 32.748);
  --ring: oklch(0.427 0.118 250.493);
  --chart-1: oklch(0.427 0.118 250.493);
  --chart-2: oklch(0.47 0.118 51.477);
  --chart-3: oklch(0.47 0.118 51.477);
  --chart-4: oklch(0.503 0.127 51.162);
  --chart-5: oklch(0.429 0.121 250.868);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.016 239.042);
  --foreground: oklch(0.984 0.003 242.233);
  --muted: oklch(0.16 0.011 61.632);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.144 0.016 239.042);
  --popover-foreground: oklch(0.984 0.003 242.233);
  --card: oklch(0.144 0.016 239.042);
  --card-foreground: oklch(0.984 0.003 242.233);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.427 0.118 250.493);
  --primary-foreground: oklch(0.91 0.043 242.83);
  --secondary: oklch(0.47 0.118 51.477);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.47 0.118 51.477);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.613 0.23 32.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.427 0.118 250.493);
  --chart-1: oklch(0.427 0.118 250.493);
  --chart-2: oklch(0.47 0.118 51.477);
  --chart-3: oklch(0.47 0.118 51.477);
  --chart-4: oklch(0.503 0.127 51.162);
  --chart-5: oklch(0.429 0.121 250.868);
}