Gracious is a shadcn/ui theme built around a near-black primary color (#231f22) with neutral gray accents (#e0dcdf). The light mode uses a neutral background (#fefbfd). Dark mode keeps the near-black primary (#231f22) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #070306black |
| Foreground | #0c0309black | #fcf8fasnow |
| Card | #fefbfdsnow | #070306black |
| Card foreground | #0c0309black | #fcf8fasnow |
| Popover | #fefbfdsnow | #070306black |
| Popover foreground | #0c0309black | #fcf8fasnow |
| Primary | #231f22black | #231f22black |
| Primary foreground | #beb7bbsilver | #beb7bbsilver |
| Secondary | #ebeaeblavender | #1c171ablack |
| Secondary foreground | #525152darkslategray | #b9acb4darkgray |
| Muted | #f2e9efwhitesmoke | #160d13black |
| Muted foreground | #675b63dimgray | #a498a0darkgray |
| Accent | #e0dcdfgainsboro | #372a32darkslategray |
| Accent foreground | #4a4046darkslategray | #d0c2ccthistle |
| Destructive | #8f260fsaddlebrown | #d43916firebrick |
| Destructive foreground | #fbdcd5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #231f22black | #231f22black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 5.41:1 | AA |
| Accent | 7.29:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.76:1 | AA |
Paste this into your globals.css to use Gracious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 338.069);
--foreground: oklch(0.122 0.028 338.769);
--muted: oklch(0.942 0.013 338.266);
--muted-foreground: oklch(0.485 0.019 338.778);
--popover: oklch(0.991 0.004 338.069);
--popover-foreground: oklch(0.122 0.028 338.769);
--card: oklch(0.991 0.004 338.069);
--card-foreground: oklch(0.122 0.028 338.769);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.246 0.006 338.518);
--primary-foreground: oklch(0.785 0.01 338.246);
--secondary: oklch(0.939 0.001 337.997);
--secondary-foreground: oklch(0.436 0.003 338.115);
--accent: oklch(0.898 0.006 338.134);
--accent-foreground: oklch(0.384 0.017 338.864);
--destructive: oklch(0.434 0.144 33.733);
--destructive-foreground: oklch(0.919 0.035 32.717);
--ring: oklch(0.246 0.006 338.518);
--chart-1: oklch(0.246 0.006 338.518);
--chart-2: oklch(0.939 0.001 337.997);
--chart-3: oklch(0.898 0.006 338.134);
--chart-4: oklch(0.962 0 337.992);
--chart-5: oklch(0.245 0.01 338.835);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.015 338.211);
--foreground: oklch(0.983 0.005 338.088);
--muted: oklch(0.175 0.02 340.164);
--muted-foreground: oklch(0.693 0.017 338.497);
--popover: oklch(0.11 0.015 338.211);
--popover-foreground: oklch(0.983 0.005 338.088);
--card: oklch(0.11 0.015 338.211);
--card-foreground: oklch(0.983 0.005 338.088);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.246 0.006 338.518);
--primary-foreground: oklch(0.785 0.01 338.246);
--secondary: oklch(0.213 0.008 338.766);
--secondary-foreground: oklch(0.758 0.018 338.467);
--accent: oklch(0.303 0.023 339.502);
--accent-foreground: oklch(0.83 0.02 338.475);
--destructive: oklch(0.577 0.197 33.516);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.246 0.006 338.518);
--chart-1: oklch(0.246 0.006 338.518);
--chart-2: oklch(0.213 0.008 338.766);
--chart-3: oklch(0.303 0.023 339.502);
--chart-4: oklch(0.245 0.01 338.835);
--chart-5: oklch(0.245 0.01 338.835);
}