Carefree is a shadcn/ui theme built around a near-white primary color (#f4f5f5) with near-white accents (#f4f4f5). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the near-white primary (#f4f5f5) on a blue-tinted background (#070a0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #070a0eblack |
| Foreground | #03070cblack | #ffffffwhite |
| Card | #f8fafcghostwhite | #090d11black |
| Card foreground | #020508black | #ffffffwhite |
| Popover | #fcfcfdwhite | #070a0eblack |
| Popover foreground | #03070cblack | #ffffffwhite |
| Primary | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Primary foreground | #565c61dimgray | #565c61dimgray |
| Secondary | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Secondary foreground | #262b2bdarkslategray | #262b2bdarkslategray |
| Muted | #d6e6e6gainsboro | #192929darkslategray |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #f4f4f5whitesmoke | #f4f4f5whitesmoke |
| Accent foreground | #565661dimgray | #565661dimgray |
| Destructive | #b52212firebrick | #d12715firebrick |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 13.18:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 6.60:1 | AA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 13.18:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 6.60:1 | AA |
| Destructive | 5.23:1 | AA |
Paste this into your globals.css to use Carefree in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 249.665);
--foreground: oklch(0.127 0.015 241.862);
--muted: oklch(0.912 0.017 198.082);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.992 0.002 249.665);
--popover-foreground: oklch(0.127 0.015 241.862);
--card: oklch(0.984 0.003 249.68);
--card-foreground: oklch(0.111 0.013 241.192);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.969 0.001 249.66);
--primary-foreground: oklch(0.471 0.011 249.869);
--secondary: oklch(0.97 0.001 198.342);
--secondary-foreground: oklch(0.285 0.007 198.012);
--accent: oklch(0.968 0.002 287.139);
--accent-foreground: oklch(0.458 0.018 286.443);
--destructive: oklch(0.501 0.184 30.515);
--destructive-foreground: oklch(0.99 0.004 25.023);
--ring: oklch(0.969 0.001 249.66);
--chart-1: oklch(0.969 0.001 249.66);
--chart-2: oklch(0.97 0.001 198.342);
--chart-3: oklch(0.968 0.002 287.139);
--chart-4: oklch(0.993 0 198.357);
--chart-5: oklch(0.969 0.002 249.666);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.01 247.497);
--foreground: oklch(1 0 180);
--muted: oklch(0.267 0.022 197.271);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.143 0.01 247.497);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.012 249.878);
--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.969 0.001 249.66);
--primary-foreground: oklch(0.471 0.011 249.869);
--secondary: oklch(0.97 0.001 198.342);
--secondary-foreground: oklch(0.285 0.007 198.012);
--accent: oklch(0.968 0.002 287.139);
--accent-foreground: oklch(0.458 0.018 286.443);
--destructive: oklch(0.556 0.206 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0.001 249.66);
--chart-1: oklch(0.969 0.001 249.66);
--chart-2: oklch(0.97 0.001 198.342);
--chart-3: oklch(0.968 0.002 287.139);
--chart-4: oklch(0.993 0 198.357);
--chart-5: oklch(0.969 0.002 249.666);
}