Curly is a shadcn/ui theme built around a vivid violet primary color (#320d91) with muted light violet accents (#cac8d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#320d91) on a violet-tinted background (#06040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06040bblack |
| Foreground | #000000black | #f9f9fbghostwhite |
| Card | #fcfcfcsnow | #08050fblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #ffffffwhite | #06040bblack |
| Popover foreground | #000000black | #f9f9fbghostwhite |
| Primary | #320d91indigo | #320d91indigo |
| Primary foreground | #e0d5fblavender | #e0d5fblavender |
| Secondary | #cac8d0lightgrey | #131118black |
| Secondary foreground | #312f37darkslategray | #a79ebddarkgray |
| Muted | #e2ddeelavender | #161122black |
| Muted foreground | #5f5d65dimgray | #9c9aa2darkgray |
| Accent | #cac8d0lightgrey | #131118black |
| Accent foreground | #312f37darkslategray | #a79ebddarkgray |
| Destructive | #b23c06firebrick | #f8570dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #320d91indigo | #320d91indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.39:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 4.88:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 5.92:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 9.39:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.39:1 | AAA |
| Destructive | 3.31:1 | AA Large |
Paste this into your globals.css to use Curly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.023 298.864);
--muted-foreground: oklch(0.483 0.013 298.858);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.335 0.188 282.205);
--primary-foreground: oklch(0.893 0.054 298.268);
--secondary: oklch(0.837 0.011 299.069);
--secondary-foreground: oklch(0.311 0.015 298.485);
--accent: oklch(0.837 0.011 299.069);
--accent-foreground: oklch(0.311 0.015 298.485);
--destructive: oklch(0.521 0.163 39.369);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.335 0.188 282.205);
--chart-1: oklch(0.335 0.188 282.205);
--chart-2: oklch(0.837 0.011 299.069);
--chart-3: oklch(0.837 0.011 299.069);
--chart-4: oklch(0.862 0.01 299.111);
--chart-5: oklch(0.335 0.192 281.333);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.022 299.225);
--foreground: oklch(0.982 0.004 299.239);
--muted: oklch(0.193 0.034 296.113);
--muted-foreground: oklch(0.691 0.011 299.02);
--popover: oklch(0.116 0.022 299.225);
--popover-foreground: oklch(0.982 0.004 299.239);
--card: oklch(0.128 0.025 298.18);
--card-foreground: oklch(0.991 0.002 299.272);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.335 0.188 282.205);
--primary-foreground: oklch(0.893 0.054 298.268);
--secondary: oklch(0.182 0.016 297.77);
--secondary-foreground: oklch(0.717 0.046 298.206);
--accent: oklch(0.182 0.016 297.77);
--accent-foreground: oklch(0.717 0.046 298.206);
--destructive: oklch(0.666 0.208 39.305);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.335 0.188 282.205);
--chart-1: oklch(0.335 0.188 282.205);
--chart-2: oklch(0.182 0.016 297.77);
--chart-3: oklch(0.182 0.016 297.77);
--chart-4: oklch(0.212 0.021 297.556);
--chart-5: oklch(0.335 0.192 281.333);
}