Grateful is a shadcn/ui theme built around a light purple primary color (#eabee6) with light green accents (#beeac1). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#eabee6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #000000black |
| Foreground | #0c040bblack | #fdfcfdwhite |
| Card | #fdf7fcsnow | #030303black |
| Card foreground | #080207black | #ffffffwhite |
| Popover | #fefbfewhite | #000000black |
| Popover foreground | #0c040bblack | #fdfcfdwhite |
| Primary | #eabee6thistle | #eabee6thistle |
| Primary foreground | #591d54indigo | #591d54indigo |
| Secondary | #beeac1lightgrey | #beeac1lightgrey |
| Secondary foreground | #1d5922darkgreen | #1d5922darkgreen |
| Muted | #ecf3edwhitesmoke | #0c130cblack |
| Muted foreground | #566157dimgray | #9ea99fdarkgray |
| Accent | #beeac1lightgrey | #beeac1lightgrey |
| Accent foreground | #1d5922darkgreen | #1d5922darkgreen |
| Destructive | #c01202firebrick | #f71702red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eabee6thistle | #eabee6thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 5.74:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 7.76:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Grateful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 328.111);
--foreground: oklch(0.125 0.026 329.445);
--muted: oklch(0.958 0.011 147.945);
--muted-foreground: oklch(0.481 0.021 147.595);
--popover: oklch(0.991 0.004 328.111);
--popover-foreground: oklch(0.125 0.026 329.445);
--card: oklch(0.982 0.009 328.159);
--card-foreground: oklch(0.109 0.023 329.284);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.851 0.073 328.926);
--primary-foreground: oklch(0.345 0.114 331.165);
--secondary: oklch(0.894 0.072 147.182);
--secondary-foreground: oklch(0.41 0.106 144.7);
--accent: oklch(0.894 0.072 147.182);
--accent-foreground: oklch(0.41 0.106 144.7);
--destructive: oklch(0.512 0.203 30.169);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.851 0.073 328.926);
--chart-1: oklch(0.851 0.073 328.926);
--chart-2: oklch(0.894 0.072 147.182);
--chart-3: oklch(0.894 0.072 147.182);
--chart-4: oklch(0.913 0.059 147.361);
--chart-5: oklch(0.85 0.078 328.975);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 328.09);
--muted: oklch(0.176 0.016 147.031);
--muted-foreground: oklch(0.722 0.019 147.784);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 328.09);
--card: oklch(0.092 0 180);
--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.851 0.073 328.926);
--primary-foreground: oklch(0.345 0.114 331.165);
--secondary: oklch(0.894 0.072 147.182);
--secondary-foreground: oklch(0.41 0.106 144.7);
--accent: oklch(0.894 0.072 147.182);
--accent-foreground: oklch(0.41 0.106 144.7);
--destructive: oklch(0.619 0.247 30.005);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.851 0.073 328.926);
--chart-1: oklch(0.851 0.073 328.926);
--chart-2: oklch(0.894 0.072 147.182);
--chart-3: oklch(0.894 0.072 147.182);
--chart-4: oklch(0.913 0.059 147.361);
--chart-5: oklch(0.85 0.078 328.975);
}