Carefree is a shadcn/ui theme built around a deep orange primary color (#452312) with deep blue accents (#123445). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep orange primary (#452312) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #000000black |
| Foreground | #0c0603black | #faf6f4whitesmoke |
| Card | #fdfcfcsnow | #000000black |
| Card foreground | #0c0603black | #faf6f4whitesmoke |
| Popover | #fdfcfcsnow | #000000black |
| Popover foreground | #0c0603black | #faf6f4whitesmoke |
| Primary | #452312maroon | #452312maroon |
| Primary foreground | #e7b9a2burlywood | #e7b9a2burlywood |
| Secondary | #123445darkslategray | #123445darkslategray |
| Secondary foreground | #a2d0e7lightblue | #a2d0e7lightblue |
| Muted | #e2e7e9lavender | #161b1dblack |
| Muted foreground | #546269dimgray | #96a4abdarkgray |
| Accent | #123445darkslategray | #123445darkslategray |
| Accent foreground | #a2d0e7lightblue | #a2d0e7lightblue |
| Destructive | #d04a06chocolate | #f85b0dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #452312maroon | #452312maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 5.04:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.52:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.47: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.001 48.732);
--foreground: oklch(0.131 0.017 57.431);
--muted: oklch(0.924 0.006 228.83);
--muted-foreground: oklch(0.486 0.02 229.373);
--popover: oklch(0.992 0.001 48.732);
--popover-foreground: oklch(0.131 0.017 57.431);
--card: oklch(0.992 0.001 48.732);
--card-foreground: oklch(0.131 0.017 57.431);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.298 0.059 46.134);
--primary-foreground: oklch(0.82 0.062 47.942);
--secondary: oklch(0.308 0.05 233.427);
--secondary-foreground: oklch(0.832 0.058 229.932);
--accent: oklch(0.308 0.05 233.427);
--accent-foreground: oklch(0.832 0.058 229.932);
--destructive: oklch(0.586 0.181 40.104);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.298 0.059 46.134);
--chart-1: oklch(0.298 0.059 46.134);
--chart-2: oklch(0.308 0.05 233.427);
--chart-3: oklch(0.308 0.05 233.427);
--chart-4: oklch(0.342 0.057 233.699);
--chart-5: oklch(0.299 0.062 45.907);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.977 0.005 48.686);
--muted: oklch(0.217 0.008 229.286);
--muted-foreground: oklch(0.71 0.019 229.117);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.977 0.005 48.686);
--card: oklch(0 0 0);
--card-foreground: oklch(0.977 0.005 48.686);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.298 0.059 46.134);
--primary-foreground: oklch(0.82 0.062 47.942);
--secondary: oklch(0.308 0.05 233.427);
--secondary-foreground: oklch(0.832 0.058 229.932);
--accent: oklch(0.308 0.05 233.427);
--accent-foreground: oklch(0.832 0.058 229.932);
--destructive: oklch(0.671 0.205 40.394);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.298 0.059 46.134);
--chart-1: oklch(0.298 0.059 46.134);
--chart-2: oklch(0.308 0.05 233.427);
--chart-3: oklch(0.308 0.05 233.427);
--chart-4: oklch(0.342 0.057 233.699);
--chart-5: oklch(0.299 0.062 45.907);
}