Careful is a shadcn/ui theme built around a muted indigo primary color (#666490) with muted light indigo accents (#bebddb). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the muted indigo primary (#666490) on an indigo-tinted background (#07070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfdsnow | #07070eblack |
| Foreground | #04040cblack | #f6f6f8whitesmoke |
| Card | #f8f8fcghostwhite | #090811black |
| Card foreground | #030208black | #f9f9fbghostwhite |
| Popover | #fcfbfdsnow | #07070eblack |
| Popover foreground | #04040cblack | #f6f6f8whitesmoke |
| Primary | #666490slategray | #666490slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d5d4e2gainsboro | #272730darkslategray |
| Secondary foreground | #363550darkslategray | #bebecbsilver |
| Muted | #cdcce6lightgrey | #1a1933midnightblue |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #bebddblightsteelblue | #36364adarkslategray |
| Accent foreground | #252442darkslategray | #d3d3dflightgrey |
| Destructive | #770e09maroon | #ee261bcrimson |
| Destructive foreground | #fabbb8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #666490slategray | #666490slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Careful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 287.892);
--foreground: oklch(0.11 0.023 284.151);
--muted: oklch(0.853 0.036 287.143);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.99 0.003 287.892);
--popover-foreground: oklch(0.11 0.023 284.151);
--card: oklch(0.98 0.005 287.843);
--card-foreground: oklch(0.096 0.02 284.2);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.524 0.069 285.284);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.875 0.02 287.522);
--secondary-foreground: oklch(0.342 0.046 285.211);
--accent: oklch(0.809 0.041 286.965);
--accent-foreground: oklch(0.278 0.054 283.831);
--destructive: oklch(0.365 0.138 29.149);
--destructive-foreground: oklch(0.849 0.073 22.149);
--ring: oklch(0.524 0.069 285.284);
--chart-1: oklch(0.524 0.069 285.284);
--chart-2: oklch(0.875 0.02 287.522);
--chart-3: oklch(0.809 0.041 286.965);
--chart-4: oklch(0.902 0.015 287.626);
--chart-5: oklch(0.515 0.081 284.72);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.016 285.751);
--foreground: oklch(0.975 0.003 287.89);
--muted: oklch(0.23 0.049 283.309);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.131 0.016 285.751);
--popover-foreground: oklch(0.975 0.003 287.89);
--card: oklch(0.142 0.019 285.373);
--card-foreground: oklch(0.983 0.002 287.907);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.524 0.069 285.284);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.275 0.017 286.719);
--secondary-foreground: oklch(0.805 0.018 287.522);
--accent: oklch(0.341 0.036 285.875);
--accent-foreground: oklch(0.87 0.017 287.58);
--destructive: oklch(0.609 0.232 29.207);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.069 285.284);
--chart-1: oklch(0.524 0.069 285.284);
--chart-2: oklch(0.275 0.017 286.719);
--chart-3: oklch(0.341 0.036 285.875);
--chart-4: oklch(0.304 0.02 286.666);
--chart-5: oklch(0.515 0.081 284.72);
}