Grateful is a shadcn/ui theme built around a muted indigo primary color (#8478b0) with muted green accents (#a4b078). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the muted indigo primary (#8478b0) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #020104black |
| Foreground | #020104black | #f6f5fawhitesmoke |
| Card | #f8f7fdghostwhite | #020104black |
| Card foreground | #020104black | #f6f5fawhitesmoke |
| Popover | #f8f7fdghostwhite | #020104black |
| Popover foreground | #020104black | #f6f5fawhitesmoke |
| Primary | #8478b0lightslategray | #8478b0lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #a4b078darkkhaki | #a4b078darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8eae1beige | #1c1e15black |
| Muted foreground | #555553dimgray | #abacaadarkgray |
| Accent | #a4b078darkkhaki | #a4b078darkkhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #a62603firebrick | #fb4513orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8478b0lightslategray | #8478b0lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 5.29:1 | AA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 9.03:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 5.29:1 | AA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 9.03:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Grateful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 296.185);
--foreground: oklch(0.076 0.019 295.448);
--muted: oklch(0.934 0.013 116.585);
--muted-foreground: oklch(0.449 0.003 116.441);
--popover: oklch(0.979 0.008 296.185);
--popover-foreground: oklch(0.076 0.019 295.448);
--card: oklch(0.979 0.008 296.185);
--card-foreground: oklch(0.076 0.019 295.448);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.605 0.084 293.673);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.733 0.077 118.283);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.733 0.077 118.283);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.475 0.169 34.106);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.605 0.084 293.673);
--chart-1: oklch(0.605 0.084 293.673);
--chart-2: oklch(0.733 0.077 118.283);
--chart-3: oklch(0.733 0.077 118.283);
--chart-4: oklch(0.753 0.071 118.086);
--chart-5: oklch(0.599 0.094 293.302);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.013 295.791);
--foreground: oklch(0.972 0.007 296.207);
--muted: oklch(0.231 0.018 117.773);
--muted-foreground: oklch(0.743 0.002 116.389);
--popover: oklch(0.081 0.013 295.791);
--popover-foreground: oklch(0.972 0.007 296.207);
--card: oklch(0.081 0.013 295.791);
--card-foreground: oklch(0.972 0.007 296.207);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.605 0.084 293.673);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.733 0.077 118.283);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.733 0.077 118.283);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.655 0.225 34.48);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.605 0.084 293.673);
--chart-1: oklch(0.605 0.084 293.673);
--chart-2: oklch(0.733 0.077 118.283);
--chart-3: oklch(0.733 0.077 118.283);
--chart-4: oklch(0.753 0.071 118.086);
--chart-5: oklch(0.599 0.094 293.302);
}