Alive for shadcn/ui

Alive is a shadcn/ui theme built around a deep green primary color (#192d0b) with deep green accents (#0b2d0e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#192d0b) on a neutral background (#050704).

Color palette

TokenLightDark
Background
#ffffffwhite
#050704black
Foreground
#050802black
#fcfdfcwhite
Card
#fcfcfcsnow
#070a05black
Card foreground
#020401black
#ffffffwhite
Popover
#ffffffwhite
#050704black
Popover foreground
#050802black
#fcfdfcwhite
Primary
#192d0bblack
#192d0bblack
Primary foreground
#75d035yellowgreen
#75d035yellowgreen
Secondary
#2b2d0bblack
#2b2d0bblack
Secondary foreground
#c3d035yellowgreen
#c3d035yellowgreen
Muted
#f5f5efwhitesmoke
#0f100ablack
Muted foreground
#434441darkslategray
#bebebbsilver
Accent
#0b2d0eblack
#0b2d0eblack
Accent foreground
#35d041limegreen
#35d041limegreen
Destructive
#d44802orangered
#e34d02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#192d0bblack
#192d0bblack

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.13:1AAA
Primary button7.58:1AAA
Secondary button8.33:1AAA
Muted text8.96:1AAA
Accent7.31:1AAA
Destructive4.43:1AA Large
Dark mode
Text on background19.86:1AAA
Text on card19.90:1AAA
Primary button7.58:1AAA
Secondary button8.33:1AAA
Muted text10.27:1AAA
Accent7.31:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.021 130.257);
  --muted: oklch(0.969 0.008 110.396);
  --muted-foreground: oklch(0.384 0.004 110.461);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.021 130.257);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.017 130.257);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.272 0.063 134.439);
  --primary-foreground: oklch(0.771 0.204 135.373);
  --secondary: oklch(0.287 0.053 113.763);
  --secondary-foreground: oklch(0.82 0.169 114.374);
  --accent: oklch(0.265 0.069 144.689);
  --accent-foreground: oklch(0.75 0.222 143.978);
  --destructive: oklch(0.591 0.187 39.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.063 134.439);
  --chart-1: oklch(0.272 0.063 134.439);
  --chart-2: oklch(0.287 0.053 113.763);
  --chart-3: oklch(0.265 0.069 144.689);
  --chart-4: oklch(0.334 0.064 113.93);
  --chart-5: oklch(0.275 0.065 134.586);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.011 130.94);
  --foreground: oklch(0.994 0.003 131.746);
  --muted: oklch(0.169 0.012 111.522);
  --muted-foreground: oklch(0.801 0.004 110.333);
  --popover: oklch(0.121 0.011 130.94);
  --popover-foreground: oklch(0.994 0.003 131.746);
  --card: oklch(0.139 0.013 130.94);
  --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.272 0.063 134.439);
  --primary-foreground: oklch(0.771 0.204 135.373);
  --secondary: oklch(0.287 0.053 113.763);
  --secondary-foreground: oklch(0.82 0.169 114.374);
  --accent: oklch(0.265 0.069 144.689);
  --accent-foreground: oklch(0.75 0.222 143.978);
  --destructive: oklch(0.622 0.197 39.332);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.063 134.439);
  --chart-1: oklch(0.272 0.063 134.439);
  --chart-2: oklch(0.287 0.053 113.763);
  --chart-3: oklch(0.265 0.069 144.689);
  --chart-4: oklch(0.334 0.064 113.93);
  --chart-5: oklch(0.275 0.065 134.586);
}