Whip is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#d3bbbb). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #040101black |
| Foreground | #150404black | #fbf9f9snow |
| Card | #fdf6f6snow | #080202black |
| Card foreground | #110404black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #040101black |
| Popover foreground | #150404black | #fbf9f9snow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ddd4d4lightgrey | #1b1818black |
| Secondary foreground | #473838darkslategray | #b6afafdarkgray |
| Muted | #eeddddgainsboro | #221111black |
| Muted foreground | #564848darkslategray | #b7a9a9darkgray |
| Accent | #d3bbbbsilver | #312626darkslategray |
| Accent foreground | #382424darkslategray | #ccbdbdsilver |
| Destructive | #752b0bsaddlebrown | #db5014chocolate |
| Destructive foreground | #f8ccb9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Whip in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.22);
--foreground: oklch(0.143 0.033 22.133);
--muted: oklch(0.911 0.019 17.509);
--muted-foreground: oklch(0.416 0.019 17.958);
--popover: oklch(0.99 0.004 17.22);
--popover-foreground: oklch(0.143 0.033 22.133);
--card: oklch(0.98 0.007 17.283);
--card-foreground: oklch(0.13 0.029 21.841);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.878 0.01 17.35);
--secondary-foreground: oklch(0.358 0.022 18.221);
--accent: oklch(0.812 0.028 17.749);
--accent-foreground: oklch(0.285 0.031 19.166);
--destructive: oklch(0.392 0.112 40.513);
--destructive-foreground: oklch(0.879 0.057 44.444);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.878 0.01 17.35);
--chart-3: oklch(0.812 0.028 17.749);
--chart-4: oklch(0.903 0.008 17.305);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.014 20.688);
--foreground: oklch(0.983 0.003 17.207);
--muted: oklch(0.202 0.029 19.948);
--muted-foreground: oklch(0.746 0.016 17.528);
--popover: oklch(0.082 0.014 20.688);
--popover-foreground: oklch(0.983 0.003 17.207);
--card: oklch(0.104 0.018 20.688);
--card-foreground: oklch(0.991 0.001 17.183);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.213 0.003 17.409);
--secondary-foreground: oklch(0.76 0.007 17.31);
--accent: oklch(0.28 0.017 18.219);
--accent-foreground: oklch(0.81 0.017 17.516);
--destructive: oklch(0.613 0.186 39.524);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.213 0.003 17.409);
--chart-3: oklch(0.28 0.017 18.219);
--chart-4: oklch(0.246 0.004 17.432);
--chart-5: oklch(1 0 180);
}