Careless is a shadcn/ui theme built around an indigo primary color (#282aaf) with muted light indigo accents (#b8b8d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#282aaf) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #030407black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030407black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #282aafdarkslateblue | #282aafdarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d5d5e1gainsboro | #29292edarkslategray |
| Secondary foreground | #37374edarkslategray | #c1c1c8silver |
| Muted | #cecee3lightgrey | #1c1c31darkslategray |
| Muted foreground | #404154darkslategray | #abacbfdarkgray |
| Accent | #b8b8d6lightsteelblue | #353645darkslategray |
| Accent foreground | #22223adarkslategray | #d1d1dclightgrey |
| Destructive | #ab2d03firebrick | #fb4d13orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #282aafdarkslateblue | #282aafdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 10.32:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 10.32:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Careless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.859 0.029 284.998);
--muted-foreground: oklch(0.381 0.032 284.01);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.392 0.202 271.469);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.878 0.016 285.281);
--secondary-foreground: oklch(0.348 0.038 283.454);
--accent: oklch(0.793 0.042 284.63);
--accent-foreground: oklch(0.264 0.045 282.097);
--destructive: oklch(0.491 0.168 35.504);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.392 0.202 271.469);
--chart-1: oklch(0.392 0.202 271.469);
--chart-2: oklch(0.878 0.016 285.281);
--chart-3: oklch(0.793 0.042 284.63);
--chart-4: oklch(0.904 0.013 285.364);
--chart-5: oklch(0.389 0.209 270.581);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.009 283.343);
--foreground: oklch(1 0 180);
--muted: oklch(0.237 0.04 282.14);
--muted-foreground: oklch(0.749 0.027 284.956);
--popover: oklch(0.105 0.011 283.343);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.105 0.011 283.343);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.392 0.202 271.469);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.282 0.009 285.013);
--secondary-foreground: oklch(0.813 0.01 285.404);
--accent: oklch(0.337 0.027 284.07);
--accent-foreground: oklch(0.864 0.014 285.318);
--destructive: oklch(0.662 0.219 36.08);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.392 0.202 271.469);
--chart-1: oklch(0.392 0.202 271.469);
--chart-2: oklch(0.282 0.009 285.013);
--chart-3: oklch(0.337 0.027 284.07);
--chart-4: oklch(0.312 0.011 284.988);
--chart-5: oklch(0.389 0.209 270.581);
}