Grin is a shadcn/ui theme built around a green primary color (#82cb6c) with red accents (#cb6c82). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#82cb6c) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020402black |
| Foreground | #050c03black | #f6faf5whitesmoke |
| Card | #f8fdf7mintcream | #040703black |
| Card foreground | #040802black | #f9fcf8mintcream |
| Popover | #f8fdf7mintcream | #040703black |
| Popover foreground | #040802black | #f9fcf8mintcream |
| Primary | #82cb6cdarkseagreen | #82cb6cdarkseagreen |
| Primary foreground | #020401black | #020401black |
| Secondary | #6c82cbcornflowerblue | #6c82cbcornflowerblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #ececeewhitesmoke | #111113black |
| Muted foreground | #4a4c55darkslategray | #aaadb5darkgray |
| Accent | #cb6c82palevioletred | #cb6c82palevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #913a08saddlebrown | #f26818chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #82cb6cdarkseagreen | #82cb6cdarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 10.52:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 6.00:1 | AA |
| Destructive | 7.46:1 | AAA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 10.52:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 8.39:1 | AAA |
| Accent | 6.00:1 | AA |
| Destructive | 6.73:1 | AA |
Paste this into your globals.css to use Grin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 138.334);
--foreground: oklch(0.143 0.026 136.662);
--muted: oklch(0.945 0.003 272.628);
--muted-foreground: oklch(0.418 0.014 272.269);
--popover: oklch(0.988 0.008 138.339);
--popover-foreground: oklch(0.124 0.022 136.567);
--card: oklch(0.988 0.008 138.339);
--card-foreground: oklch(0.124 0.022 136.567);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.773 0.148 138.731);
--primary-foreground: oklch(0.098 0.015 136.862);
--secondary: oklch(0.621 0.114 270.012);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.122 6.233);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.462 0.129 44.157);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0.148 138.731);
--chart-1: oklch(0.773 0.148 138.731);
--chart-2: oklch(0.621 0.114 270.012);
--chart-3: oklch(0.646 0.122 6.233);
--chart-4: oklch(0.651 0.104 270.413);
--chart-5: oklch(0.779 0.156 138.774);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.012 137.1);
--foreground: oklch(0.98 0.008 138.338);
--muted: oklch(0.179 0.004 272.412);
--muted-foreground: oklch(0.748 0.012 272.479);
--popover: oklch(0.122 0.016 137.1);
--popover-foreground: oklch(0.987 0.005 138.335);
--card: oklch(0.122 0.016 137.1);
--card-foreground: oklch(0.987 0.005 138.335);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.773 0.148 138.731);
--primary-foreground: oklch(0.098 0.015 136.862);
--secondary: oklch(0.621 0.114 270.012);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.122 6.233);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.678 0.188 44.339);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.773 0.148 138.731);
--chart-1: oklch(0.773 0.148 138.731);
--chart-2: oklch(0.621 0.114 270.012);
--chart-3: oklch(0.646 0.122 6.233);
--chart-4: oklch(0.651 0.104 270.413);
--chart-5: oklch(0.779 0.156 138.774);
}