Gripping is a shadcn/ui theme built around a muted light purple primary color (#d8cfd7) with muted purple accents (#cdb2c8). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted light purple primary (#d8cfd7) on a purple-tinted background (#10040e).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #10040eblack |
| Foreground | #050104black | #fbf9fbsnow |
| Card | #fdfbfdsnow | #10040eblack |
| Card foreground | #050104black | #fbf9fbsnow |
| Popover | #fdfbfdsnow | #10040eblack |
| Popover foreground | #050104black | #fbf9fbsnow |
| Primary | #d8cfd7lightgrey | #d8cfd7lightgrey |
| Primary foreground | #41343fdarkslategray | #41343fdarkslategray |
| Secondary | #d4c9d2lightgrey | #2d242cdarkslategray |
| Secondary foreground | #3b3039darkslategray | #c9bbc6silver |
| Muted | #e4d3e1gainsboro | #2c1b29darkslategray |
| Muted foreground | #4f3b4bdarkslategray | #c4b0c1silver |
| Accent | #cdb2c8silver | #402b3cdarkslategray |
| Accent foreground | #2e1e2bdarkslategray | #d8c5d4thistle |
| Destructive | #740a07maroon | #f34039tomato |
| Destructive foreground | #fbb4b2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8cfd7lightgrey | #d8cfd7lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Gripping in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 331.45);
--foreground: oklch(0.083 0.027 332.784);
--muted: oklch(0.884 0.027 331.827);
--muted-foreground: oklch(0.38 0.039 332.807);
--popover: oklch(0.991 0.003 331.45);
--popover-foreground: oklch(0.083 0.027 332.784);
--card: oklch(0.991 0.003 331.45);
--card-foreground: oklch(0.083 0.027 332.784);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.864 0.015 331.649);
--primary-foreground: oklch(0.344 0.025 332.413);
--secondary: oklch(0.848 0.017 331.684);
--secondary-foreground: oklch(0.324 0.023 332.395);
--accent: oklch(0.793 0.043 332.149);
--accent-foreground: oklch(0.261 0.034 333.12);
--destructive: oklch(0.356 0.138 28.979);
--destructive-foreground: oklch(0.836 0.082 21.194);
--ring: oklch(0.864 0.015 331.649);
--chart-1: oklch(0.864 0.015 331.649);
--chart-2: oklch(0.848 0.017 331.684);
--chart-3: oklch(0.793 0.043 332.149);
--chart-4: oklch(0.872 0.014 331.633);
--chart-5: oklch(0.863 0.019 331.715);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.031 333.556);
--foreground: oklch(0.984 0.003 331.456);
--muted: oklch(0.251 0.036 333.318);
--muted-foreground: oklch(0.779 0.033 331.996);
--popover: oklch(0.137 0.031 333.556);
--popover-foreground: oklch(0.984 0.003 331.456);
--card: oklch(0.137 0.031 333.556);
--card-foreground: oklch(0.984 0.003 331.456);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.864 0.015 331.649);
--primary-foreground: oklch(0.344 0.025 332.413);
--secondary: oklch(0.275 0.019 332.336);
--secondary-foreground: oklch(0.807 0.021 331.778);
--accent: oklch(0.321 0.04 333.087);
--accent-foreground: oklch(0.844 0.029 331.884);
--destructive: oklch(0.639 0.217 27.358);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.015 331.649);
--chart-1: oklch(0.864 0.015 331.649);
--chart-2: oklch(0.275 0.019 332.336);
--chart-3: oklch(0.321 0.04 333.087);
--chart-4: oklch(0.305 0.022 332.374);
--chart-5: oklch(0.863 0.019 331.715);
}