Careful is a shadcn/ui theme built around a violet primary color (#72428a) with teal accents (#428a72). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the violet primary (#72428a) on a violet-tinted background (#09040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #09040bblack |
| Foreground | #0f0514black | #f8f6f8whitesmoke |
| Card | #fbf8fcghostwhite | #0c060fblack |
| Card foreground | #0c0410black | #faf9fbghostwhite |
| Popover | #fbf8fcghostwhite | #0c060fblack |
| Popover foreground | #0c0410black | #faf9fbghostwhite |
| Primary | #72428arebeccapurple | #72428arebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8a7242sienna | #8a7242sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5e4e1gainsboro | #1e1d1ablack |
| Muted foreground | #535250darkslategray | #afaeacdarkgray |
| Accent | #428a72seagreen | #428a72seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ab1712firebrick | #ec4c46tomato |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #72428arebeccapurple | #72428arebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 4.60:1 | AA |
| Muted text | 6.12:1 | AA |
| Accent | 4.12:1 | AA Large |
| Destructive | 6.71:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 4.60:1 | AA |
| Muted text | 7.62:1 | AAA |
| Accent | 4.12:1 | AA Large |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Careful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 314.812);
--foreground: oklch(0.144 0.036 314.259);
--muted: oklch(0.918 0.004 84.562);
--muted-foreground: oklch(0.439 0.004 84.572);
--popover: oklch(0.982 0.006 314.797);
--popover-foreground: oklch(0.132 0.031 315.126);
--card: oklch(0.982 0.006 314.797);
--card-foreground: oklch(0.132 0.031 315.126);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.468 0.122 313.356);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.563 0.072 83.615);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.579 0.082 169.236);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.475 0.181 28.764);
--destructive-foreground: oklch(0.969 0.013 19.794);
--ring: oklch(0.468 0.122 313.356);
--chart-1: oklch(0.468 0.122 313.356);
--chart-2: oklch(0.563 0.072 83.615);
--chart-3: oklch(0.579 0.082 169.236);
--chart-4: oklch(0.594 0.076 83.594);
--chart-5: oklch(0.466 0.131 313.184);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.021 316.247);
--foreground: oklch(0.976 0.003 314.81);
--muted: oklch(0.23 0.005 84.592);
--muted-foreground: oklch(0.751 0.003 84.563);
--popover: oklch(0.135 0.025 315.007);
--popover-foreground: oklch(0.984 0.002 314.816);
--card: oklch(0.135 0.025 315.007);
--card-foreground: oklch(0.984 0.002 314.816);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.468 0.122 313.356);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.563 0.072 83.615);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.579 0.082 169.236);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.639 0.197 26.346);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.468 0.122 313.356);
--chart-1: oklch(0.468 0.122 313.356);
--chart-2: oklch(0.563 0.072 83.615);
--chart-3: oklch(0.579 0.082 169.236);
--chart-4: oklch(0.594 0.076 83.594);
--chart-5: oklch(0.466 0.131 313.184);
}