Chili is a shadcn/ui theme built around a vivid blue primary color (#255ef8) with vivid yellow accents (#f8c025). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the vivid blue primary (#255ef8) on a blue-tinted background (#04060b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #04060bblack |
| Foreground | #03050cblack | #fcfcfdwhite |
| Card | #f8f9fcghostwhite | #04060bblack |
| Card foreground | #03050cblack | #fcfcfdwhite |
| Popover | #f8f9fcghostwhite | #04060bblack |
| Popover foreground | #03050cblack | #fcfcfdwhite |
| Primary | #255ef8royalblue | #255ef8royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #f8c025goldenrod | #f8c025goldenrod |
| Secondary foreground | #4f3b02saddlebrown | #4f3b02saddlebrown |
| Muted | #e3ddcfgainsboro | #302b1cdarkslategray |
| Muted foreground | #6f6852dimgray | #ada590darkgray |
| Accent | #f8c025goldenrod | #f8c025goldenrod |
| Accent foreground | #4f3b02saddlebrown | #4f3b02saddlebrown |
| Destructive | #da2d01orangered | #f43201orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #255ef8royalblue | #255ef8royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 5.21:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 4.11:1 | AA Large |
| Accent | 6.41:1 | AA |
| Destructive | 4.82:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 5.21:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 5.75:1 | AA |
| Accent | 6.41:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Chili in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 270.08);
--foreground: oklch(0.119 0.019 261.973);
--muted: oklch(0.899 0.02 90.279);
--muted-foreground: oklch(0.517 0.033 90.429);
--popover: oklch(0.981 0.005 270.08);
--popover-foreground: oklch(0.119 0.019 261.973);
--card: oklch(0.981 0.005 270.08);
--card-foreground: oklch(0.119 0.019 261.973);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.548 0.238 264.323);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.836 0.163 85.988);
--secondary-foreground: oklch(0.364 0.073 85.942);
--accent: oklch(0.836 0.163 85.988);
--accent-foreground: oklch(0.364 0.073 85.942);
--destructive: oklch(0.576 0.213 32.896);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.548 0.238 264.323);
--chart-1: oklch(0.548 0.238 264.323);
--chart-2: oklch(0.836 0.163 85.988);
--chart-3: oklch(0.836 0.163 85.988);
--chart-4: oklch(0.845 0.159 87.104);
--chart-5: oklch(0.547 0.244 264.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.014 264.435);
--foreground: oklch(0.992 0.001 270.112);
--muted: oklch(0.29 0.026 90.392);
--muted-foreground: oklch(0.722 0.031 90.379);
--popover: oklch(0.122 0.014 264.435);
--popover-foreground: oklch(0.992 0.001 270.112);
--card: oklch(0.122 0.014 264.435);
--card-foreground: oklch(0.992 0.001 270.112);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.548 0.238 264.323);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.836 0.163 85.988);
--secondary-foreground: oklch(0.364 0.073 85.942);
--accent: oklch(0.836 0.163 85.988);
--accent-foreground: oklch(0.364 0.073 85.942);
--destructive: oklch(0.625 0.232 32.737);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.548 0.238 264.323);
--chart-1: oklch(0.548 0.238 264.323);
--chart-2: oklch(0.836 0.163 85.988);
--chart-3: oklch(0.836 0.163 85.988);
--chart-4: oklch(0.845 0.159 87.104);
--chart-5: oklch(0.547 0.244 264.205);
}