Magnetic Green Whale is a shadcn/ui theme built around a deep teal primary color (#296a6a) with deep blue accents (#294a6a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#296a6a) on a teal-tinted background (#030c0c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c0cblack |
| Foreground | #061414black | #ffffffwhite |
| Card | #fcfcfcsnow | #041010black |
| Card foreground | #051010black | #ffffffwhite |
| Popover | #fcfcfcsnow | #041010black |
| Popover foreground | #051010black | #ffffffwhite |
| Primary | #296a6aseagreen | #296a6aseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #296a4adarkslategray | #296a4adarkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0ebe6gainsboro | #141f1ablack |
| Muted foreground | #3d4340darkslategray | #bcc2bfsilver |
| Accent | #294a6adarkslategray | #294a6adarkslategray |
| Accent foreground | #d7e3eflavender | #d7e3eflavender |
| Destructive | #c64606chocolate | #e95207orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e9ececlavender | #1c2121black |
| Input | #e9ececlavender | #1c2121black |
| Ring | #296a6aseagreen | #296a6aseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.78:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 6.40:1 | AA |
| Muted text | 8.26:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 6.40:1 | AA |
| Muted text | 9.38:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Magnetic Green Whale in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.177 0.02 195.475);
--muted: oklch(0.93 0.013 164.778);
--muted-foreground: oklch(0.376 0.01 164.427);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.161 0.018 195.527);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.161 0.018 195.527);
--border: oklch(0.941 0.004 197.098);
--input: oklch(0.941 0.004 197.098);
--primary: oklch(0.485 0.065 195.212);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.474 0.085 158.715);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.4 0.067 249.851);
--accent-foreground: oklch(0.91 0.021 248.064);
--destructive: oklch(0.566 0.174 40.21);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.485 0.065 195.212);
--chart-1: oklch(0.485 0.065 195.212);
--chart-2: oklch(0.474 0.085 158.715);
--chart-3: oklch(0.4 0.067 249.851);
--chart-4: oklch(0.508 0.092 158.621);
--chart-5: oklch(0.491 0.068 195.155);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.017 195.48);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.018 162.883);
--muted-foreground: oklch(0.809 0.008 164.872);
--popover: oklch(0.162 0.019 195.442);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.162 0.019 195.442);
--card-foreground: oklch(1 0 180);
--border: oklch(0.243 0.007 196.688);
--input: oklch(0.243 0.007 196.688);
--primary: oklch(0.485 0.065 195.212);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.474 0.085 158.715);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.4 0.067 249.851);
--accent-foreground: oklch(0.91 0.021 248.064);
--destructive: oklch(0.637 0.198 39.878);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.485 0.065 195.212);
--chart-1: oklch(0.485 0.065 195.212);
--chart-2: oklch(0.474 0.085 158.715);
--chart-3: oklch(0.4 0.067 249.851);
--chart-4: oklch(0.508 0.092 158.621);
--chart-5: oklch(0.491 0.068 195.155);
}