Chill for shadcn/ui

Chill is a shadcn/ui theme built around a light violet primary color (#bda6dd) with light purple accents (#d9a6dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#bda6dd) on a violet-tinted background (#09060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#09060eblack
Foreground
#020104black
#f7f5f9whitesmoke
Card
#ffffffwhite
#09060eblack
Card foreground
#020104black
#f7f5f9whitesmoke
Popover
#ffffffwhite
#09060eblack
Popover foreground
#020104black
#f7f5f9whitesmoke
Primary
#bda6ddplum
#bda6ddplum
Primary foreground
#26163bmidnightblue
#26163bmidnightblue
Secondary
#a6abddlightsteelblue
#a6abddlightsteelblue
Secondary foreground
#16193bmidnightblue
#16193bmidnightblue
Muted
#efeff6whitesmoke
#090a10black
Muted foreground
#515367dimgray
#989aaedarkgray
Accent
#d9a6ddplum
#d9a6ddplum
Accent foreground
#38163bdarkslategray
#38163bdarkslategray
Destructive
#a1270cfirebrick
#df3711orangered
Destructive foreground
#fde7e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bda6ddplum
#bda6ddplum

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.81:1AAA
Primary button7.68:1AAA
Secondary button7.67:1AAA
Muted text6.59:1AA
Accent7.77:1AAA
Destructive6.27:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button7.68:1AAA
Secondary button7.67:1AAA
Muted text7.12:1AAA
Accent7.77:1AAA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.016 306.081);
  --muted: oklch(0.954 0.009 282.059);
  --muted-foreground: oklch(0.447 0.033 280.889);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.081 0.016 306.081);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.081 0.016 306.081);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.765 0.081 303.564);
  --primary-foreground: oklch(0.243 0.069 300.621);
  --secondary: oklch(0.755 0.073 280.453);
  --secondary-foreground: oklch(0.234 0.064 276.353);
  --accent: oklch(0.79 0.094 323.652);
  --accent-foreground: oklch(0.269 0.078 324.204);
  --destructive: oklch(0.469 0.162 33.399);
  --destructive-foreground: oklch(0.945 0.024 32.685);
  --ring: oklch(0.765 0.081 303.564);
  --chart-1: oklch(0.765 0.081 303.564);
  --chart-2: oklch(0.755 0.073 280.453);
  --chart-3: oklch(0.79 0.094 323.652);
  --chart-4: oklch(0.786 0.063 280.774);
  --chart-5: oklch(0.762 0.087 303.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.021 304.635);
  --foreground: oklch(0.973 0.006 304.963);
  --muted: oklch(0.146 0.014 280.306);
  --muted-foreground: oklch(0.691 0.03 281.473);
  --popover: oklch(0.133 0.021 304.635);
  --popover-foreground: oklch(0.973 0.006 304.963);
  --card: oklch(0.133 0.021 304.635);
  --card-foreground: oklch(0.973 0.006 304.963);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.765 0.081 303.564);
  --primary-foreground: oklch(0.243 0.069 300.621);
  --secondary: oklch(0.755 0.073 280.453);
  --secondary-foreground: oklch(0.234 0.064 276.353);
  --accent: oklch(0.79 0.094 323.652);
  --accent-foreground: oklch(0.269 0.078 324.204);
  --destructive: oklch(0.593 0.209 33.173);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.081 303.564);
  --chart-1: oklch(0.765 0.081 303.564);
  --chart-2: oklch(0.755 0.073 280.453);
  --chart-3: oklch(0.79 0.094 323.652);
  --chart-4: oklch(0.786 0.063 280.774);
  --chart-5: oklch(0.762 0.087 303.455);
}