Chilly is a shadcn/ui theme built around a muted deep violet primary color (#0c0a0f) with muted light violet accents (#c5b7d7). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#0c0a0f) on a violet-tinted background (#07040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #07040cblack |
| Foreground | #07020eblack | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #090510black |
| Card foreground | #050109black | #ffffffwhite |
| Popover | #faf8fcghostwhite | #090510black |
| Popover foreground | #050109black | #ffffffwhite |
| Primary | #0c0a0fblack | #0c0a0fblack |
| Primary foreground | #a395b7darkgray | #a395b7darkgray |
| Secondary | #dad4e2gainsboro | #26212bdarkslategray |
| Secondary foreground | #413550darkslategray | #beb7c8silver |
| Muted | #ddd8e4gainsboro | #201b27black |
| Muted foreground | #444149darkslategray | #bab6besilver |
| Accent | #c5b7d7thistle | #362b45darkslategray |
| Accent foreground | #2c213bdarkslategray | #d0c7dcthistle |
| Destructive | #650c01maroon | #fe1f01red |
| Destructive foreground | #fea59alightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c0a0fblack | #0c0a0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.41:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Chilly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 305.698);
--foreground: oklch(0.107 0.038 307.113);
--muted: oklch(0.889 0.017 305.484);
--muted-foreground: oklch(0.381 0.015 305.23);
--popover: oklch(0.981 0.006 305.656);
--popover-foreground: oklch(0.093 0.033 307.81);
--card: oklch(0.981 0.006 305.656);
--card-foreground: oklch(0.093 0.033 307.81);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.151 0.011 304.791);
--primary-foreground: oklch(0.693 0.052 304.749);
--secondary: oklch(0.88 0.02 305.43);
--secondary-foreground: oklch(0.353 0.047 303.919);
--accent: oklch(0.8 0.048 304.946);
--accent-foreground: oklch(0.273 0.05 303.181);
--destructive: oklch(0.327 0.123 31.947);
--destructive-foreground: oklch(0.808 0.108 27.879);
--ring: oklch(0.151 0.011 304.791);
--chart-1: oklch(0.151 0.011 304.791);
--chart-2: oklch(0.88 0.02 305.43);
--chart-3: oklch(0.8 0.048 304.946);
--chart-4: oklch(0.906 0.016 305.505);
--chart-5: oklch(0.15 0.012 304.622);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.023 306.713);
--foreground: oklch(0.992 0.001 305.73);
--muted: oklch(0.234 0.024 304.383);
--muted-foreground: oklch(0.782 0.012 305.532);
--popover: oklch(0.129 0.027 305.333);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.129 0.027 305.333);
--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.151 0.011 304.791);
--primary-foreground: oklch(0.693 0.052 304.749);
--secondary: oklch(0.258 0.019 304.74);
--secondary-foreground: oklch(0.79 0.024 305.329);
--accent: oklch(0.314 0.047 303.682);
--accent-foreground: oklch(0.842 0.031 305.256);
--destructive: oklch(0.633 0.249 30.542);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.151 0.011 304.791);
--chart-1: oklch(0.151 0.011 304.791);
--chart-2: oklch(0.258 0.019 304.74);
--chart-3: oklch(0.314 0.047 303.682);
--chart-4: oklch(0.287 0.023 304.69);
--chart-5: oklch(0.15 0.012 304.622);
}