Grid is a shadcn/ui theme built around a vivid cyan primary color (#5ac1ed) with vivid green accents (#c1ed5a). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid cyan primary (#5ac1ed) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #030607black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #fbfdfewhite | #030607black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fbfdfewhite | #030607black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #5ac1edmediumturquoise | #5ac1edmediumturquoise |
| Primary foreground | #020d12black | #020d12black |
| Secondary | #ed5ac1hotpink | #ed5ac1hotpink |
| Secondary foreground | #12020dblack | #12020dblack |
| Muted | #f5f0f3whitesmoke | #0f0a0eblack |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #c1ed5agreenyellow | #c1ed5agreenyellow |
| Accent foreground | #0d1202black | #0d1202black |
| Destructive | #993b0fsaddlebrown | #d15015chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5ac1edmediumturquoise | #5ac1edmediumturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 9.58:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.48:1 | AA |
| Accent | 14.01:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 9.58:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.31:1 | AAA |
| Accent | 14.01:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Grid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 225.014);
--foreground: oklch(0 0 0);
--muted: oklch(0.959 0.008 336.016);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.993 0.003 225.014);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.003 225.014);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.766 0.114 229.041);
--primary-foreground: oklch(0.151 0.023 222.888);
--secondary: oklch(0.69 0.211 341.363);
--secondary-foreground: oklch(0.133 0.044 338.923);
--accent: oklch(0.886 0.179 124.201);
--accent-foreground: oklch(0.173 0.035 122.022);
--destructive: oklch(0.477 0.137 41.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.766 0.114 229.041);
--chart-1: oklch(0.766 0.114 229.041);
--chart-2: oklch(0.69 0.211 341.363);
--chart-3: oklch(0.886 0.179 124.201);
--chart-4: oklch(0.71 0.196 340.737);
--chart-5: oklch(0.769 0.117 229.277);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.008 221.295);
--foreground: oklch(0.993 0.001 224.998);
--muted: oklch(0.154 0.012 337.274);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.117 0.008 221.295);
--popover-foreground: oklch(0.993 0.001 224.998);
--card: oklch(0.117 0.008 221.295);
--card-foreground: oklch(0.993 0.001 224.998);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.766 0.114 229.041);
--primary-foreground: oklch(0.151 0.023 222.888);
--secondary: oklch(0.69 0.211 341.363);
--secondary-foreground: oklch(0.133 0.044 338.923);
--accent: oklch(0.886 0.179 124.201);
--accent-foreground: oklch(0.173 0.035 122.022);
--destructive: oklch(0.597 0.175 40.851);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.766 0.114 229.041);
--chart-1: oklch(0.766 0.114 229.041);
--chart-2: oklch(0.69 0.211 341.363);
--chart-3: oklch(0.886 0.179 124.201);
--chart-4: oklch(0.71 0.196 340.737);
--chart-5: oklch(0.769 0.117 229.277);
}