Inevitable for shadcn/ui

Inevitable is a shadcn/ui theme built around a light green primary color (#e9fceb) with light purple accents (#fce9fa). The light mode uses a neutral background (#f7fcf8). Dark mode keeps the light green primary (#e9fceb) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#f7fcf8mintcream
#030703black
Foreground
#030c04black
#f8fcf8mintcream
Card
#f4fbf4whitesmoke
#050b05black
Card foreground
#020803black
#fcfdfcwhite
Popover
#f7fcf8mintcream
#030703black
Popover foreground
#030c04black
#f8fcf8mintcream
Primary
#e9fcebhoneydew
#e9fcebhoneydew
Primary foreground
#0a4210darkgreen
#0a4210darkgreen
Secondary
#fce9falavenderblush
#fce9falavenderblush
Secondary foreground
#9a188ddarkmagenta
#9a188ddarkmagenta
Muted
#e2d0e0gainsboro
#2f1d2edarkslategray
Muted foreground
#544a53darkslategray
#b5abb4darkgray
Accent
#fce9falavenderblush
#fce9falavenderblush
Accent foreground
#9a188ddarkmagenta
#9a188ddarkmagenta
Destructive
#93240bsaddlebrown
#df3711orangered
Destructive foreground
#fcdcd4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9fcebhoneydew
#e9fcebhoneydew

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.21:1AAA
Primary button10.85:1AAA
Secondary button6.28:1AA
Muted text5.75:1AA
Accent6.28:1AA
Destructive6.53:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.52:1AAA
Primary button10.85:1AAA
Secondary button6.28:1AA
Muted text7.06:1AAA
Accent6.28:1AA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 148.504);
  --foreground: oklch(0.141 0.027 147.176);
  --muted: oklch(0.876 0.03 328.965);
  --muted-foreground: oklch(0.423 0.019 329.068);
  --popover: oklch(0.987 0.008 148.504);
  --popover-foreground: oklch(0.141 0.027 147.176);
  --card: oklch(0.981 0.012 148.458);
  --card-foreground: oklch(0.123 0.024 147.24);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.971 0.029 148.25);
  --primary-foreground: oklch(0.333 0.097 144.261);
  --secondary: oklch(0.953 0.03 328.933);
  --secondary-foreground: oklch(0.483 0.201 333.024);
  --accent: oklch(0.953 0.03 328.933);
  --accent-foreground: oklch(0.483 0.201 333.024);
  --destructive: oklch(0.439 0.151 33.469);
  --destructive-foreground: oklch(0.918 0.037 32.725);
  --ring: oklch(0.971 0.029 148.25);
  --chart-1: oklch(0.971 0.029 148.25);
  --chart-2: oklch(0.953 0.03 328.933);
  --chart-3: oklch(0.953 0.03 328.933);
  --chart-4: oklch(0.981 0.012 328.725);
  --chart-5: oklch(0.972 0.031 148.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.016 147.673);
  --foreground: oklch(0.987 0.006 148.527);
  --muted: oklch(0.262 0.04 330.17);
  --muted-foreground: oklch(0.752 0.016 328.827);
  --popover: oklch(0.121 0.016 147.673);
  --popover-foreground: oklch(0.987 0.006 148.527);
  --card: oklch(0.138 0.019 147.663);
  --card-foreground: oklch(0.993 0.003 148.56);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.971 0.029 148.25);
  --primary-foreground: oklch(0.333 0.097 144.261);
  --secondary: oklch(0.953 0.03 328.933);
  --secondary-foreground: oklch(0.483 0.201 333.024);
  --accent: oklch(0.953 0.03 328.933);
  --accent-foreground: oklch(0.483 0.201 333.024);
  --destructive: oklch(0.593 0.209 33.173);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.029 148.25);
  --chart-1: oklch(0.971 0.029 148.25);
  --chart-2: oklch(0.953 0.03 328.933);
  --chart-3: oklch(0.953 0.03 328.933);
  --chart-4: oklch(0.981 0.012 328.725);
  --chart-5: oklch(0.972 0.031 148.236);
}