Curly is a shadcn/ui theme built around a muted light violet primary color (#f4f3f7) with muted light green accents (#f3f7f4). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#f4f3f7) on a violet-tinted background (#07050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #07050bblack |
| Foreground | #040208black | #fcfbfdsnow |
| Card | #f9f8fcghostwhite | #09060eblack |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfbfewhite | #07050bblack |
| Popover foreground | #040208black | #fcfbfdsnow |
| Primary | #f4f3f7whitesmoke | #f4f3f7whitesmoke |
| Primary foreground | #564b6cdimgray | #564b6cdimgray |
| Secondary | #f7f4f3whitesmoke | #f7f4f3whitesmoke |
| Secondary foreground | #6c564bdimgray | #6c564bdimgray |
| Muted | #efe9e6linen | #191310black |
| Muted foreground | #5b5552dimgray | #ada7a4darkgray |
| Accent | #f3f7f4whitesmoke | #f3f7f4whitesmoke |
| Accent foreground | #213026darkslategray | #213026darkslategray |
| Destructive | #b32309firebrick | #df2b0corangered |
| Destructive foreground | #fef3f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f3f7whitesmoke | #f4f3f7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 6.09:1 | AA |
| Accent | 12.78:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 7.75:1 | AAA |
| Accent | 12.78:1 | AAA |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use Curly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 300.717);
--foreground: oklch(0.098 0.024 301.203);
--muted: oklch(0.938 0.008 46.756);
--muted-foreground: oklch(0.455 0.009 46.642);
--popover: oklch(0.99 0.003 300.717);
--popover-foreground: oklch(0.098 0.024 301.203);
--card: oklch(0.98 0.006 300.665);
--card-foreground: oklch(0.078 0.019 301.203);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.966 0.005 300.682);
--primary-foreground: oklch(0.438 0.055 298.648);
--secondary: oklch(0.969 0.003 46.82);
--secondary-foreground: oklch(0.472 0.034 46.168);
--accent: oklch(0.972 0.005 156.456);
--accent-foreground: oklch(0.293 0.027 154.596);
--destructive: oklch(0.498 0.183 31.889);
--destructive-foreground: oklch(0.971 0.013 29.517);
--ring: oklch(0.966 0.005 300.682);
--chart-1: oklch(0.966 0.005 300.682);
--chart-2: oklch(0.969 0.003 46.82);
--chart-3: oklch(0.972 0.005 156.456);
--chart-4: oklch(0.992 0.001 46.848);
--chart-5: oklch(0.965 0.006 300.668);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.017 300.988);
--foreground: oklch(0.991 0.003 300.724);
--muted: oklch(0.192 0.013 46.222);
--muted-foreground: oklch(0.732 0.008 46.735);
--popover: oklch(0.12 0.017 300.988);
--popover-foreground: oklch(0.991 0.003 300.724);
--card: oklch(0.132 0.02 300.039);
--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.966 0.005 300.682);
--primary-foreground: oklch(0.438 0.055 298.648);
--secondary: oklch(0.969 0.003 46.82);
--secondary-foreground: oklch(0.472 0.034 46.168);
--accent: oklch(0.972 0.005 156.456);
--accent-foreground: oklch(0.293 0.027 154.596);
--destructive: oklch(0.584 0.217 31.766);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.005 300.682);
--chart-1: oklch(0.966 0.005 300.682);
--chart-2: oklch(0.969 0.003 46.82);
--chart-3: oklch(0.972 0.005 156.456);
--chart-4: oklch(0.992 0.001 46.848);
--chart-5: oklch(0.965 0.006 300.668);
}