Careless is a shadcn/ui theme built around a vivid deep green primary color (#021804) with muted light green accents (#cadecb). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid deep green primary (#021804) on a green-tinted background (#060e07).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #060e07black |
| Foreground | #020d03black | #f5faf5whitesmoke |
| Card | #f7fdf7mintcream | #060e07black |
| Card foreground | #020d03black | #f5faf5whitesmoke |
| Popover | #f7fdf7mintcream | #060e07black |
| Popover foreground | #020d03black | #f5faf5whitesmoke |
| Primary | #021804black | #021804black |
| Primary foreground | #0fd720limegreen | #0fd720limegreen |
| Secondary | #e5ebe5gainsboro | #212721black |
| Secondary foreground | #435b45darkslategray | #b7c2b8silver |
| Muted | #ebefecwhitesmoke | #101410black |
| Muted foreground | #515251darkslategray | #adaeaddarkgray |
| Accent | #cadecblightgrey | #2f4131darkslategray |
| Accent foreground | #2d482fdarkslategray | #cad8cblightgrey |
| Destructive | #a61b03firebrick | #fb2904orangered |
| Destructive foreground | #fee1dcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #021804black | #021804black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 9.49:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 6.76:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 18.49:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 9.49:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 7.38:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Careless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 147.962);
--foreground: oklch(0.143 0.035 146.146);
--muted: oklch(0.948 0.006 148);
--muted-foreground: oklch(0.438 0.003 147.987);
--popover: oklch(0.988 0.01 147.962);
--popover-foreground: oklch(0.143 0.035 146.146);
--card: oklch(0.988 0.01 147.962);
--card-foreground: oklch(0.143 0.035 146.146);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.183 0.052 145.245);
--primary-foreground: oklch(0.762 0.252 143.052);
--secondary: oklch(0.935 0.011 147.938);
--secondary-foreground: oklch(0.445 0.045 146.919);
--accent: oklch(0.879 0.033 147.666);
--accent-foreground: oklch(0.373 0.053 146.411);
--destructive: oklch(0.467 0.176 31.809);
--destructive-foreground: oklch(0.933 0.033 29.633);
--ring: oklch(0.183 0.052 145.245);
--chart-1: oklch(0.183 0.052 145.245);
--chart-2: oklch(0.935 0.011 147.938);
--chart-3: oklch(0.879 0.033 147.666);
--chart-4: oklch(0.956 0.007 147.983);
--chart-5: oklch(0.184 0.054 145.166);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.021 146.938);
--foreground: oklch(0.98 0.009 147.972);
--muted: oklch(0.184 0.009 147.559);
--muted-foreground: oklch(0.75 0.003 148.025);
--popover: oklch(0.153 0.021 146.938);
--popover-foreground: oklch(0.98 0.009 147.972);
--card: oklch(0.153 0.021 146.938);
--card-foreground: oklch(0.98 0.009 147.972);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.183 0.052 145.245);
--primary-foreground: oklch(0.762 0.252 143.052);
--secondary: oklch(0.263 0.013 147.546);
--secondary-foreground: oklch(0.803 0.018 147.829);
--accent: oklch(0.355 0.036 146.914);
--accent-foreground: oklch(0.869 0.024 147.768);
--destructive: oklch(0.634 0.243 31.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.183 0.052 145.245);
--chart-1: oklch(0.183 0.052 145.245);
--chart-2: oklch(0.263 0.013 147.546);
--chart-3: oklch(0.355 0.036 146.914);
--chart-4: oklch(0.295 0.015 147.519);
--chart-5: oklch(0.184 0.054 145.166);
}