Graceful is a shadcn/ui theme built around a muted green primary color (#acc7a8) with muted green accents (#a8c7b3). The light mode uses a neutral background (#f7fdf6). Dark mode keeps the muted green primary (#acc7a8) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf6mintcream | #020401black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f7fdf6mintcream | #020401black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f7fdf6mintcream | #020401black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #acc7a8darkgray | #acc7a8darkgray |
| Primary foreground | #1a2518black | #1a2518black |
| Secondary | #bcc7a8silver | #bcc7a8silver |
| Secondary foreground | #202518black | #202518black |
| Muted | #e4e8degainsboro | #1d2117black |
| Muted foreground | #4e5346darkslategray | #b4b9acdarkgray |
| Accent | #a8c7b3silver | #a8c7b3silver |
| Accent foreground | #18251dblack | #18251dblack |
| Destructive | #6e0f02maroon | #fa2b0forangered |
| Destructive foreground | #fdafa5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #acc7a8darkgray | #acc7a8darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 8.88:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 8.71:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 8.88:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Graceful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.011 141.561);
--foreground: oklch(0 0 0);
--muted: oklch(0.926 0.015 123.174);
--muted-foreground: oklch(0.435 0.023 123.747);
--popover: oklch(0.989 0.011 141.561);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.011 141.561);
--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.802 0.053 141.408);
--primary-foreground: oklch(0.25 0.03 141.265);
--secondary: oklch(0.813 0.045 123.783);
--secondary-foreground: oklch(0.256 0.025 124.499);
--accent: oklch(0.802 0.044 157.478);
--accent-foreground: oklch(0.25 0.025 156.359);
--destructive: oklch(0.347 0.13 31.526);
--destructive-foreground: oklch(0.827 0.093 27.591);
--ring: oklch(0.802 0.053 141.408);
--chart-1: oklch(0.802 0.053 141.408);
--chart-2: oklch(0.813 0.045 123.783);
--chart-3: oklch(0.802 0.044 157.478);
--chart-4: oklch(0.834 0.04 123.667);
--chart-5: oklch(0.805 0.06 141.384);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.016 140.047);
--foreground: oklch(0.993 0.001 141.589);
--muted: oklch(0.242 0.02 124.261);
--muted-foreground: oklch(0.779 0.02 123.322);
--popover: oklch(0.097 0.016 140.047);
--popover-foreground: oklch(0.993 0.001 141.589);
--card: oklch(0.097 0.016 140.047);
--card-foreground: oklch(0.993 0.001 141.589);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.802 0.053 141.408);
--primary-foreground: oklch(0.25 0.03 141.265);
--secondary: oklch(0.813 0.045 123.783);
--secondary-foreground: oklch(0.256 0.025 124.499);
--accent: oklch(0.802 0.044 157.478);
--accent-foreground: oklch(0.25 0.025 156.359);
--destructive: oklch(0.633 0.241 30.843);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.802 0.053 141.408);
--chart-1: oklch(0.802 0.053 141.408);
--chart-2: oklch(0.813 0.045 123.783);
--chart-3: oklch(0.802 0.044 157.478);
--chart-4: oklch(0.834 0.04 123.667);
--chart-5: oklch(0.805 0.06 141.384);
}