Greedy for shadcn/ui

Greedy is a shadcn/ui theme built around a vivid indigo primary color (#856af0) with neutral gray accents (#e0e0e1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#856af0) on an indigo-tinted background (#070410).

Color palette

TokenLightDark
Background
#ffffffwhite
#070410black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#080514black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070410black
Popover foreground
#000000black
#ffffffwhite
Primary
#856af0mediumslateblue
#856af0mediumslateblue
Primary foreground
#000000black
#000000black
Secondary
#e0e0e1gainsboro
#292735darkslategray
Secondary foreground
#474649darkslategray
#c2bed0silver
Muted
#dddce0gainsboro
#201f23black
Muted foreground
#5a556ddimgray
#9792aadarkgray
Accent
#e0e0e1gainsboro
#292735darkslategray
Accent foreground
#474649darkslategray
#c2bed0silver
Destructive
#a13112brown
#d84218chocolate
Destructive foreground
#fcece8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#856af0mediumslateblue
#856af0mediumslateblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.34:1AA
Secondary button7.09:1AAA
Muted text5.21:1AA
Accent7.09:1AAA
Destructive6.19:1AA
Dark mode
Text on background20.31:1AAA
Text on card20.13:1AAA
Primary button5.34:1AA
Secondary button8.07:1AAA
Muted text5.44:1AA
Accent8.07:1AAA
Destructive4.47: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 0 0);
  --muted: oklch(0.897 0.005 295.485);
  --muted-foreground: oklch(0.464 0.038 294.05);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --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.619 0.193 288.673);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.907 0.002 295.545);
  --secondary-foreground: oklch(0.396 0.005 295.355);
  --accent: oklch(0.907 0.002 295.545);
  --accent-foreground: oklch(0.396 0.005 295.355);
  --destructive: oklch(0.478 0.153 35.34);
  --destructive-foreground: oklch(0.956 0.018 35.96);
  --ring: oklch(0.619 0.193 288.673);
  --chart-1: oklch(0.619 0.193 288.673);
  --chart-2: oklch(0.907 0.002 295.545);
  --chart-3: oklch(0.907 0.002 295.545);
  --chart-4: oklch(0.93 0.001 295.554);
  --chart-5: oklch(0.615 0.199 288.313);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.031 293.273);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.006 295.101);
  --muted-foreground: oklch(0.673 0.034 294.631);
  --popover: oklch(0.122 0.031 293.273);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.035 292.016);
  --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.619 0.193 288.673);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.281 0.027 293.758);
  --secondary-foreground: oklch(0.81 0.025 295.002);
  --accent: oklch(0.281 0.027 293.758);
  --accent-foreground: oklch(0.81 0.025 295.002);
  --destructive: oklch(0.591 0.193 35.12);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.193 288.673);
  --chart-1: oklch(0.619 0.193 288.673);
  --chart-2: oklch(0.281 0.027 293.758);
  --chart-3: oklch(0.281 0.027 293.758);
  --chart-4: oklch(0.308 0.031 293.686);
  --chart-5: oklch(0.615 0.199 288.313);
}