Chili for shadcn/ui

Chili is a shadcn/ui theme built around a light red primary color (#f4e4e1) with light cyan accents (#e1f2f4). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light red primary (#f4e4e1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#090302black
#fcf9f8snow
Card
#fefcfbsnow
#000000black
Card foreground
#090302black
#fcf9f8snow
Popover
#fefcfbsnow
#000000black
Popover foreground
#090302black
#fcf9f8snow
Primary
#f4e4e1mistyrose
#f4e4e1mistyrose
Primary foreground
#78352bsaddlebrown
#78352bsaddlebrown
Secondary
#e1f2f4lavender
#e1f2f4lavender
Secondary foreground
#10292ddarkslategray
#10292ddarkslategray
Muted
#d3e1e3gainsboro
#1c292cdarkslategray
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#e1f2f4lavender
#e1f2f4lavender
Accent foreground
#10292ddarkslategray
#10292ddarkslategray
Destructive
#6a230bmaroon
#ea6539tomato
Destructive foreground
#f7c2b1lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4e4e1mistyrose
#f4e4e1mistyrose

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button7.25:1AAA
Secondary button13.19:1AAA
Muted text5.22:1AA
Accent13.19:1AAA
Destructive7.15:1AAA
Dark mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button7.25:1AAA
Secondary button13.19:1AAA
Muted text6.12:1AA
Accent13.19:1AAA
Destructive6.42:1AA

CSS variables

Paste this into your globals.css to use Chili in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 27.945);
  --foreground: oklch(0.106 0.019 35.66);
  --muted: oklch(0.9 0.015 207.871);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.991 0.002 27.945);
  --popover-foreground: oklch(0.106 0.019 35.66);
  --card: oklch(0.991 0.002 27.945);
  --card-foreground: oklch(0.106 0.019 35.66);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.019 28.044);
  --primary-foreground: oklch(0.418 0.096 30.507);
  --secondary: oklch(0.948 0.018 207.864);
  --secondary-foreground: oklch(0.264 0.032 208.566);
  --accent: oklch(0.948 0.018 207.864);
  --accent-foreground: oklch(0.264 0.032 208.566);
  --destructive: oklch(0.362 0.107 37.578);
  --destructive-foreground: oklch(0.857 0.065 39.237);
  --ring: oklch(0.93 0.019 28.044);
  --chart-1: oklch(0.93 0.019 28.044);
  --chart-2: oklch(0.948 0.018 207.864);
  --chart-3: oklch(0.948 0.018 207.864);
  --chart-4: oklch(0.968 0.011 207.887);
  --chart-5: oklch(0.93 0.02 28.053);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 27.949);
  --muted: oklch(0.271 0.019 207.91);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 27.949);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 27.949);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.93 0.019 28.044);
  --primary-foreground: oklch(0.418 0.096 30.507);
  --secondary: oklch(0.948 0.018 207.864);
  --secondary-foreground: oklch(0.264 0.032 208.566);
  --accent: oklch(0.948 0.018 207.864);
  --accent-foreground: oklch(0.264 0.032 208.566);
  --destructive: oklch(0.666 0.176 38.389);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.93 0.019 28.044);
  --chart-1: oklch(0.93 0.019 28.044);
  --chart-2: oklch(0.948 0.018 207.864);
  --chart-3: oklch(0.948 0.018 207.864);
  --chart-4: oklch(0.968 0.011 207.887);
  --chart-5: oklch(0.93 0.02 28.053);
}