Alive for shadcn/ui

Alive is a shadcn/ui theme built around a vivid light pink primary color (#fee7f1) with vivid light red accents (#fee7e7). The light mode uses a neutral background (#fdf6fa). Dark mode keeps the vivid light pink primary (#fee7f1) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fdf6fasnow
#070305black
Foreground
#11040ablack
#faf5f7whitesmoke
Card
#fcf2f7lavenderblush
#0a0507black
Card foreground
#0c0307black
#fcf8fasnow
Popover
#fdf6fasnow
#070305black
Popover foreground
#11040ablack
#faf5f7whitesmoke
Primary
#fee7f1lavenderblush
#fee7f1lavenderblush
Primary foreground
#ab0754brown
#ab0754brown
Secondary
#fee7fdlavenderblush
#fee7fdlavenderblush
Secondary foreground
#490347indigo
#490347indigo
Muted
#e5dce5gainsboro
#231a23black
Muted foreground
#534b53darkslategray
#b4acb4darkgray
Accent
#fee7e7mistyrose
#fee7e7mistyrose
Accent foreground
#ab0d07firebrick
#ab0d07firebrick
Destructive
#ad3e0bsaddlebrown
#f1601echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fee7f1lavenderblush
#fee7f1lavenderblush

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.63:1AAA
Primary button6.18:1AA
Secondary button12.98:1AAA
Muted text6.27:1AA
Accent6.38:1AA
Destructive6.06:1AA
Dark mode
Text on background18.98:1AAA
Text on card19.20:1AAA
Primary button6.18:1AA
Secondary button12.98:1AAA
Muted text7.63:1AAA
Accent6.38:1AA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 347.137);
  --foreground: oklch(0.134 0.03 348.839);
  --muted: oklch(0.904 0.015 326.688);
  --muted-foreground: oklch(0.424 0.016 326.865);
  --popover: oklch(0.981 0.008 347.137);
  --popover-foreground: oklch(0.134 0.03 348.839);
  --card: oklch(0.971 0.013 347.255);
  --card-foreground: oklch(0.12 0.026 347.004);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.029 347.72);
  --primary-foreground: oklch(0.481 0.191 2.853);
  --secondary: oklch(0.952 0.039 326.89);
  --secondary-foreground: oklch(0.286 0.126 329.877);
  --accent: oklch(0.947 0.025 19.985);
  --accent-foreground: oklch(0.47 0.187 29.237);
  --destructive: oklch(0.514 0.155 40.269);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.029 347.72);
  --chart-1: oklch(0.948 0.029 347.72);
  --chart-2: oklch(0.952 0.039 326.89);
  --chart-3: oklch(0.947 0.025 19.985);
  --chart-4: oklch(0.981 0.016 326.677);
  --chart-5: oklch(0.948 0.03 347.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.012 346.752);
  --foreground: oklch(0.974 0.007 347.094);
  --muted: oklch(0.233 0.022 327.312);
  --muted-foreground: oklch(0.753 0.014 326.7);
  --popover: oklch(0.11 0.012 346.752);
  --popover-foreground: oklch(0.974 0.007 347.094);
  --card: oklch(0.126 0.013 346.752);
  --card-foreground: oklch(0.983 0.004 347.031);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.948 0.029 347.72);
  --primary-foreground: oklch(0.481 0.191 2.853);
  --secondary: oklch(0.952 0.039 326.89);
  --secondary-foreground: oklch(0.286 0.126 329.877);
  --accent: oklch(0.947 0.025 19.985);
  --accent-foreground: oklch(0.47 0.187 29.237);
  --destructive: oklch(0.668 0.192 41.258);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.948 0.029 347.72);
  --chart-1: oklch(0.948 0.029 347.72);
  --chart-2: oklch(0.952 0.039 326.89);
  --chart-3: oklch(0.947 0.025 19.985);
  --chart-4: oklch(0.981 0.016 326.677);
  --chart-5: oklch(0.948 0.03 347.747);
}