Envious for shadcn/ui

Envious is a shadcn/ui theme built around a muted deep cyan primary color (#13191b) with muted light cyan accents (#dee5e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep cyan primary (#13191b) on a cyan-tinted background (#030a0c).

Color palette

TokenLightDark
Background
#ffffffwhite
#030a0cblack
Foreground
#010709black
#ffffffwhite
Card
#ffffffwhite
#030a0cblack
Card foreground
#010709black
#ffffffwhite
Popover
#ffffffwhite
#030a0cblack
Popover foreground
#010709black
#ffffffwhite
Primary
#13191bblack
#13191bblack
Primary foreground
#a1b8bfdarkgray
#a1b8bfdarkgray
Secondary
#dee5e7gainsboro
#191e1fblack
Secondary foreground
#3e5056darkslategray
#aeb9bcsilver
Muted
#cce0e6gainsboro
#192d33darkslategray
Muted foreground
#3f484adarkslategray
#b5bdc0silver
Accent
#dee5e7gainsboro
#191e1fblack
Accent foreground
#3e5056darkslategray
#aeb9bcsilver
Destructive
#810c03maroon
#f93224orangered
Destructive foreground
#fdbeb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13191bblack
#13191bblack

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button8.54:1AAA
Secondary button6.64:1AA
Muted text6.85:1AA
Accent6.64:1AA
Destructive6.65:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button8.54:1AAA
Secondary button8.42:1AAA
Muted text7.49:1AAA
Accent8.42:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.017 211.755);
  --muted: oklch(0.893 0.023 217.923);
  --muted-foreground: oklch(0.394 0.012 217.964);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.017 211.755);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.121 0.017 211.755);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.209 0.011 218.214);
  --primary-foreground: oklch(0.767 0.027 218.018);
  --secondary: oklch(0.918 0.008 217.794);
  --secondary-foreground: oklch(0.419 0.024 218.309);
  --accent: oklch(0.918 0.008 217.794);
  --accent-foreground: oklch(0.419 0.024 218.309);
  --destructive: oklch(0.385 0.15 30.053);
  --destructive-foreground: oklch(0.858 0.074 23.372);
  --ring: oklch(0.209 0.011 218.214);
  --chart-1: oklch(0.209 0.011 218.214);
  --chart-2: oklch(0.918 0.008 217.794);
  --chart-3: oklch(0.918 0.008 217.794);
  --chart-4: oklch(0.941 0.006 217.778);
  --chart-5: oklch(0.21 0.012 218.322);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 213.976);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.284 0.028 219.175);
  --muted-foreground: oklch(0.793 0.01 217.821);
  --popover: oklch(0.137 0.014 213.976);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.014 213.976);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.209 0.011 218.214);
  --primary-foreground: oklch(0.767 0.027 218.018);
  --secondary: oklch(0.229 0.007 217.965);
  --secondary-foreground: oklch(0.778 0.014 217.855);
  --accent: oklch(0.229 0.007 217.965);
  --accent-foreground: oklch(0.778 0.014 217.855);
  --destructive: oklch(0.637 0.234 29.439);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.209 0.011 218.214);
  --chart-1: oklch(0.209 0.011 218.214);
  --chart-2: oklch(0.229 0.007 217.965);
  --chart-3: oklch(0.229 0.007 217.965);
  --chart-4: oklch(0.262 0.008 217.986);
  --chart-5: oklch(0.21 0.012 218.322);
}