Whisker is a shadcn/ui theme built around a muted green primary color (#bbc6a9) with muted pink accents (#c6a9bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#bbc6a9) on a green-tinted background (#090c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #090c03black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #0c1004black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #090c03black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #bbc6a9silver | #bbc6a9silver |
| Primary foreground | #202518black | #202518black |
| Secondary | #a9bbc6silver | #a9bbc6silver |
| Secondary foreground | #182025black | #182025black |
| Muted | #d9e2e7gainsboro | #182026black |
| Muted foreground | #575a5cdimgray | #a3a6a8darkgray |
| Accent | #c6a9bbsilver | #c6a9bbsilver |
| Accent foreground | #251820black | #251820black |
| Destructive | #850905maroon | #e71008red |
| Destructive foreground | #fdc1bflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbc6a9silver | #bbc6a9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.78:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 8.78:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Whisker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.105 0.02 122.255);
--muted: oklch(0.908 0.012 232.767);
--muted-foreground: oklch(0.465 0.005 232.744);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.105 0.02 122.255);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.81 0.041 123.708);
--primary-foreground: oklch(0.255 0.023 124.365);
--secondary: oklch(0.783 0.025 233.058);
--secondary-foreground: oklch(0.239 0.014 233.557);
--accent: oklch(0.766 0.041 339.834);
--accent-foreground: oklch(0.23 0.024 340.819);
--destructive: oklch(0.391 0.154 29.299);
--destructive-foreground: oklch(0.864 0.069 20.855);
--ring: oklch(0.81 0.041 123.708);
--chart-1: oklch(0.81 0.041 123.708);
--chart-2: oklch(0.783 0.025 233.058);
--chart-3: oklch(0.766 0.041 339.834);
--chart-4: oklch(0.807 0.022 232.987);
--chart-5: oklch(0.815 0.047 123.82);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.022 122.69);
--foreground: oklch(0.993 0.001 122.948);
--muted: oklch(0.239 0.016 233.732);
--muted-foreground: oklch(0.724 0.005 232.673);
--popover: oklch(0.147 0.022 122.69);
--popover-foreground: oklch(0.993 0.001 122.948);
--card: oklch(0.164 0.025 124.1);
--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.81 0.041 123.708);
--primary-foreground: oklch(0.255 0.023 124.365);
--secondary: oklch(0.783 0.025 233.058);
--secondary-foreground: oklch(0.239 0.014 233.557);
--accent: oklch(0.766 0.041 339.834);
--accent-foreground: oklch(0.23 0.024 340.819);
--destructive: oklch(0.587 0.236 29.299);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.81 0.041 123.708);
--chart-1: oklch(0.81 0.041 123.708);
--chart-2: oklch(0.783 0.025 233.058);
--chart-3: oklch(0.766 0.041 339.834);
--chart-4: oklch(0.807 0.022 232.987);
--chart-5: oklch(0.815 0.047 123.82);
}