Pressurization for shadcn/ui

Pressurization is a shadcn/ui theme built around a light purple primary color (#e9c0f1) with light pink accents (#f1c0e1). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the light purple primary (#e9c0f1) on a purple-tinted background (#0e0510).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#0e0510black
Foreground
#040104black
#faf9fbghostwhite
Card
#faf3fbghostwhite
#110614black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcf7fdghostwhite
#0e0510black
Popover foreground
#040104black
#faf9fbghostwhite
Primary
#e9c0f1thistle
#e9c0f1thistle
Primary foreground
#5b1769indigo
#5b1769indigo
Secondary
#d1c0f1thistle
#d1c0f1thistle
Secondary foreground
#321769midnightblue
#321769midnightblue
Muted
#ebe7f4lavender
#100b18black
Muted foreground
#474649darkslategray
#b7b6b9silver
Accent
#f1c0e1pink
#f1c0e1pink
Accent foreground
#69174dpurple
#69174dpurple
Destructive
#612a0asaddlebrown
#d45c16chocolate
Destructive foreground
#f6c4a7navajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9c0f1thistle
#e9c0f1thistle

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.32:1AAA
Primary button7.51:1AAA
Secondary button8.57:1AAA
Muted text7.68:1AAA
Accent7.31:1AAA
Destructive7.25:1AAA
Dark mode
Text on background19.12:1AAA
Text on card19.35:1AAA
Primary button7.51:1AAA
Secondary button8.57:1AAA
Muted text9.59:1AAA
Accent7.31:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 320.545);
  --foreground: oklch(0.082 0.027 323.093);
  --muted: oklch(0.934 0.018 301.178);
  --muted-foreground: oklch(0.396 0.005 301.294);
  --popover: oklch(0.982 0.009 320.545);
  --popover-foreground: oklch(0.082 0.027 323.093);
  --card: oklch(0.973 0.013 320.552);
  --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.859 0.08 320.666);
  --primary-foreground: oklch(0.356 0.143 320.334);
  --secondary: oklch(0.838 0.07 300.145);
  --secondary-foreground: oklch(0.3 0.132 291.585);
  --accent: oklch(0.861 0.07 338.825);
  --accent-foreground: oklch(0.363 0.129 344.589);
  --destructive: oklch(0.357 0.09 46.349);
  --destructive-foreground: oklch(0.857 0.069 51.555);
  --ring: oklch(0.859 0.08 320.666);
  --chart-1: oklch(0.859 0.08 320.666);
  --chart-2: oklch(0.838 0.07 300.145);
  --chart-3: oklch(0.861 0.07 338.825);
  --chart-4: oklch(0.871 0.055 300.469);
  --chart-5: oklch(0.858 0.083 320.672);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.03 321.395);
  --foreground: oklch(0.984 0.002 320.535);
  --muted: oklch(0.164 0.028 298.621);
  --muted-foreground: oklch(0.778 0.004 301.407);
  --popover: oklch(0.136 0.03 321.395);
  --popover-foreground: oklch(0.984 0.002 320.535);
  --card: oklch(0.148 0.035 321.052);
  --card-foreground: oklch(0.992 0.001 320.533);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.859 0.08 320.666);
  --primary-foreground: oklch(0.356 0.143 320.334);
  --secondary: oklch(0.838 0.07 300.145);
  --secondary-foreground: oklch(0.3 0.132 291.585);
  --accent: oklch(0.861 0.07 338.825);
  --accent-foreground: oklch(0.363 0.129 344.589);
  --destructive: oklch(0.618 0.169 44.745);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.859 0.08 320.666);
  --chart-1: oklch(0.859 0.08 320.666);
  --chart-2: oklch(0.838 0.07 300.145);
  --chart-3: oklch(0.861 0.07 338.825);
  --chart-4: oklch(0.871 0.055 300.469);
  --chart-5: oklch(0.858 0.083 320.672);
}