Replacement for shadcn/ui

Replacement is a shadcn/ui theme built around a vivid green primary color (#5dee9f) with vivid pink accents (#ee5dad). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#5dee9f) on a green-tinted background (#04100a).

Color palette

TokenLightDark
Background
#fbfefcwhite
#04100ablack
Foreground
#04100ablack
#f8fcfamintcream
Card
#f8fcfamintcream
#05140cblack
Card foreground
#030c07black
#fcfdfcwhite
Popover
#f8fcfamintcream
#05140cblack
Popover foreground
#030c07black
#fcfdfcwhite
Primary
#5dee9fmediumaquamarine
#5dee9fmediumaquamarine
Primary foreground
#02170cblack
#02170cblack
Secondary
#ee5dadhotpink
#ee5dadhotpink
Secondary foreground
#17020eblack
#17020eblack
Muted
#ecd4e2gainsboro
#2b1320black
Muted foreground
#60575cdimgray
#a89fa4darkgray
Accent
#ee5dadhotpink
#ee5dadhotpink
Accent foreground
#17020eblack
#17020eblack
Destructive
#ca4802chocolate
#f75802orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5dee9fmediumaquamarine
#5dee9fmediumaquamarine

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.16:1AAA
Primary button12.56:1AAA
Secondary button6.48:1AA
Muted text5.01:1AA
Accent6.48:1AA
Destructive4.73:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.48:1AAA
Primary button12.56:1AAA
Secondary button6.48:1AA
Muted text6.73:1AA
Accent6.48:1AA
Destructive3.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 162.546);
  --foreground: oklch(0.159 0.024 160.607);
  --muted: oklch(0.895 0.032 343.461);
  --muted-foreground: oklch(0.468 0.014 343.349);
  --popover: oklch(0.987 0.006 162.471);
  --popover-foreground: oklch(0.142 0.021 162.291);
  --card: oklch(0.987 0.006 162.471);
  --card-foreground: oklch(0.142 0.021 162.291);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.851 0.168 155.883);
  --primary-foreground: oklch(0.183 0.037 158.125);
  --secondary: oklch(0.688 0.195 349.365);
  --secondary-foreground: oklch(0.145 0.047 347.102);
  --accent: oklch(0.688 0.195 349.365);
  --accent-foreground: oklch(0.145 0.047 347.102);
  --destructive: oklch(0.575 0.177 40.72);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.168 155.883);
  --chart-1: oklch(0.851 0.168 155.883);
  --chart-2: oklch(0.688 0.195 349.365);
  --chart-3: oklch(0.688 0.195 349.365);
  --chart-4: oklch(0.71 0.18 348.52);
  --chart-5: oklch(0.857 0.173 155.646);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.024 160.638);
  --foreground: oklch(0.987 0.005 162.498);
  --muted: oklch(0.226 0.044 347.087);
  --muted-foreground: oklch(0.711 0.013 343.055);
  --popover: oklch(0.175 0.028 158.955);
  --popover-foreground: oklch(0.994 0.002 162.558);
  --card: oklch(0.175 0.028 158.955);
  --card-foreground: oklch(0.994 0.002 162.558);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.851 0.168 155.883);
  --primary-foreground: oklch(0.183 0.037 158.125);
  --secondary: oklch(0.688 0.195 349.365);
  --secondary-foreground: oklch(0.145 0.047 347.102);
  --accent: oklch(0.688 0.195 349.365);
  --accent-foreground: oklch(0.145 0.047 347.102);
  --destructive: oklch(0.667 0.208 40.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.168 155.883);
  --chart-1: oklch(0.851 0.168 155.883);
  --chart-2: oklch(0.688 0.195 349.365);
  --chart-3: oklch(0.688 0.195 349.365);
  --chart-4: oklch(0.71 0.18 348.52);
  --chart-5: oklch(0.857 0.173 155.646);
}