Cactus is a shadcn/ui theme built around a vivid light red primary color (#fdd8db) with vivid light orange accents (#fde8d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fdd8db) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040101black |
| Foreground | #040101black | #ffffffwhite |
| Card | #ffffffwhite | #040101black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #ffffffwhite | #040101black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #fdd8dbmistyrose | #fdd8dbmistyrose |
| Primary foreground | #9c0711darkred | #9c0711darkred |
| Secondary | #fdd8edmistyrose | #fdd8edmistyrose |
| Secondary foreground | #9c075cpurple | #9c075cpurple |
| Muted | #e2d0dagainsboro | #2f1d27darkslategray |
| Muted foreground | #453b40darkslategray | #c4bac0silver |
| Accent | #fde8d8antiquewhite | #fde8d8antiquewhite |
| Accent foreground | #3a1b03black | #3a1b03black |
| Destructive | #bf1303firebrick | #f11704red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdd8dbmistyrose | #fdd8dbmistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 7.28:1 | AAA |
| Accent | 13.25:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 8.37:1 | AAA |
| Accent | 13.25:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Cactus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.015 14.674);
--muted: oklch(0.874 0.025 342.468);
--muted-foreground: oklch(0.364 0.017 342.895);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.015 14.674);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.015 14.674);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.914 0.042 13.386);
--primary-foreground: oklch(0.438 0.175 26.885);
--secondary: oklch(0.919 0.049 343.045);
--secondary-foreground: oklch(0.455 0.183 355.045);
--accent: oklch(0.944 0.031 59.821);
--accent-foreground: oklch(0.262 0.061 54.454);
--destructive: oklch(0.511 0.202 30.15);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.914 0.042 13.386);
--chart-1: oklch(0.914 0.042 13.386);
--chart-2: oklch(0.919 0.049 343.045);
--chart-3: oklch(0.944 0.031 59.821);
--chart-4: oklch(0.949 0.03 342.559);
--chart-5: oklch(0.913 0.043 13.42);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.014 14.447);
--foreground: oklch(1 0 180);
--muted: oklch(0.259 0.034 344.7);
--muted-foreground: oklch(0.799 0.014 342.221);
--popover: oklch(0.083 0.014 14.447);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.083 0.014 14.447);
--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.914 0.042 13.386);
--primary-foreground: oklch(0.438 0.175 26.885);
--secondary: oklch(0.919 0.049 343.045);
--secondary-foreground: oklch(0.455 0.183 355.045);
--accent: oklch(0.944 0.031 59.821);
--accent-foreground: oklch(0.262 0.061 54.454);
--destructive: oklch(0.607 0.242 30.014);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.914 0.042 13.386);
--chart-1: oklch(0.914 0.042 13.386);
--chart-2: oklch(0.919 0.049 343.045);
--chart-3: oklch(0.944 0.031 59.821);
--chart-4: oklch(0.949 0.03 342.559);
--chart-5: oklch(0.913 0.043 13.42);
}