Whisper is a shadcn/ui theme built around a near-white primary color (#fefaff) with near-white accents (#fffafd). The light mode uses a neutral background (#fefbfe). Dark mode keeps the near-white primary (#fefaff) on a purple-tinted background (#0f050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0f050fblack |
| Foreground | #080109black | #fdfcfdwhite |
| Card | #fdf7fdsnow | #120713black |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fdf7fdsnow | #120713black |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #fefaffwhite | #fefaffwhite |
| Primary foreground | #560859indigo | #560859indigo |
| Secondary | #fcfaffghostwhite | #fcfaffghostwhite |
| Secondary foreground | #5e10b7rebeccapurple | #5e10b7rebeccapurple |
| Muted | #e2dbebgainsboro | #1c1424black |
| Muted foreground | #3f3b44darkslategray | #bfbbc4silver |
| Accent | #fffafdsnow | #fffafdsnow |
| Accent foreground | #b71069mediumvioletred | #b71069mediumvioletred |
| Destructive | #7d2303maroon | #fb5d23tomato |
| Destructive foreground | #fdc8b4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefaffwhite | #fefaffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 12.94:1 | AAA |
| Secondary button | 9.08:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 6.18:1 | AA |
| Destructive | 6.66:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 12.94:1 | AAA |
| Secondary button | 9.08:1 | AAA |
| Muted text | 9.47:1 | AAA |
| Accent | 6.18:1 | AA |
| Destructive | 6.65:1 | AA |
Paste this into your globals.css to use Whisper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 324.653);
--foreground: oklch(0.106 0.032 326.687);
--muted: oklch(0.902 0.023 306.795);
--muted-foreground: oklch(0.361 0.016 306.567);
--popover: oklch(0.982 0.011 324.688);
--popover-foreground: oklch(0.084 0.026 326.687);
--card: oklch(0.982 0.011 324.688);
--card-foreground: oklch(0.084 0.026 326.687);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.99 0.007 324.664);
--primary-foreground: oklch(0.326 0.142 326.648);
--secondary: oklch(0.989 0.006 307.037);
--secondary-foreground: oklch(0.424 0.223 295.055);
--accent: oklch(0.99 0.005 343.582);
--accent-foreground: oklch(0.512 0.202 356.67);
--destructive: oklch(0.396 0.129 37.254);
--destructive-foreground: oklch(0.874 0.067 40.912);
--ring: oklch(0.99 0.007 324.664);
--chart-1: oklch(0.99 0.007 324.664);
--chart-2: oklch(0.989 0.006 307.037);
--chart-3: oklch(0.99 0.005 343.582);
--chart-4: oklch(1.022 0.012 127.255);
--chart-5: oklch(0.99 0.007 324.666);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.028 325.856);
--foreground: oklch(0.992 0.002 324.629);
--muted: oklch(0.209 0.033 305.109);
--muted-foreground: oklch(0.797 0.013 306.909);
--popover: oklch(0.152 0.032 325.855);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.032 325.855);
--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.99 0.007 324.664);
--primary-foreground: oklch(0.326 0.142 326.648);
--secondary: oklch(0.989 0.006 307.037);
--secondary-foreground: oklch(0.424 0.223 295.055);
--accent: oklch(0.99 0.005 343.582);
--accent-foreground: oklch(0.512 0.202 356.67);
--destructive: oklch(0.678 0.204 38.233);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.99 0.007 324.664);
--chart-1: oklch(0.99 0.007 324.664);
--chart-2: oklch(0.989 0.006 307.037);
--chart-3: oklch(0.99 0.005 343.582);
--chart-4: oklch(1.022 0.012 127.255);
--chart-5: oklch(0.99 0.007 324.666);
}