Careful is a shadcn/ui theme built around a vivid deep blue primary color (#020841) with vivid deep violet accents (#1b0241). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#020841) on a neutral background (#020308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020308black |
| Foreground | #04040cblack | #f5f6f9whitesmoke |
| Card | #ffffffwhite | #020308black |
| Card foreground | #04040cblack | #f5f6f9whitesmoke |
| Popover | #ffffffwhite | #020308black |
| Popover foreground | #04040cblack | #f5f6f9whitesmoke |
| Primary | #020841midnightblue | #020841midnightblue |
| Primary foreground | #dce0felavender | #dce0felavender |
| Secondary | #022741midnightblue | #022741midnightblue |
| Secondary foreground | #79c7fclightskyblue | #79c7fclightskyblue |
| Muted | #dfe1e2gainsboro | #1d1f20black |
| Muted foreground | #636769dimgray | #969a9cdarkgray |
| Accent | #1b0241midnightblue | #1b0241midnightblue |
| Accent foreground | #ad79fcmediumpurple | #ad79fcmediumpurple |
| Destructive | #bb1e02firebrick | #ed2602orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020841midnightblue | #020841midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 14.50:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 4.34:1 | AA Large |
| Accent | 6.12:1 | AA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 14.50:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 6.12:1 | AA |
| Destructive | 4.29: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.114 0.02 275.81);
--muted: oklch(0.908 0.003 236.484);
--muted-foreground: oklch(0.51 0.006 236.605);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.02 275.81);
--card: oklch(1 0 180);
--card-foreground: oklch(0.114 0.02 275.81);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.187 0.105 265.579);
--primary-foreground: oklch(0.912 0.042 280.512);
--secondary: oklch(0.264 0.062 243.435);
--secondary-foreground: oklch(0.8 0.108 239.245);
--accent: oklch(0.2 0.107 292.649);
--accent-foreground: oklch(0.685 0.189 299.894);
--destructive: oklch(0.508 0.193 31.634);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.187 0.105 265.579);
--chart-1: oklch(0.187 0.105 265.579);
--chart-2: oklch(0.264 0.062 243.435);
--chart-3: oklch(0.2 0.107 292.649);
--chart-4: oklch(0.3 0.073 244.564);
--chart-5: oklch(0.186 0.108 264.688);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.017 275.782);
--foreground: oklch(0.973 0.005 281.208);
--muted: oklch(0.237 0.004 236.702);
--muted-foreground: oklch(0.683 0.006 236.553);
--popover: oklch(0.1 0.017 275.782);
--popover-foreground: oklch(0.973 0.005 281.208);
--card: oklch(0.1 0.017 275.782);
--card-foreground: oklch(0.973 0.005 281.208);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.187 0.105 265.579);
--primary-foreground: oklch(0.912 0.042 280.512);
--secondary: oklch(0.264 0.062 243.435);
--secondary-foreground: oklch(0.8 0.108 239.245);
--accent: oklch(0.2 0.107 292.649);
--accent-foreground: oklch(0.685 0.189 299.894);
--destructive: oklch(0.607 0.233 31.356);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.187 0.105 265.579);
--chart-1: oklch(0.187 0.105 265.579);
--chart-2: oklch(0.264 0.062 243.435);
--chart-3: oklch(0.2 0.107 292.649);
--chart-4: oklch(0.3 0.073 244.564);
--chart-5: oklch(0.186 0.108 264.688);
}