Care is a shadcn/ui theme built around a deep pink primary color (#6c1e4f) with deep green accents (#1e6c3a). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep pink primary (#6c1e4f) on a pink-tinted background (#0f050c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0f050cblack |
| Foreground | #090206black | #f9f5f8whitesmoke |
| Card | #fcf8fasnow | #13060eblack |
| Card foreground | #040103black | #fbf9fasnow |
| Popover | #fcf8fasnow | #13060eblack |
| Popover foreground | #040103black | #fbf9fasnow |
| Primary | #6c1e4fpurple | #6c1e4fpurple |
| Primary foreground | #f1cbe3gainsboro | #f1cbe3gainsboro |
| Secondary | #1e6c3aforestgreen | #1e6c3aforestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eef1efwhitesmoke | #0e110fblack |
| Muted foreground | #45544adarkslategray | #abbab0darkgray |
| Accent | #1e6c3aforestgreen | #1e6c3aforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7c2b09saddlebrown | #f0682dtomato |
| Destructive foreground | #facfbcpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6c1e4fpurple | #6c1e4fpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 7.05:1 | AAA |
| Accent | 6.43:1 | AA |
| Destructive | 6.66:1 | AA |
| Text on background | 18.55:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 9.40:1 | AAA |
| Accent | 6.43:1 | AA |
| Destructive | 6.72:1 | AA |
Paste this into your globals.css to use Care in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 338.77);
--foreground: oklch(0.105 0.027 339.06);
--muted: oklch(0.956 0.004 158.635);
--muted-foreground: oklch(0.43 0.025 157.4);
--popover: oklch(0.983 0.005 338.821);
--popover-foreground: oklch(0.083 0.022 339.06);
--card: oklch(0.983 0.005 338.821);
--card-foreground: oklch(0.083 0.022 339.06);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.377 0.124 345.76);
--primary-foreground: oklch(0.881 0.053 339.954);
--secondary: oklch(0.472 0.109 151.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.472 0.109 151.543);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.405 0.12 39.943);
--destructive-foreground: oklch(0.887 0.055 44.458);
--ring: oklch(0.377 0.124 345.76);
--chart-1: oklch(0.377 0.124 345.76);
--chart-2: oklch(0.472 0.109 151.543);
--chart-3: oklch(0.472 0.109 151.543);
--chart-4: oklch(0.508 0.119 151.431);
--chart-5: oklch(0.378 0.129 346.126);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.026 340.76);
--foreground: oklch(0.975 0.005 338.833);
--muted: oklch(0.172 0.006 157.988);
--muted-foreground: oklch(0.775 0.022 158.1);
--popover: oklch(0.15 0.029 341.872);
--popover-foreground: oklch(0.983 0.003 338.794);
--card: oklch(0.15 0.029 341.872);
--card-foreground: oklch(0.983 0.003 338.794);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.377 0.124 345.76);
--primary-foreground: oklch(0.881 0.053 339.954);
--secondary: oklch(0.472 0.109 151.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.472 0.109 151.543);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.678 0.182 41.325);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.377 0.124 345.76);
--chart-1: oklch(0.377 0.124 345.76);
--chart-2: oklch(0.472 0.109 151.543);
--chart-3: oklch(0.472 0.109 151.543);
--chart-4: oklch(0.508 0.119 151.431);
--chart-5: oklch(0.378 0.129 346.126);
}