Whip is a shadcn/ui theme built around a violet primary color (#5e1589) with teal accents (#15895e). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#5e1589) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030203black |
| Foreground | #0f0316black | #f8f4fawhitesmoke |
| Card | #fdfbfewhite | #030203black |
| Card foreground | #0f0316black | #f8f4fawhitesmoke |
| Popover | #fdfbfewhite | #030203black |
| Popover foreground | #0f0316black | #f8f4fawhitesmoke |
| Primary | #5e1589indigo | #5e1589indigo |
| Primary foreground | #edd7f9lavender | #edd7f9lavender |
| Secondary | #895e15saddlebrown | #895e15saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0eeealinen | #15130fblack |
| Muted foreground | #6f685ddimgray | #a29b90rosybrown |
| Accent | #15895eseagreen | #15895eseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a54312saddlebrown | #d85818chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e1589indigo | #5e1589indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 4.74:1 | AA |
| Accent | 4.41:1 | AA Large |
| Destructive | 6.13:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 6.75:1 | AA |
| Accent | 4.41:1 | AA Large |
| Destructive | 3.94: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.005 313.578);
--foreground: oklch(0.138 0.047 312.862);
--muted: oklch(0.949 0.005 81.513);
--muted-foreground: oklch(0.522 0.02 81.443);
--popover: oklch(0.99 0.005 313.578);
--popover-foreground: oklch(0.138 0.047 312.862);
--card: oklch(0.99 0.005 313.578);
--card-foreground: oklch(0.138 0.047 312.862);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.385 0.176 308.565);
--primary-foreground: oklch(0.908 0.05 313.266);
--secondary: oklch(0.516 0.1 75.463);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.559 0.117 161.929);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.509 0.141 42.706);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.176 308.565);
--chart-1: oklch(0.385 0.176 308.565);
--chart-2: oklch(0.516 0.1 75.463);
--chart-3: oklch(0.559 0.117 161.929);
--chart-4: oklch(0.551 0.108 75.29);
--chart-5: oklch(0.386 0.18 308.228);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.009 314.556);
--foreground: oklch(0.973 0.009 313.548);
--muted: oklch(0.186 0.008 81.422);
--muted-foreground: oklch(0.693 0.018 81.481);
--popover: oklch(0.087 0.009 314.556);
--popover-foreground: oklch(0.973 0.009 313.548);
--card: oklch(0.087 0.009 314.556);
--card-foreground: oklch(0.973 0.009 313.548);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.385 0.176 308.565);
--primary-foreground: oklch(0.908 0.05 313.266);
--secondary: oklch(0.516 0.1 75.463);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.559 0.117 161.929);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.618 0.175 42.305);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.176 308.565);
--chart-1: oklch(0.385 0.176 308.565);
--chart-2: oklch(0.516 0.1 75.463);
--chart-3: oklch(0.559 0.117 161.929);
--chart-4: oklch(0.551 0.108 75.29);
--chart-5: oklch(0.386 0.18 308.228);
}