Envious for shadcn/ui

Envious is a shadcn/ui theme built around a muted light green primary color (#f7f9f5) with muted light pink accents (#f9f5f7). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted light green primary (#f7f9f5) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#080b04black
Foreground
#070c03black
#f7f8f7whitesmoke
Card
#fafdf7mintcream
#080b04black
Card foreground
#070c03black
#f7f8f7whitesmoke
Popover
#fafdf7mintcream
#080b04black
Popover foreground
#070c03black
#f7f8f7whitesmoke
Primary
#f7f9f5whitesmoke
#f7f9f5whitesmoke
Primary foreground
#2b371fdarkslategray
#2b371fdarkslategray
Secondary
#f5f7f9whitesmoke
#f5f7f9whitesmoke
Secondary foreground
#445d79darkslateblue
#445d79darkslateblue
Muted
#f0f2f5whitesmoke
#0a0d0fblack
Muted foreground
#60666cdimgray
#93999fdarkgray
Accent
#f9f5f7whitesmoke
#f9f5f7whitesmoke
Accent foreground
#79445ddimgray
#79445ddimgray
Destructive
#870c08darkred
#d9130dred
Destructive foreground
#fcc7c5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7f9f5whitesmoke
#f7f9f5whitesmoke

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button11.92:1AAA
Secondary button6.34:1AA
Muted text5.18:1AA
Accent6.96:1AA
Destructive6.76:1AA
Dark mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button11.92:1AAA
Secondary button6.34:1AA
Muted text6.78:1AA
Accent6.96:1AA
Destructive5.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 129.216);
  --foreground: oklch(0.147 0.025 128.105);
  --muted: oklch(0.96 0.005 249.696);
  --muted-foreground: oklch(0.507 0.012 249.872);
  --popover: oklch(0.99 0.008 129.216);
  --popover-foreground: oklch(0.147 0.025 128.105);
  --card: oklch(0.99 0.008 129.216);
  --card-foreground: oklch(0.147 0.025 128.105);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.981 0.006 129.192);
  --primary-foreground: oklch(0.32 0.044 130.768);
  --secondary: oklch(0.976 0.004 249.686);
  --secondary-foreground: oklch(0.471 0.054 250.667);
  --accent: oklch(0.975 0.005 346.162);
  --accent-foreground: oklch(0.458 0.08 350.338);
  --destructive: oklch(0.397 0.155 29.026);
  --destructive-foreground: oklch(0.875 0.06 20.669);
  --ring: oklch(0.981 0.006 129.192);
  --chart-1: oklch(0.981 0.006 129.192);
  --chart-2: oklch(0.976 0.004 249.686);
  --chart-3: oklch(0.975 0.005 346.162);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.981 0.007 129.199);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.02 128.188);
  --foreground: oklch(0.979 0.002 129.152);
  --muted: oklch(0.156 0.007 250.085);
  --muted-foreground: oklch(0.679 0.012 249.806);
  --popover: oklch(0.144 0.02 128.188);
  --popover-foreground: oklch(0.979 0.002 129.152);
  --card: oklch(0.144 0.02 128.188);
  --card-foreground: oklch(0.979 0.002 129.152);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.981 0.006 129.192);
  --primary-foreground: oklch(0.32 0.044 130.768);
  --secondary: oklch(0.976 0.004 249.686);
  --secondary-foreground: oklch(0.471 0.054 250.667);
  --accent: oklch(0.975 0.005 346.162);
  --accent-foreground: oklch(0.458 0.08 350.338);
  --destructive: oklch(0.561 0.223 29.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.981 0.006 129.192);
  --chart-1: oklch(0.981 0.006 129.192);
  --chart-2: oklch(0.976 0.004 249.686);
  --chart-3: oklch(0.975 0.005 346.162);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.981 0.007 129.199);
}