Pressure for shadcn/ui

Pressure is a shadcn/ui theme built around a light green primary color (#c2e6ad) with light violet accents (#d1ade6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#c2e6ad) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#081202black
#fcfdfbsnow
Card
#fcfcfcsnow
#050703black
Card foreground
#060d02black
#ffffffwhite
Popover
#ffffffwhite
#020401black
Popover foreground
#081202black
#fcfdfbsnow
Primary
#c2e6adsilver
#c2e6adsilver
Primary foreground
#2a4a17darkgreen
#2a4a17darkgreen
Secondary
#d1ade6plum
#d1ade6plum
Secondary foreground
#37174amidnightblue
#37174amidnightblue
Muted
#e4dde9gainsboro
#1e1622black
Muted foreground
#61536adimgray
#a495acdarkgray
Accent
#d1ade6plum
#d1ade6plum
Accent foreground
#37174amidnightblue
#37174amidnightblue
Destructive
#a81805firebrick
#f8422aorangered
Destructive foreground
#fee5e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2e6adsilver
#c2e6adsilver

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.27:1AAA
Primary button7.26:1AAA
Secondary button7.82:1AAA
Muted text5.37:1AA
Accent7.82:1AAA
Destructive6.24:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.21:1AAA
Primary button7.26:1AAA
Secondary button7.82:1AAA
Muted text6.25:1AA
Accent7.82:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.167 0.037 132.898);
  --muted: oklch(0.907 0.017 313.491);
  --muted-foreground: oklch(0.465 0.04 313.076);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.167 0.037 132.898);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.148 0.032 131.944);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.884 0.085 134.254);
  --primary-foreground: oklch(0.372 0.087 135.84);
  --secondary: oklch(0.798 0.088 312.928);
  --secondary-foreground: oklch(0.279 0.095 310.916);
  --accent: oklch(0.798 0.088 312.928);
  --accent-foreground: oklch(0.279 0.095 310.916);
  --destructive: oklch(0.47 0.179 30.905);
  --destructive-foreground: oklch(0.941 0.028 26.668);
  --ring: oklch(0.884 0.085 134.254);
  --chart-1: oklch(0.884 0.085 134.254);
  --chart-2: oklch(0.798 0.088 312.928);
  --chart-3: oklch(0.798 0.088 312.928);
  --chart-4: oklch(0.827 0.075 313.051);
  --chart-5: oklch(0.887 0.089 134.292);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.013 132.392);
  --foreground: oklch(0.994 0.003 133.625);
  --muted: oklch(0.216 0.024 312.919);
  --muted-foreground: oklch(0.691 0.036 313.282);
  --popover: oklch(0.098 0.013 132.392);
  --popover-foreground: oklch(0.994 0.003 133.625);
  --card: oklch(0.123 0.016 132.392);
  --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.884 0.085 134.254);
  --primary-foreground: oklch(0.372 0.087 135.84);
  --secondary: oklch(0.798 0.088 312.928);
  --secondary-foreground: oklch(0.279 0.095 310.916);
  --accent: oklch(0.798 0.088 312.928);
  --accent-foreground: oklch(0.279 0.095 310.916);
  --destructive: oklch(0.648 0.222 30.992);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.884 0.085 134.254);
  --chart-1: oklch(0.884 0.085 134.254);
  --chart-2: oklch(0.798 0.088 312.928);
  --chart-3: oklch(0.798 0.088 312.928);
  --chart-4: oklch(0.827 0.075 313.051);
  --chart-5: oklch(0.887 0.089 134.292);
}