Careful is a shadcn/ui theme built around a vivid green primary color (#def415) with vivid purple accents (#f415de). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#def415) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #070802black | #fafaf4floralwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #070802black | #fafaf4floralwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #070802black | #fafaf4floralwhite |
| Primary | #def415yellow | #def415yellow |
| Primary foreground | #353a03darkgreen | #353a03darkgreen |
| Secondary | #15def4deepskyblue | #15def4deepskyblue |
| Secondary foreground | #03353adarkslategray | #03353adarkslategray |
| Muted | #ebf3f4whitesmoke | #0b1314black |
| Muted foreground | #4f6264dimgray | #9baeb0darkgray |
| Accent | #f415demagenta | #f415demagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c21a00firebrick | #ff2605orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #def415yellow | #def415yellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 9.69:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 3.49:1 | AA Large |
| Destructive | 6.11:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 9.69:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 3.49:1 | AA Large |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Careful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.017 112.305);
--muted: oklch(0.959 0.009 204.923);
--muted-foreground: oklch(0.48 0.024 204.715);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.017 112.305);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.017 112.305);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.919 0.208 116.312);
--primary-foreground: oklch(0.334 0.074 115.671);
--secondary: oklch(0.824 0.139 207.841);
--secondary-foreground: oklch(0.301 0.05 206.553);
--accent: oklch(0.67 0.293 333.561);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.519 0.202 31.159);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.919 0.208 116.312);
--chart-1: oklch(0.919 0.208 116.312);
--chart-2: oklch(0.824 0.139 207.841);
--chart-3: oklch(0.67 0.293 333.561);
--chart-4: oklch(0.83 0.138 207.18);
--chart-5: oklch(0.929 0.211 116.415);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.008 111.164);
--muted: oklch(0.178 0.012 204.685);
--muted-foreground: oklch(0.738 0.022 204.796);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.008 111.164);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.008 111.164);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.919 0.208 116.312);
--primary-foreground: oklch(0.334 0.074 115.671);
--secondary: oklch(0.824 0.139 207.841);
--secondary-foreground: oklch(0.301 0.05 206.553);
--accent: oklch(0.67 0.293 333.561);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.639 0.247 30.956);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.919 0.208 116.312);
--chart-1: oklch(0.919 0.208 116.312);
--chart-2: oklch(0.824 0.139 207.841);
--chart-3: oklch(0.67 0.293 333.561);
--chart-4: oklch(0.83 0.138 207.18);
--chart-5: oklch(0.929 0.211 116.415);
}