Chasuble for shadcn/ui

Chasuble is a shadcn/ui theme built around a vivid deep purple primary color (#5d044b) with vivid deep pink accents (#5d041f). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the vivid deep purple primary (#5d044b) on a purple-tinted background (#10050d).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#10050dblack
Foreground
#12030fblack
#faf4f9whitesmoke
Card
#fcf2falavenderblush
#140611black
Card foreground
#0d020bblack
#fcf8fbsnow
Popover
#fdf7fcsnow
#10050dblack
Popover foreground
#12030fblack
#faf4f9whitesmoke
Primary
#5d044bindigo
#5d044bindigo
Primary foreground
#fa99e7violet
#fa99e7violet
Secondary
#42045dindigo
#42045dindigo
Secondary foreground
#dd99faplum
#dd99faplum
Muted
#decbe7thistle
#2c1834darkslategray
Muted foreground
#4d4a4fdarkslategray
#b3b0b5darkgray
Accent
#5d041fmaroon
#5d041fmaroon
Accent foreground
#fa99b6lightpink
#fa99b6lightpink
Destructive
#c43612firebrick
#eb4f28chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5d044bindigo
#5d044bindigo

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.70:1AAA
Primary button6.81:1AA
Secondary button7.11:1AAA
Muted text5.72:1AA
Accent6.86:1AA
Destructive5.41:1AA
Dark mode
Text on background18.48:1AAA
Text on card18.78:1AAA
Primary button6.81:1AA
Secondary button7.11:1AAA
Muted text7.60:1AAA
Accent6.86:1AA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.01 332.157);
  --foreground: oklch(0.135 0.042 334.799);
  --muted: oklch(0.866 0.044 315.841);
  --muted-foreground: oklch(0.415 0.009 315.947);
  --popover: oklch(0.981 0.01 332.157);
  --popover-foreground: oklch(0.135 0.042 334.799);
  --card: oklch(0.972 0.015 332.235);
  --card-foreground: oklch(0.12 0.037 333.888);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.326 0.137 338.853);
  --primary-foreground: oklch(0.806 0.15 334.567);
  --secondary: oklch(0.292 0.14 311.767);
  --secondary-foreground: oklch(0.783 0.151 315.269);
  --accent: oklch(0.307 0.118 12.397);
  --accent-foreground: oklch(0.79 0.121 0.88);
  --destructive: oklch(0.545 0.184 34.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.326 0.137 338.853);
  --chart-1: oklch(0.326 0.137 338.853);
  --chart-2: oklch(0.292 0.14 311.767);
  --chart-3: oklch(0.307 0.118 12.397);
  --chart-4: oklch(0.322 0.156 311.489);
  --chart-5: oklch(0.328 0.14 339.019);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.029 334.042);
  --foreground: oklch(0.974 0.009 332.138);
  --muted: oklch(0.25 0.058 315.074);
  --muted-foreground: oklch(0.762 0.007 315.987);
  --popover: oklch(0.138 0.029 334.042);
  --popover-foreground: oklch(0.974 0.009 332.138);
  --card: oklch(0.151 0.033 334.622);
  --card-foreground: oklch(0.983 0.006 332.093);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.326 0.137 338.853);
  --primary-foreground: oklch(0.806 0.15 334.567);
  --secondary: oklch(0.292 0.14 311.767);
  --secondary-foreground: oklch(0.783 0.151 315.269);
  --accent: oklch(0.307 0.118 12.397);
  --accent-foreground: oklch(0.79 0.121 0.88);
  --destructive: oklch(0.639 0.199 34.809);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.326 0.137 338.853);
  --chart-1: oklch(0.326 0.137 338.853);
  --chart-2: oklch(0.292 0.14 311.767);
  --chart-3: oklch(0.307 0.118 12.397);
  --chart-4: oklch(0.322 0.156 311.489);
  --chart-5: oklch(0.328 0.14 339.019);
}