Cradle for shadcn/ui

Cradle is a shadcn/ui theme built around a vivid green primary color (#24eb4f) with vivid red accents (#eb4f24). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#24eb4f) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030704black
Foreground
#000000black
#f8fcf9mintcream
Card
#f7fdf8mintcream
#040b06black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fbfefcwhite
#030704black
Popover foreground
#000000black
#f8fcf9mintcream
Primary
#24eb4flimegreen
#24eb4flimegreen
Primary foreground
#063d12darkgreen
#063d12darkgreen
Secondary
#4f24ebblueviolet
#4f24ebblueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddae7gainsboro
#1b1825black
Muted foreground
#5b5964dimgray
#9d9ba6darkgray
Accent
#eb4f24chocolate
#eb4f24chocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c24a0achocolate
#df560cchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#24eb4flimegreen
#24eb4flimegreen

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.31:1AAA
Primary button7.73:1AAA
Secondary button7.56:1AAA
Muted text4.99:1AA
Accent3.71:1AA Large
Destructive4.90:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.48:1AAA
Primary button7.73:1AAA
Secondary button7.56:1AAA
Muted text6.35:1AA
Accent3.71:1AA Large
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 152.555);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.017 295.988);
  --muted-foreground: oklch(0.469 0.018 295.616);
  --popover: oklch(0.994 0.004 152.555);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.008 152.493);
  --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.819 0.246 145.409);
  --primary-foreground: oklch(0.314 0.09 146.208);
  --secondary: oklch(0.477 0.265 279.343);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.637 0.199 35.538);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.565 0.166 42.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.246 145.409);
  --chart-1: oklch(0.819 0.246 145.409);
  --chart-2: oklch(0.477 0.265 279.343);
  --chart-3: oklch(0.637 0.199 35.538);
  --chart-4: oklch(0.5 0.255 281.994);
  --chart-5: oklch(0.828 0.252 145.227);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.017 151.947);
  --foreground: oklch(0.986 0.005 152.541);
  --muted: oklch(0.22 0.024 294.288);
  --muted-foreground: oklch(0.695 0.017 295.895);
  --popover: oklch(0.122 0.017 151.947);
  --popover-foreground: oklch(0.986 0.005 152.541);
  --card: oklch(0.139 0.019 151.895);
  --card-foreground: oklch(0.993 0.002 152.579);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.819 0.246 145.409);
  --primary-foreground: oklch(0.314 0.09 146.208);
  --secondary: oklch(0.477 0.265 279.343);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.637 0.199 35.538);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.185 41.787);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.246 145.409);
  --chart-1: oklch(0.819 0.246 145.409);
  --chart-2: oklch(0.477 0.265 279.343);
  --chart-3: oklch(0.637 0.199 35.538);
  --chart-4: oklch(0.5 0.255 281.994);
  --chart-5: oklch(0.828 0.252 145.227);
}