Chilly for shadcn/ui

Chilly is a shadcn/ui theme built around a vivid purple primary color (#ed73ca) with vivid red accents (#ed738d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#ed73ca) on a neutral background (#080206).

Color palette

TokenLightDark
Background
#ffffffwhite
#080206black
Foreground
#040103black
#f9f6f8whitesmoke
Card
#fcfcfcsnow
#0c030ablack
Card foreground
#000000black
#fbf9fasnow
Popover
#fcfcfcsnow
#0c030ablack
Popover foreground
#000000black
#fbf9fasnow
Primary
#ed73caorchid
#ed73caorchid
Primary foreground
#29051fblack
#29051fblack
Secondary
#d273edorchid
#d273edorchid
Secondary foreground
#210529black
#210529black
Muted
#f1eef2whitesmoke
#100d11black
Muted foreground
#655a68dimgray
#a297a5darkgray
Accent
#ed738dlightcoral
#ed738dlightcoral
Accent foreground
#29050dblack
#29050dblack
Destructive
#bd1e0ffirebrick
#d42111firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ed73caorchid
#ed73caorchid

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button6.96:1AA
Secondary button6.64:1AA
Muted text5.66:1AA
Accent6.63:1AA
Destructive6.27:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.37:1AAA
Primary button6.96:1AA
Secondary button6.64:1AA
Muted text6.88:1AA
Accent6.63:1AA
Destructive5.19:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.017 335.752);
  --muted: oklch(0.952 0.006 318.888);
  --muted-foreground: oklch(0.483 0.025 318.872);
  --popover: oklch(0.992 0 161.565);
  --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.725 0.18 339.379);
  --primary-foreground: oklch(0.198 0.069 341.093);
  --secondary: oklch(0.708 0.194 318.579);
  --secondary-foreground: oklch(0.191 0.074 318.229);
  --accent: oklch(0.705 0.152 8.147);
  --accent-foreground: oklch(0.19 0.06 11.183);
  --destructive: oklch(0.513 0.194 30.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.725 0.18 339.379);
  --chart-1: oklch(0.725 0.18 339.379);
  --chart-2: oklch(0.708 0.194 318.579);
  --chart-3: oklch(0.705 0.152 8.147);
  --chart-4: oklch(0.734 0.176 318.669);
  --chart-5: oklch(0.725 0.187 339.531);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.023 335.808);
  --foreground: oklch(0.976 0.004 335.268);
  --muted: oklch(0.167 0.009 318.871);
  --muted-foreground: oklch(0.691 0.023 318.879);
  --popover: oklch(0.123 0.027 336.169);
  --popover-foreground: oklch(0.984 0.003 335.242);
  --card: oklch(0.123 0.027 336.169);
  --card-foreground: oklch(0.984 0.003 335.242);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.725 0.18 339.379);
  --primary-foreground: oklch(0.198 0.069 341.093);
  --secondary: oklch(0.708 0.194 318.579);
  --secondary-foreground: oklch(0.191 0.074 318.229);
  --accent: oklch(0.705 0.152 8.147);
  --accent-foreground: oklch(0.19 0.06 11.183);
  --destructive: oklch(0.559 0.213 30.089);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.725 0.18 339.379);
  --chart-1: oklch(0.725 0.18 339.379);
  --chart-2: oklch(0.708 0.194 318.579);
  --chart-3: oklch(0.705 0.152 8.147);
  --chart-4: oklch(0.734 0.176 318.669);
  --chart-5: oklch(0.725 0.187 339.531);
}