Envious for shadcn/ui

Envious is a shadcn/ui theme built around a blue primary color (#2f77d0) with orange accents (#d0882f). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#2f77d0) on a blue-tinted background (#050a10).

Color palette

TokenLightDark
Background
#fbfcfewhite
#050a10black
Foreground
#030a11black
#f5f7fawhitesmoke
Card
#f7fafdghostwhite
#060c14black
Card foreground
#03070dblack
#f8fafcghostwhite
Popover
#fbfcfewhite
#050a10black
Popover foreground
#030a11black
#f5f7fawhitesmoke
Primary
#2f77d0royalblue
#2f77d0royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d0882fperu
#d0882fperu
Secondary foreground
#000000black
#000000black
Muted
#f5f3efwhitesmoke
#100d0ablack
Muted foreground
#49433cdarkslategray
#c3bdb6silver
Accent
#d0882fperu
#d0882fperu
Accent foreground
#000000black
#000000black
Destructive
#ba2e03firebrick
#fc5927tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2f77d0royalblue
#2f77d0royalblue

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.23:1AAA
Primary button4.47:1AA Large
Secondary button7.21:1AAA
Muted text8.79:1AAA
Accent7.21:1AAA
Destructive6.05:1AA
Dark mode
Text on background18.54:1AAA
Text on card18.75:1AAA
Primary button4.47:1AA Large
Secondary button7.21:1AAA
Muted text10.40:1AAA
Accent7.21:1AAA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 253.236);
  --foreground: oklch(0.139 0.021 247.346);
  --muted: oklch(0.964 0.006 73.176);
  --muted-foreground: oklch(0.386 0.015 72.891);
  --popover: oklch(0.991 0.002 253.236);
  --popover-foreground: oklch(0.139 0.021 247.346);
  --card: oklch(0.983 0.005 253.253);
  --card-foreground: oklch(0.125 0.018 244.242);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.572 0.154 255.452);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.685 0.133 66.892);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.133 66.892);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.519 0.182 34.576);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.572 0.154 255.452);
  --chart-1: oklch(0.572 0.154 255.452);
  --chart-2: oklch(0.685 0.133 66.892);
  --chart-3: oklch(0.685 0.133 66.892);
  --chart-4: oklch(0.703 0.127 68.137);
  --chart-5: oklch(0.572 0.16 255.671);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.017 248.656);
  --foreground: oklch(0.976 0.004 253.249);
  --muted: oklch(0.162 0.009 72.733);
  --muted-foreground: oklch(0.802 0.012 73.103);
  --popover: oklch(0.14 0.017 248.656);
  --popover-foreground: oklch(0.976 0.004 253.249);
  --card: oklch(0.152 0.02 251.525);
  --card-foreground: oklch(0.984 0.003 253.239);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.572 0.154 255.452);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.685 0.133 66.892);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.133 66.892);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.676 0.207 36.459);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.572 0.154 255.452);
  --chart-1: oklch(0.572 0.154 255.452);
  --chart-2: oklch(0.685 0.133 66.892);
  --chart-3: oklch(0.685 0.133 66.892);
  --chart-4: oklch(0.703 0.127 68.137);
  --chart-5: oklch(0.572 0.16 255.671);
}