Grateful is a shadcn/ui theme built around a deep green primary color (#10150a) with deep violet accents (#0e0a15). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#10150a) on a green-tinted background (#080b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #080b05black |
| Foreground | #0e1703black | #fafbf8snow |
| Card | #fafdf6mintcream | #0b0e06black |
| Card foreground | #0c1202black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #080b05black |
| Popover foreground | #0e1703black | #fafbf8snow |
| Primary | #10150ablack | #10150ablack |
| Primary foreground | #adc68bdarkseagreen | #adc68bdarkseagreen |
| Secondary | #0e0a15black | #0e0a15black |
| Secondary foreground | #a38bc6mediumpurple | #a38bc6mediumpurple |
| Muted | #efedf3whitesmoke | #0f0c12black |
| Muted foreground | #645c70dimgray | #978fa3darkgray |
| Accent | #0e0a15black | #0e0a15black |
| Accent foreground | #a38bc6mediumpurple | #a38bc6mediumpurple |
| Destructive | #701800maroon | #ff5b2etomato |
| Destructive foreground | #ffb7a3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #10150ablack | #10150ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.16:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 9.93:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 5.45:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 9.93:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 6.25:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use Grateful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 125.111);
--foreground: oklch(0.189 0.041 127.253);
--muted: oklch(0.949 0.009 304.92);
--muted-foreground: oklch(0.49 0.034 304.092);
--popover: oklch(0.995 0.005 125.111);
--popover-foreground: oklch(0.189 0.041 127.253);
--card: oklch(0.991 0.009 125.177);
--card-foreground: oklch(0.17 0.036 126.162);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.185 0.021 126.754);
--primary-foreground: oklch(0.793 0.084 126.607);
--secondary: oklch(0.157 0.023 302.99);
--secondary-foreground: oklch(0.68 0.089 303.199);
--accent: oklch(0.157 0.023 302.99);
--accent-foreground: oklch(0.68 0.089 303.199);
--destructive: oklch(0.36 0.126 35.162);
--destructive-foreground: oklch(0.842 0.089 36.07);
--ring: oklch(0.185 0.021 126.754);
--chart-1: oklch(0.185 0.021 126.754);
--chart-2: oklch(0.157 0.023 302.99);
--chart-3: oklch(0.157 0.023 302.99);
--chart-4: oklch(0.186 0.032 302.541);
--chart-5: oklch(0.187 0.023 126.892);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.016 124.503);
--foreground: oklch(0.988 0.004 125.106);
--muted: oklch(0.162 0.013 303.901);
--muted-foreground: oklch(0.663 0.031 304.394);
--popover: oklch(0.143 0.016 124.503);
--popover-foreground: oklch(0.988 0.004 125.106);
--card: oklch(0.158 0.019 125.746);
--card-foreground: oklch(0.994 0.002 125.075);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.185 0.021 126.754);
--primary-foreground: oklch(0.793 0.084 126.607);
--secondary: oklch(0.157 0.023 302.99);
--secondary-foreground: oklch(0.68 0.089 303.199);
--accent: oklch(0.157 0.023 302.99);
--accent-foreground: oklch(0.68 0.089 303.199);
--destructive: oklch(0.685 0.207 35.76);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.185 0.021 126.754);
--chart-1: oklch(0.185 0.021 126.754);
--chart-2: oklch(0.157 0.023 302.99);
--chart-3: oklch(0.157 0.023 302.99);
--chart-4: oklch(0.186 0.032 302.541);
--chart-5: oklch(0.187 0.023 126.892);
}