Caterpillar is a shadcn/ui theme built around a vivid blue primary color (#0264ed) with vivid indigo accents (#1602ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0264ed) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030911black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030911black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030911black | #ffffffwhite |
| Primary | #0264eddodgerblue | #0264eddodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #02daeddarkturquoise | #02daeddarkturquoise |
| Secondary foreground | #002023black | #002023black |
| Muted | #d7dadbgainsboro | #242828darkslategray |
| Muted foreground | #616a6bdimgray | #949d9edarkgray |
| Accent | #1602edblue | #1602edblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6a1206maroon | #f34f39tomato |
| Destructive foreground | #fab2a8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0264eddodgerblue | #0264eddodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 5.16:1 | AA |
| Secondary button | 9.93:1 | AAA |
| Muted text | 3.95:1 | AA Large |
| Accent | 9.24:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.16:1 | AA |
| Secondary button | 9.93:1 | AAA |
| Muted text | 5.37:1 | AA |
| Accent | 9.24:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Caterpillar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.137 0.021 250.365);
--muted: oklch(0.887 0.004 203.541);
--muted-foreground: oklch(0.517 0.012 203.39);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.137 0.021 250.365);
--card: oklch(1 0 180);
--card-foreground: oklch(0.137 0.021 250.365);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.545 0.221 260.019);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.811 0.139 206.326);
--secondary-foreground: oklch(0.224 0.038 203.482);
--accent: oklch(0.433 0.293 266.062);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.342 0.123 31.189);
--destructive-foreground: oklch(0.828 0.086 27.476);
--ring: oklch(0.545 0.221 260.019);
--chart-1: oklch(0.545 0.221 260.019);
--chart-2: oklch(0.811 0.139 206.326);
--chart-3: oklch(0.433 0.293 266.062);
--chart-4: oklch(0.849 0.145 206.365);
--chart-5: oklch(0.547 0.226 260.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.005 203.418);
--muted-foreground: oklch(0.69 0.011 203.442);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.545 0.221 260.019);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.811 0.139 206.326);
--secondary-foreground: oklch(0.224 0.038 203.482);
--accent: oklch(0.433 0.293 266.062);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.654 0.204 30.702);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.545 0.221 260.019);
--chart-1: oklch(0.545 0.221 260.019);
--chart-2: oklch(0.811 0.139 206.326);
--chart-3: oklch(0.433 0.293 266.062);
--chart-4: oklch(0.849 0.145 206.365);
--chart-5: oklch(0.547 0.226 260.205);
}