Gripping is a shadcn/ui theme built around a light green primary color (#c3e4af) with light green accents (#afe4b5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#c3e4af) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0b1504black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #091103black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #091103black | #ffffffwhite |
| Primary | #c3e4afsilver | #c3e4afsilver |
| Primary foreground | #2b4918darkslategray | #2b4918darkslategray |
| Secondary | #dee4afpalegoldenrod | #dee4afpalegoldenrod |
| Secondary foreground | #434918darkolivegreen | #434918darkolivegreen |
| Muted | #f1f2e8linen | #16170dblack |
| Muted foreground | #5d5e55dimgray | #a9aaa1darkgray |
| Accent | #afe4b5silver | #afe4b5silver |
| Accent foreground | #18491edarkgreen | #18491edarkgreen |
| Destructive | #6b0b0bmaroon | #ea2a2acrimson |
| Destructive foreground | #f7b0b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c3e4afsilver | #c3e4afsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.69:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Gripping in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.181 0.037 133.551);
--muted: oklch(0.958 0.013 112.03);
--muted-foreground: oklch(0.477 0.014 112.329);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.164 0.032 132.48);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.164 0.032 132.48);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.08 133.652);
--primary-foreground: oklch(0.368 0.083 135.224);
--secondary: oklch(0.902 0.07 113.226);
--secondary-foreground: oklch(0.388 0.07 115.338);
--accent: oklch(0.87 0.085 147.907);
--accent-foreground: oklch(0.36 0.088 145.557);
--destructive: oklch(0.338 0.128 27.645);
--destructive-foreground: oklch(0.824 0.084 19.007);
--ring: oklch(0.882 0.08 133.652);
--chart-1: oklch(0.882 0.08 133.652);
--chart-2: oklch(0.902 0.07 113.226);
--chart-3: oklch(0.87 0.085 147.907);
--chart-4: oklch(0.916 0.06 113.004);
--chart-5: oklch(0.885 0.084 133.692);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.199 0.018 113.492);
--muted-foreground: oklch(0.735 0.013 112.102);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.882 0.08 133.652);
--primary-foreground: oklch(0.368 0.083 135.224);
--secondary: oklch(0.902 0.07 113.226);
--secondary-foreground: oklch(0.388 0.07 115.338);
--accent: oklch(0.87 0.085 147.907);
--accent-foreground: oklch(0.36 0.088 145.557);
--destructive: oklch(0.605 0.225 27.295);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.08 133.652);
--chart-1: oklch(0.882 0.08 133.652);
--chart-2: oklch(0.902 0.07 113.226);
--chart-3: oklch(0.87 0.085 147.907);
--chart-4: oklch(0.916 0.06 113.004);
--chart-5: oklch(0.885 0.084 133.692);
}