Gray is a shadcn/ui theme built around a vivid light green primary color (#e3fce9) with vivid light red accents (#fce9e3). The light mode uses a neutral background (#f8fbf9). Dark mode keeps the vivid light green primary (#e3fce9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbf9mintcream | #000000black |
| Foreground | #020804black | #fcfdfcwhite |
| Card | #f8fbf9mintcream | #000000black |
| Card foreground | #020804black | #fcfdfcwhite |
| Popover | #f8fbf9mintcream | #000000black |
| Popover foreground | #020804black | #fcfdfcwhite |
| Primary | #e3fce9honeydew | #e3fce9honeydew |
| Primary foreground | #064114darkgreen | #064114darkgreen |
| Secondary | #e9e3fclavender | #e9e3fclavender |
| Secondary foreground | #31109eindigo | #31109eindigo |
| Muted | #e4e0f0lavender | #130f1fblack |
| Muted foreground | #504b63darkslategray | #a29cb4darkgray |
| Accent | #fce9e3mistyrose | #fce9e3mistyrose |
| Accent foreground | #9e3110saddlebrown | #9e3110saddlebrown |
| Destructive | #9b0d0ddarkred | #ed2c2ccrimson |
| Destructive foreground | #fcdedemistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3fce9honeydew | #e3fce9honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 10.93:1 | AAA |
| Secondary button | 9.93:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 6.17:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 10.93:1 | AAA |
| Secondary button | 9.93:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 6.17:1 | AA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Gray in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.004 153.167);
--foreground: oklch(0.123 0.019 152.525);
--muted: oklch(0.915 0.021 296.671);
--muted-foreground: oklch(0.426 0.04 295.339);
--popover: oklch(0.986 0.004 153.167);
--popover-foreground: oklch(0.123 0.019 152.525);
--card: oklch(0.986 0.004 153.167);
--card-foreground: oklch(0.123 0.019 152.525);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.037 152.61);
--primary-foreground: oklch(0.329 0.093 146.477);
--secondary: oklch(0.928 0.034 296.412);
--secondary-foreground: oklch(0.35 0.2 279.032);
--accent: oklch(0.948 0.023 37.646);
--accent-foreground: oklch(0.472 0.15 36.085);
--destructive: oklch(0.438 0.172 28.256);
--destructive-foreground: oklch(0.926 0.033 17.768);
--ring: oklch(0.968 0.037 152.61);
--chart-1: oklch(0.968 0.037 152.61);
--chart-2: oklch(0.928 0.034 296.412);
--chart-3: oklch(0.948 0.023 37.646);
--chart-4: oklch(0.964 0.017 296.763);
--chart-5: oklch(0.969 0.038 152.586);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 153.203);
--muted: oklch(0.183 0.031 293.852);
--muted-foreground: oklch(0.706 0.036 296.167);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 153.203);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.002 153.203);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.037 152.61);
--primary-foreground: oklch(0.329 0.093 146.477);
--secondary: oklch(0.928 0.034 296.412);
--secondary-foreground: oklch(0.35 0.2 279.032);
--accent: oklch(0.948 0.023 37.646);
--accent-foreground: oklch(0.472 0.15 36.085);
--destructive: oklch(0.611 0.226 27.171);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.037 152.61);
--chart-1: oklch(0.968 0.037 152.61);
--chart-2: oklch(0.928 0.034 296.412);
--chart-3: oklch(0.948 0.023 37.646);
--chart-4: oklch(0.964 0.017 296.763);
--chart-5: oklch(0.969 0.038 152.586);
}