Whale is a shadcn/ui theme built around a muted violet primary color (#7c5889) with muted purple accents (#89587d). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted violet primary (#7c5889) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #030104black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #030104black | #fdfcfdwhite |
| Primary | #7c5889dimgray | #7c5889dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #635889dimgray | #635889dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d3cee3lightgrey | #211c31darkslategray |
| Muted foreground | #58526bdimgray | #9a94addarkgray |
| Accent | #89587dgray | #89587dgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #dd2f03orangered | #e23003orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c5889dimgray | #7c5889dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 4.84:1 | AA |
| Accent | 5.61:1 | AA |
| Destructive | 4.68:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 5.68:1 | AA |
| Accent | 5.61:1 | AA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Whale in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 317.181);
--foreground: oklch(0.082 0.022 319.425);
--muted: oklch(0.862 0.03 296.455);
--muted-foreground: oklch(0.454 0.04 295.457);
--popover: oklch(0.991 0.004 317.181);
--popover-foreground: oklch(0.082 0.022 319.425);
--card: oklch(0.991 0.004 317.181);
--card-foreground: oklch(0.082 0.022 319.425);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.516 0.087 316.769);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.491 0.079 294.028);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.526 0.084 335.633);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.583 0.214 32.991);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.516 0.087 316.769);
--chart-1: oklch(0.516 0.087 316.769);
--chart-2: oklch(0.491 0.079 294.028);
--chart-3: oklch(0.526 0.084 335.633);
--chart-4: oklch(0.514 0.083 294.002);
--chart-5: oklch(0.513 0.098 316.694);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 317.185);
--muted: oklch(0.241 0.041 293.851);
--muted-foreground: oklch(0.681 0.036 296.114);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 317.185);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.002 317.185);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.516 0.087 316.769);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.491 0.079 294.028);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.526 0.084 335.633);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.593 0.217 32.961);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.516 0.087 316.769);
--chart-1: oklch(0.516 0.087 316.769);
--chart-2: oklch(0.491 0.079 294.028);
--chart-3: oklch(0.526 0.084 335.633);
--chart-4: oklch(0.514 0.083 294.002);
--chart-5: oklch(0.513 0.098 316.694);
}