Grass is a shadcn/ui theme built around an indigo primary color (#745fc8) with muted light indigo accents (#e0dee7). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#745fc8) on an indigo-tinted background (#08070e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08070eblack |
| Foreground | #040308black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #0a0811black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #ffffffwhite | #08070eblack |
| Popover foreground | #040308black | #fcfcfdwhite |
| Primary | #745fc8slateblue | #745fc8slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e0dee7gainsboro | #242130darkslategray |
| Secondary foreground | #433e56darkslategray | #bbb7cdsilver |
| Muted | #ddd9edgainsboro | #161226black |
| Muted foreground | #575464dimgray | #9e9babdarkgray |
| Accent | #e0dee7gainsboro | #242130darkslategray |
| Accent foreground | #433e56darkslategray | #bbb7cdsilver |
| Destructive | #741d0bmaroon | #d53515firebrick |
| Destructive foreground | #f8c4b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #745fc8slateblue | #745fc8slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 4.95:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 7.06:1 | AAA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 4.95:1 | AA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.80:1 | AA |
Paste this into your globals.css to use Grass in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.019 294.719);
--muted: oklch(0.894 0.028 294.989);
--muted-foreground: oklch(0.453 0.027 294.471);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.019 294.719);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.079 0.015 294.719);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.559 0.157 289.541);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.906 0.012 295.329);
--secondary-foreground: oklch(0.379 0.04 293.555);
--accent: oklch(0.906 0.012 295.329);
--accent-foreground: oklch(0.379 0.04 293.555);
--destructive: oklch(0.373 0.124 33.049);
--destructive-foreground: oklch(0.863 0.062 31.359);
--ring: oklch(0.559 0.157 289.541);
--chart-1: oklch(0.559 0.157 289.541);
--chart-2: oklch(0.906 0.012 295.329);
--chart-3: oklch(0.906 0.012 295.329);
--chart-4: oklch(0.932 0.009 295.404);
--chart-5: oklch(0.554 0.166 289.024);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.016 294.468);
--foreground: oklch(0.991 0.002 295.548);
--muted: oklch(0.198 0.041 291.374);
--muted-foreground: oklch(0.697 0.024 294.938);
--popover: oklch(0.133 0.016 294.468);
--popover-foreground: oklch(0.991 0.002 295.548);
--card: oklch(0.144 0.019 293.391);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.559 0.157 289.541);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.26 0.027 293.564);
--secondary-foreground: oklch(0.789 0.031 294.846);
--accent: oklch(0.26 0.027 293.564);
--accent-foreground: oklch(0.789 0.031 294.846);
--destructive: oklch(0.575 0.201 32.775);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.559 0.157 289.541);
--chart-1: oklch(0.559 0.157 289.541);
--chart-2: oklch(0.26 0.027 293.564);
--chart-3: oklch(0.26 0.027 293.564);
--chart-4: oklch(0.287 0.032 293.467);
--chart-5: oklch(0.554 0.166 289.024);
}