Caddy is a shadcn/ui theme built around a near-black primary color (#030d05) with near-black accents (#0d0503). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the near-black primary (#030d05) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #030704black |
| Foreground | #000000black | #f9fbf9mintcream |
| Card | #f8fcf9mintcream | #030704black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #f8fcf9mintcream | #030704black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #030d05black | #030d05black |
| Primary foreground | #25b64elimegreen | #25b64elimegreen |
| Secondary | #05030dblack | #05030dblack |
| Secondary foreground | #c7b7f0thistle | #c7b7f0thistle |
| Muted | #ddd8e9gainsboro | #1b1627black |
| Muted foreground | #585365dimgray | #9f9aacdarkgray |
| Accent | #0d0503black | #0d0503black |
| Accent foreground | #df8662darksalmon | #df8662darksalmon |
| Destructive | #732207maroon | #f15622chocolate |
| Destructive foreground | #fac4b2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030d05black | #030d05black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 11.19:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 11.19:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Caddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 155.089);
--foreground: oklch(0 0 0);
--muted: oklch(0.891 0.023 298.862);
--muted-foreground: oklch(0.453 0.03 298.149);
--popover: oklch(0.987 0.005 155.089);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 155.089);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.143 0.026 154.307);
--primary-foreground: oklch(0.681 0.186 147.648);
--secondary: oklch(0.109 0.03 299.025);
--secondary-foreground: oklch(0.813 0.081 297.554);
--accent: oklch(0.129 0.018 52.152);
--accent-foreground: oklch(0.706 0.121 42.102);
--destructive: oklch(0.377 0.119 36.951);
--destructive-foreground: oklch(0.864 0.067 39.236);
--ring: oklch(0.143 0.026 154.307);
--chart-1: oklch(0.143 0.026 154.307);
--chart-2: oklch(0.109 0.03 299.025);
--chart-3: oklch(0.129 0.018 52.152);
--chart-4: oklch(0.141 0.044 294.577);
--chart-5: oklch(0.143 0.027 154.246);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.013 154.824);
--foreground: oklch(0.986 0.003 155.14);
--muted: oklch(0.216 0.032 296.604);
--muted-foreground: oklch(0.697 0.027 298.634);
--popover: oklch(0.121 0.013 154.824);
--popover-foreground: oklch(0.986 0.003 155.14);
--card: oklch(0.121 0.013 154.824);
--card-foreground: oklch(0.986 0.003 155.14);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.143 0.026 154.307);
--primary-foreground: oklch(0.681 0.186 147.648);
--secondary: oklch(0.109 0.03 299.025);
--secondary-foreground: oklch(0.813 0.081 297.554);
--accent: oklch(0.129 0.018 52.152);
--accent-foreground: oklch(0.706 0.121 42.102);
--destructive: oklch(0.656 0.2 37.298);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.143 0.026 154.307);
--chart-1: oklch(0.143 0.026 154.307);
--chart-2: oklch(0.109 0.03 299.025);
--chart-3: oklch(0.129 0.018 52.152);
--chart-4: oklch(0.141 0.044 294.577);
--chart-5: oklch(0.143 0.027 154.246);
}