Gracious is a shadcn/ui theme built around a vivid red primary color (#ea3410) with vivid indigo accents (#3410ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#ea3410) on a red-tinted background (#100605).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100605black |
| Foreground | #140805black | #f9f6f6whitesmoke |
| Card | #fcfcfcsnow | #140806black |
| Card foreground | #100604black | #fbf9f9snow |
| Popover | #ffffffwhite | #100605black |
| Popover foreground | #140805black | #f9f6f6whitesmoke |
| Primary | #ea3410orangered | #ea3410orangered |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #10ea34limegreen | #10ea34limegreen |
| Secondary foreground | #032b0ablack | #032b0ablack |
| Muted | #e3e8e4gainsboro | #171c18black |
| Muted foreground | #485149darkslategray | #aeb7afdarkgray |
| Accent | #3410eablue | #3410eablue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #913203saddlebrown | #fb6b23tomato |
| Destructive foreground | #fedac8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ea3410orangered | #ea3410orangered |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 4.20:1 | AA Large |
| Secondary button | 9.45:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 8.71:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 18.57:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 4.20:1 | AA Large |
| Secondary button | 9.45:1 | AAA |
| Muted text | 8.40:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 7.20:1 | AAA |
Paste this into your globals.css to use Gracious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.024 35.17);
--muted: oklch(0.926 0.006 150.728);
--muted-foreground: oklch(0.425 0.017 150.256);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.152 0.024 35.17);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.139 0.021 36.424);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.61 0.22 32.46);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.813 0.262 143.881);
--secondary-foreground: oklch(0.253 0.073 145.98);
--accent: oklch(0.446 0.279 272.21);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.451 0.137 40.816);
--destructive-foreground: oklch(0.914 0.047 48.185);
--ring: oklch(0.61 0.22 32.46);
--chart-1: oklch(0.61 0.22 32.46);
--chart-2: oklch(0.813 0.262 143.881);
--chart-3: oklch(0.446 0.279 272.21);
--chart-4: oklch(0.829 0.262 144.183);
--chart-5: oklch(0.615 0.226 32.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.019 35.881);
--foreground: oklch(0.976 0.003 31.049);
--muted: oklch(0.219 0.009 150.246);
--muted-foreground: oklch(0.77 0.015 150.556);
--popover: oklch(0.139 0.019 35.881);
--popover-foreground: oklch(0.976 0.003 31.049);
--card: oklch(0.152 0.022 34.623);
--card-foreground: oklch(0.984 0.002 31.047);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.61 0.22 32.46);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.813 0.262 143.881);
--secondary-foreground: oklch(0.253 0.073 145.98);
--accent: oklch(0.446 0.279 272.21);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.696 0.192 42.832);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.61 0.22 32.46);
--chart-1: oklch(0.61 0.22 32.46);
--chart-2: oklch(0.813 0.262 143.881);
--chart-3: oklch(0.446 0.279 272.21);
--chart-4: oklch(0.829 0.262 144.183);
--chart-5: oklch(0.615 0.226 32.261);
}