Pressure for shadcn/ui

Pressure is a shadcn/ui theme built around a light purple primary color (#efdcee) with light green accents (#dcefdd). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#efdcee) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#000000black
#fdfcfdwhite
Card
#fefbfdsnow
#000000black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fefbfdsnow
#000000black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#efdceelavender
#efdceelavender
Primary foreground
#6a2f67rebeccapurple
#6a2f67rebeccapurple
Secondary
#dcefddgainsboro
#dcefddgainsboro
Secondary foreground
#102311black
#102311black
Muted
#dee8degainsboro
#172117black
Muted foreground
#5c605ddimgray
#9fa39fdarkgray
Accent
#dcefddgainsboro
#dcefddgainsboro
Accent foreground
#102311black
#102311black
Destructive
#df4701orangered
#e44901orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#efdceelavender
#efdceelavender

Contrast

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

Light mode
Text on background20.46:1AAA
Text on card20.46:1AAA
Primary button7.27:1AAA
Secondary button13.74:1AAA
Muted text5.08:1AA
Accent13.74:1AAA
Destructive4.14:1AA Large
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.27:1AAA
Secondary button13.74:1AAA
Muted text6.46:1AA
Accent13.74:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 327.072);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.921 0.018 146.858);
  --muted-foreground: oklch(0.485 0.007 146.897);
  --popover: oklch(0.991 0.004 327.072);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.004 327.072);
  --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.915 0.033 327.367);
  --primary-foreground: oklch(0.408 0.115 329.357);
  --secondary: oklch(0.934 0.033 146.706);
  --secondary-foreground: oklch(0.235 0.044 145.07);
  --accent: oklch(0.934 0.033 146.706);
  --accent-foreground: oklch(0.235 0.044 145.07);
  --destructive: oklch(0.609 0.198 38.221);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.915 0.033 327.367);
  --chart-1: oklch(0.915 0.033 327.367);
  --chart-2: oklch(0.934 0.033 146.706);
  --chart-3: oklch(0.934 0.033 146.706);
  --chart-4: oklch(0.953 0.023 146.813);
  --chart-5: oklch(0.914 0.036 327.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 327.052);
  --muted: oklch(0.235 0.024 146.013);
  --muted-foreground: oklch(0.71 0.007 146.951);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 327.052);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 327.052);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.915 0.033 327.367);
  --primary-foreground: oklch(0.408 0.115 329.357);
  --secondary: oklch(0.934 0.033 146.706);
  --secondary-foreground: oklch(0.235 0.044 145.07);
  --accent: oklch(0.934 0.033 146.706);
  --accent-foreground: oklch(0.235 0.044 145.07);
  --destructive: oklch(0.62 0.202 38.17);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.915 0.033 327.367);
  --chart-1: oklch(0.915 0.033 327.367);
  --chart-2: oklch(0.934 0.033 146.706);
  --chart-3: oklch(0.934 0.033 146.706);
  --chart-4: oklch(0.953 0.023 146.813);
  --chart-5: oklch(0.914 0.036 327.393);
}