Pressure for shadcn/ui

Pressure is a shadcn/ui theme built around a vivid red primary color (#95220e) with vivid orange accents (#95660e). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#95220e) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#040201black
#ffffffwhite
Card
#fdf8f6snow
#080302black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf8f6snow
#080302black
Popover foreground
#000000black
#ffffffwhite
Primary
#95220ebrown
#95220ebrown
Primary foreground
#fcdfdamistyrose
#fcdfdamistyrose
Secondary
#950e3dbrown
#950e3dbrown
Secondary foreground
#fcdae6mistyrose
#fcdae6mistyrose
Muted
#ebd6ddgainsboro
#29141bblack
Muted foreground
#453a3edarkslategray
#c5babesilver
Accent
#95660esaddlebrown
#95660esaddlebrown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d0101darkred
#fe1616red
Destructive foreground
#ffd1d1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#95220ebrown
#95220ebrown

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card19.89:1AAA
Primary button6.62:1AA
Secondary button6.75:1AA
Muted text7.87:1AAA
Accent5.01:1AA
Destructive6.25:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.50:1AAA
Primary button6.62:1AA
Secondary button6.75:1AA
Muted text9.19:1AAA
Accent5.01:1AA
Destructive3.93: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.003 29.479);
  --foreground: oklch(0.086 0.012 35.686);
  --muted: oklch(0.895 0.025 354.361);
  --muted-foreground: oklch(0.362 0.017 354.911);
  --popover: oklch(0.982 0.006 29.49);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.006 29.49);
  --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.442 0.154 32.233);
  --primary-foreground: oklch(0.925 0.033 29.63);
  --secondary: oklch(0.435 0.166 9.208);
  --secondary-foreground: oklch(0.919 0.04 354.807);
  --accent: oklch(0.547 0.111 75.55);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.438 0.179 29.176);
  --destructive-foreground: oklch(0.901 0.051 18.147);
  --ring: oklch(0.442 0.154 32.233);
  --chart-1: oklch(0.442 0.154 32.233);
  --chart-2: oklch(0.435 0.166 9.208);
  --chart-3: oklch(0.547 0.111 75.55);
  --chart-4: oklch(0.464 0.178 9.45);
  --chart-5: oklch(0.445 0.158 32.137);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.012 35.841);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.224 0.036 357.943);
  --muted-foreground: oklch(0.798 0.014 354.077);
  --popover: oklch(0.108 0.015 35.841);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.015 35.841);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.442 0.154 32.233);
  --primary-foreground: oklch(0.925 0.033 29.63);
  --secondary: oklch(0.435 0.166 9.208);
  --secondary-foreground: oklch(0.919 0.04 354.807);
  --accent: oklch(0.547 0.111 75.55);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.252 28.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.442 0.154 32.233);
  --chart-1: oklch(0.442 0.154 32.233);
  --chart-2: oklch(0.435 0.166 9.208);
  --chart-3: oklch(0.547 0.111 75.55);
  --chart-4: oklch(0.464 0.178 9.45);
  --chart-5: oklch(0.445 0.158 32.137);
}