Available Grapest is a shadcn/ui theme built around a vivid deep purple primary color (#850569) with muted light purple accents (#d8cad5). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid deep purple primary (#850569) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #000000black |
| Foreground | #080207black | #ffffffwhite |
| Card | #fcf8fbsnow | #000000black |
| Card foreground | #080207black | #ffffffwhite |
| Popover | #fcf8fbsnow | #000000black |
| Popover foreground | #080207black | #ffffffwhite |
| Primary | #850569purple | #850569purple |
| Primary foreground | #fdbfefpink | #fdbfefpink |
| Secondary | #d8cad5lightgrey | #20181eblack |
| Secondary foreground | #41303ddarkslategray | #bfabbasilver |
| Muted | #eae1e8gainsboro | #1e151cblack |
| Muted foreground | #584654darkslategray | #b9a7b5darkgray |
| Accent | #d8cad5lightgrey | #20181eblack |
| Accent foreground | #41303ddarkslategray | #bfabbasilver |
| Destructive | #7f240bsaddlebrown | #eb4314orangered |
| Destructive foreground | #facec2peachpuff | #ffffffwhite |
| Border | #e8e3e7gainsboro | #292328darkslategray |
| Input | #e8e3e7gainsboro | #292328darkslategray |
| Ring | #850569purple | #850569purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Available Grapest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 332.707);
--foreground: oklch(0.107 0.024 333.499);
--muted: oklch(0.919 0.012 332.822);
--muted-foreground: oklch(0.418 0.032 333.749);
--popover: oklch(0.983 0.006 332.707);
--popover-foreground: oklch(0.107 0.024 333.499);
--card: oklch(0.983 0.006 332.707);
--card-foreground: oklch(0.107 0.024 333.499);
--border: oklch(0.921 0.006 332.72);
--input: oklch(0.921 0.006 332.72);
--primary: oklch(0.418 0.178 340.409);
--primary-foreground: oklch(0.875 0.094 334.189);
--secondary: oklch(0.854 0.021 332.995);
--secondary-foreground: oklch(0.332 0.033 334.063);
--accent: oklch(0.854 0.021 332.995);
--accent-foreground: oklch(0.332 0.033 334.063);
--destructive: oklch(0.401 0.129 35.284);
--destructive-foreground: oklch(0.886 0.052 35.957);
--ring: oklch(0.418 0.178 340.409);
--chart-1: oklch(0.418 0.178 340.409);
--chart-2: oklch(0.854 0.021 332.995);
--chart-3: oklch(0.854 0.021 332.995);
--chart-4: oklch(0.879 0.017 332.922);
--chart-5: oklch(0.421 0.181 340.606);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.211 0.018 333.866);
--muted-foreground: oklch(0.748 0.028 333.176);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.266 0.013 333.331);
--input: oklch(0.266 0.013 333.331);
--primary: oklch(0.418 0.178 340.409);
--primary-foreground: oklch(0.875 0.094 334.189);
--secondary: oklch(0.222 0.016 333.669);
--secondary-foreground: oklch(0.764 0.03 333.219);
--accent: oklch(0.222 0.016 333.669);
--accent-foreground: oklch(0.764 0.03 333.219);
--destructive: oklch(0.624 0.211 34.721);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.178 340.409);
--chart-1: oklch(0.418 0.178 340.409);
--chart-2: oklch(0.222 0.016 333.669);
--chart-3: oklch(0.222 0.016 333.669);
--chart-4: oklch(0.253 0.019 333.748);
--chart-5: oklch(0.421 0.181 340.606);
}