Avaricious for shadcn/ui

Avaricious is a shadcn/ui theme built around a muted green primary color (#6a7641) with muted indigo accents (#4e4176). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted green primary (#6a7641) on a green-tinted background (#090b04).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#090b04black
Foreground
#0d1005black
#f8f9f6whitesmoke
Card
#fdfdfbsnow
#090b04black
Card foreground
#0d1005black
#f8f9f6whitesmoke
Popover
#fdfdfbsnow
#090b04black
Popover foreground
#0d1005black
#f8f9f6whitesmoke
Primary
#6a7641darkolivegreen
#6a7641darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4e4176darkslateblue
#4e4176darkslateblue
Secondary foreground
#f3f2f8whitesmoke
#f3f2f8whitesmoke
Muted
#f0eef6whitesmoke
#0b0911black
Muted foreground
#555161dimgray
#a19eaedarkgray
Accent
#4e4176darkslateblue
#4e4176darkslateblue
Accent foreground
#f3f2f8whitesmoke
#f3f2f8whitesmoke
Destructive
#d43b11firebrick
#f06842tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6a7641darkolivegreen
#6a7641darkolivegreen

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button4.88:1AA
Secondary button8.04:1AAA
Muted text6.68:1AA
Accent8.04:1AAA
Destructive4.71:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button4.88:1AA
Secondary button8.04:1AAA
Muted text7.57:1AAA
Accent8.04:1AAA
Destructive6.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 117.13);
  --foreground: oklch(0.164 0.023 118.805);
  --muted: oklch(0.953 0.011 296.864);
  --muted-foreground: oklch(0.445 0.026 296.002);
  --popover: oklch(0.995 0.003 117.13);
  --popover-foreground: oklch(0.164 0.023 118.805);
  --card: oklch(0.995 0.003 117.13);
  --card-foreground: oklch(0.164 0.023 118.805);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.544 0.077 119.794);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.414 0.088 292.91);
  --secondary-foreground: oklch(0.963 0.008 296.93);
  --accent: oklch(0.414 0.088 292.91);
  --accent-foreground: oklch(0.963 0.008 296.93);
  --destructive: oklch(0.579 0.196 34.714);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.077 119.794);
  --chart-1: oklch(0.544 0.077 119.794);
  --chart-2: oklch(0.414 0.088 292.91);
  --chart-3: oklch(0.414 0.088 292.91);
  --chart-4: oklch(0.437 0.093 292.855);
  --chart-5: oklch(0.551 0.084 120.033);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.017 117.475);
  --foreground: oklch(0.98 0.004 117.154);
  --muted: oklch(0.145 0.018 294.982);
  --muted-foreground: oklch(0.707 0.023 296.479);
  --popover: oklch(0.145 0.017 117.475);
  --popover-foreground: oklch(0.98 0.004 117.154);
  --card: oklch(0.145 0.017 117.475);
  --card-foreground: oklch(0.98 0.004 117.154);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.544 0.077 119.794);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.414 0.088 292.91);
  --secondary-foreground: oklch(0.963 0.008 296.93);
  --accent: oklch(0.414 0.088 292.91);
  --accent-foreground: oklch(0.963 0.008 296.93);
  --destructive: oklch(0.679 0.176 36.288);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.544 0.077 119.794);
  --chart-1: oklch(0.544 0.077 119.794);
  --chart-2: oklch(0.414 0.088 292.91);
  --chart-3: oklch(0.414 0.088 292.91);
  --chart-4: oklch(0.437 0.093 292.855);
  --chart-5: oklch(0.551 0.084 120.033);
}