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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.34:1 | AA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 5.21:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 20.31:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 5.34:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.47:1 | AA Large |
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);
}