Greedy for shadcn/ui

Greedy is a shadcn/ui theme built around a yellow primary color (#776d22) with purple accents (#6d2277). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#776d22) on a yellow-tinted background (#0c0b03).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0b03black
Foreground
#040401black
#ffffffwhite
Card
#fcfcfcsnow
#100f04black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0c0b03black
Popover foreground
#040401black
#ffffffwhite
Primary
#776d22olivedrab
#776d22olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#22776dseagreen
#22776dseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eceeeewhitesmoke
#111313black
Muted foreground
#404544darkslategray
#babfbfsilver
Accent
#6d2277rebeccapurple
#6d2277rebeccapurple
Accent foreground
#f0d7f4lavender
#f0d7f4lavender
Destructive
#dc3004orangered
#e63205orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#776d22olivedrab
#776d22olivedrab

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.54:1AAA
Primary button5.23:1AA
Secondary button5.32:1AA
Muted text8.39:1AAA
Accent7.32:1AAA
Destructive4.71:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.23:1AAA
Primary button5.23:1AA
Secondary button5.32:1AA
Muted text10.02:1AAA
Accent7.32:1AAA
Destructive4.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.016 104.167);
  --muted: oklch(0.948 0.003 188.842);
  --muted-foreground: oklch(0.385 0.007 188.47);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.016 104.167);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.53 0.095 101.676);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.081 183.809);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.405 0.152 322.815);
  --accent-foreground: oklch(0.909 0.047 322.285);
  --destructive: oklch(0.582 0.212 33.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.53 0.095 101.676);
  --chart-1: oklch(0.53 0.095 101.676);
  --chart-2: oklch(0.518 0.081 183.809);
  --chart-3: oklch(0.405 0.152 322.815);
  --chart-4: oklch(0.554 0.087 183.747);
  --chart-5: oklch(0.536 0.099 101.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.02 103.377);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.184 0.004 188.39);
  --muted-foreground: oklch(0.801 0.006 188.733);
  --popover: oklch(0.148 0.02 103.377);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.165 0.023 102.682);
  --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.53 0.095 101.676);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.081 183.809);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.405 0.152 322.815);
  --accent-foreground: oklch(0.909 0.047 322.285);
  --destructive: oklch(0.601 0.22 33.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.53 0.095 101.676);
  --chart-1: oklch(0.53 0.095 101.676);
  --chart-2: oklch(0.518 0.081 183.809);
  --chart-3: oklch(0.405 0.152 322.815);
  --chart-4: oklch(0.554 0.087 183.747);
  --chart-5: oklch(0.536 0.099 101.606);
}