Grain of Salt Kiwi is a shadcn/ui theme built around a muted light blue primary color (#d7dae0) with muted blue accents (#49515f). The light mode uses a blue-tinted background (#282c34). Dark mode switches to an indigo primary (#4046bf) on a blue-tinted background (#24262c).
| Token | Light | Dark |
|---|---|---|
| Background | #282c34darkslategray | #24262cdarkslategray |
| Foreground | #abb2bfdarkgray | #d0d5dflightgrey |
| Card | #23272edarkslategray | #1a1b20black |
| Card foreground | #b9bfcasilver | #fffefbwhite |
| Popover | #21252bdarkslategray | #1a1b20black |
| Popover foreground | #c8cdd5lightgrey | #ffffffwhite |
| Primary | #d7dae0gainsboro | #4046bfslateblue |
| Primary foreground | #3a3f4bdarkslategray | #ffffffwhite |
| Secondary | #3e3f42darkslategray | #32333edarkslategray |
| Secondary foreground | #d8d8dagainsboro | #ffffffwhite |
| Muted | #31363fdarkslategray | #292a30darkslategray |
| Muted foreground | #afb5c0silver | #959daddarkgray |
| Accent | #49515fdarkslategray | #363849darkslategray |
| Accent foreground | #ebeceflavender | #ebeceflavender |
| Destructive | #f63423orangered | #c04433sienna |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #393a3cdarkslategray | #28292cdarkslategray |
| Input | #404244darkslategray | #32333edarkslategray |
| Ring | #d7dae0gainsboro | #363636darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.57:1 | AA |
| Text on card | 8.10:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 3.86:1 | AA Large |
| Text on background | 10.27:1 | AAA |
| Text on card | 17.07:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 12.50:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 9.78:1 | AAA |
| Destructive | 5.08:1 | AA |
Paste this into your globals.css to use Grain of Salt Kiwi in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.292 0.016 264.298);
--foreground: oklch(0.762 0.021 262.984);
--muted: oklch(0.332 0.017 264.31);
--muted-foreground: oklch(0.771 0.017 264.466);
--popover: oklch(0.262 0.013 264.313);
--popover-foreground: oklch(0.846 0.013 263.02);
--card: oklch(0.272 0.014 264.308);
--card-foreground: oklch(0.804 0.017 263.005);
--border: oklch(0.348 0.004 264.509);
--input: oklch(0.377 0.005 264.508);
--primary: oklch(0.887 0.009 264.517);
--primary-foreground: oklch(0.369 0.021 264.27);
--secondary: oklch(0.368 0.005 264.508);
--secondary-foreground: oklch(0.883 0.002 264.543);
--accent: oklch(0.432 0.026 264.255);
--accent-foreground: oklch(0.944 0.004 264.536);
--destructive: oklch(0.632 0.23 29.947);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.009 264.517);
--chart-1: oklch(0.887 0.009 264.517);
--chart-2: oklch(0.368 0.005 264.508);
--chart-3: oklch(0.432 0.026 264.255);
--chart-4: oklch(0.396 0.005 264.507);
--chart-5: oklch(0.886 0.011 264.508);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.269 0.012 270.962);
--foreground: oklch(0.873 0.015 263.018);
--muted: oklch(0.286 0.011 278.166);
--muted-foreground: oklch(0.695 0.026 264.394);
--popover: oklch(0.223 0.01 276.613);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.223 0.01 277.385);
--card-foreground: oklch(0.997 0.004 86.508);
--border: oklch(0.282 0.006 264.473);
--input: oklch(0.326 0.018 281.233);
--primary: oklch(0.467 0.186 274.273);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.325 0.019 281.155);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.346 0.031 280.604);
--accent-foreground: oklch(0.944 0.004 264.536);
--destructive: oklch(0.558 0.162 30.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.334 0 180);
--chart-1: oklch(0.467 0.186 274.273);
--chart-2: oklch(0.325 0.019 281.155);
--chart-3: oklch(0.346 0.031 280.604);
--chart-4: oklch(0.352 0.022 281.125);
--chart-5: oklch(0.462 0.196 273.437);
}