Gracious is a shadcn/ui theme built around a vivid deep green primary color (#1a5f0c) with vivid deep green accents (#0c5f28). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the vivid deep green primary (#1a5f0c) on a green-tinted background (#050b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #050b04black |
| Foreground | #020401black | #f5faf4whitesmoke |
| Card | #fcfdfbsnow | #050b04black |
| Card foreground | #020401black | #f5faf4whitesmoke |
| Popover | #fcfdfbsnow | #050b04black |
| Popover foreground | #020401black | #f5faf4whitesmoke |
| Primary | #1a5f0cdarkgreen | #1a5f0cdarkgreen |
| Primary foreground | #b5f4a9palegreen | #b5f4a9palegreen |
| Secondary | #435f0cdarkolivegreen | #435f0cdarkolivegreen |
| Secondary foreground | #dbf4a9palegoldenrod | #dbf4a9palegoldenrod |
| Muted | #ecf0e5beige | #161a0fblack |
| Muted foreground | #41453bdarkslategray | #c1c4basilver |
| Accent | #0c5f28darkgreen | #0c5f28darkgreen |
| Accent foreground | #a9f4c2powderblue | #a9f4c2powderblue |
| Destructive | #b53503firebrick | #fb5818orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a5f0cdarkgreen | #1a5f0cdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 6.05:1 | AA |
| Muted text | 8.49:1 | AAA |
| Accent | 6.09:1 | AA |
| Destructive | 6.04:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 6.05:1 | AA |
| Muted text | 10.00:1 | AAA |
| Accent | 6.09:1 | AA |
| Destructive | 6.54:1 | AA |
Paste this into your globals.css to use Gracious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 140.527);
--foreground: oklch(0.098 0.016 138.922);
--muted: oklch(0.949 0.015 121.74);
--muted-foreground: oklch(0.383 0.017 122.233);
--popover: oklch(0.994 0.003 140.527);
--popover-foreground: oklch(0.098 0.016 138.922);
--card: oklch(0.994 0.003 140.527);
--card-foreground: oklch(0.098 0.016 138.922);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.427 0.132 140.955);
--primary-foreground: oklch(0.907 0.119 140.357);
--secondary: oklch(0.448 0.11 127.449);
--secondary-foreground: oklch(0.932 0.101 123.326);
--accent: oklch(0.427 0.116 148.657);
--accent-foreground: oklch(0.905 0.102 154.695);
--destructive: oklch(0.517 0.171 37.053);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.132 140.955);
--chart-1: oklch(0.427 0.132 140.955);
--chart-2: oklch(0.448 0.11 127.449);
--chart-3: oklch(0.427 0.116 148.657);
--chart-4: oklch(0.492 0.122 127.596);
--chart-5: oklch(0.432 0.135 141.024);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.02 139.214);
--foreground: oklch(0.981 0.009 140.517);
--muted: oklch(0.209 0.021 123.154);
--muted-foreground: oklch(0.816 0.015 121.78);
--popover: oklch(0.139 0.02 139.214);
--popover-foreground: oklch(0.981 0.009 140.517);
--card: oklch(0.139 0.02 139.214);
--card-foreground: oklch(0.981 0.009 140.517);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.427 0.132 140.955);
--primary-foreground: oklch(0.907 0.119 140.357);
--secondary: oklch(0.448 0.11 127.449);
--secondary-foreground: oklch(0.932 0.101 123.326);
--accent: oklch(0.427 0.116 148.657);
--accent-foreground: oklch(0.905 0.102 154.695);
--destructive: oklch(0.675 0.21 38.37);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.427 0.132 140.955);
--chart-1: oklch(0.427 0.132 140.955);
--chart-2: oklch(0.448 0.11 127.449);
--chart-3: oklch(0.427 0.116 148.657);
--chart-4: oklch(0.492 0.122 127.596);
--chart-5: oklch(0.432 0.135 141.024);
}