Whorl is a shadcn/ui theme built around a vivid teal primary color (#1af9c1) with vivid red accents (#f91a52). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid teal primary (#1af9c1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #05100dblack | #f6f9f8whitesmoke |
| Card | #fbfefdwhite | #000000black |
| Card foreground | #05100dblack | #f6f9f8whitesmoke |
| Popover | #fbfefdwhite | #000000black |
| Popover foreground | #05100dblack | #f6f9f8whitesmoke |
| Primary | #1af9c1mediumspringgreen | #1af9c1mediumspringgreen |
| Primary foreground | #024635darkslategray | #024635darkslategray |
| Secondary | #f91a52crimson | #f91a52crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0dcddgainsboro | #231f20black |
| Muted foreground | #6d5f62dimgray | #a09295rosybrown |
| Accent | #f91a52crimson | #f91a52crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cf4602chocolate | #e34d02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1af9c1mediumspringgreen | #1af9c1mediumspringgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 3.95:1 | AA Large |
| Muted text | 4.44:1 | AA Large |
| Accent | 3.95:1 | AA Large |
| Destructive | 4.62:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 3.95:1 | AA Large |
| Muted text | 5.46:1 | AA |
| Accent | 3.95:1 | AA Large |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Whorl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 179.764);
--foreground: oklch(0.159 0.019 177.439);
--muted: oklch(0.897 0.005 0.033);
--muted-foreground: oklch(0.5 0.019 0.925);
--popover: oklch(0.995 0.004 179.764);
--popover-foreground: oklch(0.159 0.019 177.439);
--card: oklch(0.995 0.004 179.764);
--card-foreground: oklch(0.159 0.019 177.439);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.874 0.173 168.747);
--primary-foreground: oklch(0.35 0.069 169.7);
--secondary: oklch(0.63 0.243 16.72);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.63 0.243 16.72);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.581 0.183 39.553);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.874 0.173 168.747);
--chart-1: oklch(0.874 0.173 168.747);
--chart-2: oklch(0.63 0.243 16.72);
--chart-3: oklch(0.63 0.243 16.72);
--chart-4: oklch(0.639 0.236 14.514);
--chart-5: oklch(0.883 0.176 168.436);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.003 179.787);
--muted: oklch(0.244 0.007 0.709);
--muted-foreground: oklch(0.673 0.018 0.597);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.003 179.787);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.003 179.787);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.874 0.173 168.747);
--primary-foreground: oklch(0.35 0.069 169.7);
--secondary: oklch(0.63 0.243 16.72);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.63 0.243 16.72);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.622 0.197 39.332);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.874 0.173 168.747);
--chart-1: oklch(0.874 0.173 168.747);
--chart-2: oklch(0.63 0.243 16.72);
--chart-3: oklch(0.63 0.243 16.72);
--chart-4: oklch(0.639 0.236 14.514);
--chart-5: oklch(0.883 0.176 168.436);
}