Graceful is a shadcn/ui theme built around an indigo primary color (#4949a7) with green accents (#49a749). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#4949a7) on an indigo-tinted background (#07070d).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #07070dblack |
| Foreground | #000000black | #fbfbfdghostwhite |
| Card | #f8f8fcghostwhite | #07070dblack |
| Card foreground | #000000black | #fbfbfdghostwhite |
| Popover | #f8f8fcghostwhite | #07070dblack |
| Popover foreground | #000000black | #fbfbfdghostwhite |
| Primary | #4949a7darkslateblue | #4949a7darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a74949sienna | #a74949sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9d8d8gainsboro | #271616black |
| Muted foreground | #4f3b3bdarkslategray | #c4b0b0silver |
| Accent | #49a749seagreen | #49a749seagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #8e2e0bsaddlebrown | #f06938tomato |
| Destructive foreground | #fbdbd0bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4949a7darkslateblue | #4949a7darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 7.53:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 6.33:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 8.40:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 6.77:1 | AA |
Paste this into your globals.css to use Graceful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 286.315);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.02 17.526);
--muted-foreground: oklch(0.373 0.029 18.556);
--popover: oklch(0.981 0.005 286.315);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.005 286.315);
--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.459 0.147 278.924);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.124 22.257);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.649 0.159 143.479);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.441 0.137 37.711);
--destructive-foreground: oklch(0.916 0.039 41.037);
--ring: oklch(0.459 0.147 278.924);
--chart-1: oklch(0.459 0.147 278.924);
--chart-2: oklch(0.527 0.124 22.257);
--chart-3: oklch(0.649 0.159 143.479);
--chart-4: oklch(0.551 0.13 22.299);
--chart-5: oklch(0.452 0.157 278.068);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.014 284.315);
--foreground: oklch(0.99 0.003 286.35);
--muted: oklch(0.223 0.029 19.623);
--muted-foreground: oklch(0.774 0.024 17.679);
--popover: oklch(0.133 0.014 284.315);
--popover-foreground: oklch(0.99 0.003 286.35);
--card: oklch(0.133 0.014 284.315);
--card-foreground: oklch(0.99 0.003 286.35);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.459 0.147 278.924);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.124 22.257);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.649 0.159 143.479);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.68 0.178 39.48);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.459 0.147 278.924);
--chart-1: oklch(0.459 0.147 278.924);
--chart-2: oklch(0.527 0.124 22.257);
--chart-3: oklch(0.649 0.159 143.479);
--chart-4: oklch(0.551 0.13 22.299);
--chart-5: oklch(0.452 0.157 278.068);
}