Avaricious for shadcn/ui

Avaricious is a shadcn/ui theme built around a near-white primary color (#f9fafa) with muted light teal accents (#c7d6d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f9fafa) on a neutral background (#030808).

Color palette

TokenLightDark
Background
#ffffffwhite
#030808black
Foreground
#031112black
#f5fafamintcream
Card
#fcfcfcsnow
#040b0bblack
Card foreground
#020d0dblack
#f8fcfcmintcream
Popover
#ffffffwhite
#030808black
Popover foreground
#031112black
#f5fafamintcream
Primary
#f9fafaghostwhite
#f9fafaghostwhite
Primary foreground
#293333darkslategray
#293333darkslategray
Secondary
#c7d6d6lightgrey
#161818black
Secondary foreground
#2e3d3edarkslategray
#aeb2b2darkgray
Muted
#d9ececlavender
#132526black
Muted foreground
#455d5edarkslategray
#a1b9badarkgray
Accent
#c7d6d6lightgrey
#161818black
Accent foreground
#2e3d3edarkslategray
#aeb2b2darkgray
Destructive
#711409maroon
#ef4734tomato
Destructive foreground
#f9bab4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9fafaghostwhite
#f9fafaghostwhite

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.27:1AAA
Primary button12.47:1AAA
Secondary button7.54:1AAA
Muted text5.77:1AA
Accent7.54:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button12.47:1AAA
Secondary button8.34:1AAA
Muted text7.68:1AAA
Accent8.34:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.165 0.023 196.501);
  --muted: oklch(0.93 0.02 198.049);
  --muted-foreground: oklch(0.461 0.029 197.495);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.165 0.023 196.501);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.147 0.02 196.377);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.986 0.001 198.344);
  --primary-foreground: oklch(0.311 0.013 197.745);
  --secondary: oklch(0.864 0.015 198.098);
  --secondary-foreground: oklch(0.348 0.02 197.544);
  --accent: oklch(0.864 0.015 198.098);
  --accent-foreground: oklch(0.348 0.02 197.544);
  --destructive: oklch(0.358 0.129 30.491);
  --destructive-foreground: oklch(0.846 0.073 25.932);
  --ring: oklch(0.986 0.001 198.344);
  --chart-1: oklch(0.986 0.001 198.344);
  --chart-2: oklch(0.864 0.015 198.098);
  --chart-3: oklch(0.864 0.015 198.098);
  --chart-4: oklch(0.886 0.013 198.145);
  --chart-5: oklch(0.986 0.001 198.339);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.012 196.769);
  --foreground: oklch(0.981 0.006 198.277);
  --muted: oklch(0.25 0.025 197.081);
  --muted-foreground: oklch(0.768 0.026 197.867);
  --popover: oklch(0.124 0.012 196.769);
  --popover-foreground: oklch(0.981 0.006 198.277);
  --card: oklch(0.142 0.014 196.84);
  --card-foreground: oklch(0.987 0.004 198.306);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.986 0.001 198.344);
  --primary-foreground: oklch(0.311 0.013 197.745);
  --secondary: oklch(0.206 0.002 198.209);
  --secondary-foreground: oklch(0.761 0.005 198.259);
  --accent: oklch(0.206 0.002 198.209);
  --accent-foreground: oklch(0.761 0.005 198.259);
  --destructive: oklch(0.637 0.207 30.074);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.986 0.001 198.344);
  --chart-1: oklch(0.986 0.001 198.344);
  --chart-2: oklch(0.206 0.002 198.209);
  --chart-3: oklch(0.206 0.002 198.209);
  --chart-4: oklch(0.239 0.003 198.194);
  --chart-5: oklch(0.986 0.001 198.339);
}