Revival for shadcn/ui

Revival is a shadcn/ui theme built around a vivid green primary color (#13a424) with vivid purple accents (#a41393). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#13a424) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#060e07black
Foreground
#010401black
#ffffffwhite
Card
#fcfcfcsnow
#081109black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#060e07black
Popover foreground
#010401black
#ffffffwhite
Primary
#13a424forestgreen
#13a424forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a41393darkmagenta
#a41393darkmagenta
Secondary foreground
#fdedfblavenderblush
#fdedfblavenderblush
Muted
#f1e4eflavender
#1b0e19black
Muted foreground
#614c5fdimgray
#b39eb0darkgray
Accent
#a41393darkmagenta
#a41393darkmagenta
Accent foreground
#fdedfblavenderblush
#fdedfblavenderblush
Destructive
#c42e08firebrick
#e13509orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13a424forestgreen
#13a424forestgreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.54:1AAA
Primary button3.28:1AA Large
Secondary button6.01:1AA
Muted text6.32:1AA
Accent6.01:1AA
Destructive5.62:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.13:1AAA
Primary button3.28:1AA Large
Secondary button6.01:1AA
Muted text7.50:1AAA
Accent6.01:1AA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.02 147.744);
  --muted: oklch(0.933 0.019 329.374);
  --muted-foreground: oklch(0.446 0.04 330.127);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.02 147.744);
  --card: oklch(0.992 0 161.565);
  --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.626 0.199 143.729);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.501 0.213 334.137);
  --secondary-foreground: oklch(0.962 0.025 329.437);
  --accent: oklch(0.501 0.213 334.137);
  --accent-foreground: oklch(0.962 0.025 329.437);
  --destructive: oklch(0.537 0.191 33.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.626 0.199 143.729);
  --chart-1: oklch(0.626 0.199 143.729);
  --chart-2: oklch(0.501 0.213 334.137);
  --chart-3: oklch(0.501 0.213 334.137);
  --chart-4: oklch(0.531 0.226 334.171);
  --chart-5: oklch(0.634 0.203 143.613);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.019 148.078);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.187 0.029 330.804);
  --muted-foreground: oklch(0.723 0.035 329.688);
  --popover: oklch(0.153 0.019 148.078);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.167 0.022 147.643);
  --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.626 0.199 143.729);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.501 0.213 334.137);
  --secondary-foreground: oklch(0.962 0.025 329.437);
  --accent: oklch(0.501 0.213 334.137);
  --accent-foreground: oklch(0.962 0.025 329.437);
  --destructive: oklch(0.595 0.213 33.336);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.626 0.199 143.729);
  --chart-1: oklch(0.626 0.199 143.729);
  --chart-2: oklch(0.501 0.213 334.137);
  --chart-3: oklch(0.501 0.213 334.137);
  --chart-4: oklch(0.531 0.226 334.171);
  --chart-5: oklch(0.634 0.203 143.613);
}