Gracious is a shadcn/ui theme built around a light green primary color (#ceecb1) with light pink accents (#ecb1ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#ceecb1) on a green-tinted background (#0a1004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a1004black |
| Foreground | #030401black | #fcfdfcwhite |
| Card | #ffffffwhite | #0a1004black |
| Card foreground | #030401black | #fcfdfcwhite |
| Popover | #ffffffwhite | #0a1004black |
| Popover foreground | #030401black | #fcfdfcwhite |
| Primary | #ceecb1palegoldenrod | #ceecb1palegoldenrod |
| Primary foreground | #345615darkolivegreen | #345615darkolivegreen |
| Secondary | #b1ceeclightblue | #b1ceeclightblue |
| Secondary foreground | #153456midnightblue | #153456midnightblue |
| Muted | #dde5eelavender | #111922black |
| Muted foreground | #5d6369dimgray | #969ba2darkgray |
| Accent | #ecb1celightpink | #ecb1celightpink |
| Accent foreground | #561534maroon | #561534maroon |
| Destructive | #cc0700firebrick | #f00800red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ceecb1palegoldenrod | #ceecb1palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 4.78:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 5.83:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 4.44:1 | AA Large |
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.1 0.014 128.028);
--muted: oklch(0.919 0.016 249.806);
--muted-foreground: oklch(0.498 0.012 249.872);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.014 128.028);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.014 128.028);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.084 130.172);
--primary-foreground: oklch(0.413 0.101 132.958);
--secondary: oklch(0.839 0.053 250.195);
--secondary-foreground: oklch(0.322 0.071 252.239);
--accent: oklch(0.823 0.078 348.381);
--accent-foreground: oklch(0.316 0.101 354.876);
--destructive: oklch(0.532 0.216 29.577);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.084 130.172);
--chart-1: oklch(0.906 0.084 130.172);
--chart-2: oklch(0.839 0.053 250.195);
--chart-3: oklch(0.823 0.078 348.381);
--chart-4: oklch(0.865 0.044 250.096);
--chart-5: oklch(0.909 0.088 130.223);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.028 129.344);
--foreground: oklch(0.994 0.002 129.151);
--muted: oklch(0.21 0.022 250.583);
--muted-foreground: oklch(0.688 0.011 249.8);
--popover: oklch(0.163 0.028 129.344);
--popover-foreground: oklch(0.994 0.002 129.151);
--card: oklch(0.163 0.028 129.344);
--card-foreground: oklch(0.994 0.002 129.151);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.906 0.084 130.172);
--primary-foreground: oklch(0.413 0.101 132.958);
--secondary: oklch(0.839 0.053 250.195);
--secondary-foreground: oklch(0.322 0.071 252.239);
--accent: oklch(0.823 0.078 348.381);
--accent-foreground: oklch(0.316 0.101 354.876);
--destructive: oklch(0.601 0.244 29.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.084 130.172);
--chart-1: oklch(0.906 0.084 130.172);
--chart-2: oklch(0.839 0.053 250.195);
--chart-3: oklch(0.823 0.078 348.381);
--chart-4: oklch(0.865 0.044 250.096);
--chart-5: oklch(0.909 0.088 130.223);
}