Press for shadcn/ui

Press is a shadcn/ui theme built around a green primary color (#88e170) with green accents (#70e190). The light mode uses a neutral background (#f9fbf8). Dark mode keeps the green primary (#88e170) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f9fbf8mintcream
#020401black
Foreground
#050d03black
#f9fbf9mintcream
Card
#f9fbf8mintcream
#020401black
Card foreground
#050d03black
#f9fbf9mintcream
Popover
#f9fbf8mintcream
#020401black
Popover foreground
#050d03black
#f9fbf9mintcream
Primary
#88e170lightgreen
#88e170lightgreen
Primary foreground
#0a1905black
#0a1905black
Secondary
#c1e170darkkhaki
#c1e170darkkhaki
Secondary foreground
#141905black
#141905black
Muted
#eaebe5linen
#181a14black
Muted foreground
#4f553fdarkolivegreen
#bac0aasilver
Accent
#70e190mediumaquamarine
#70e190mediumaquamarine
Accent foreground
#05190bblack
#05190bblack
Destructive
#712e0asaddlebrown
#ed7331tomato
Destructive foreground
#f8ccb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88e170lightgreen
#88e170lightgreen

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button11.28:1AAA
Secondary button12.14:1AAA
Muted text6.49:1AA
Accent11.14:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button11.28:1AAA
Secondary button12.14:1AAA
Muted text9.33:1AAA
Accent11.14:1AAA
Destructive7.07:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 138.892);
  --foreground: oklch(0.144 0.03 137.008);
  --muted: oklch(0.938 0.009 119.476);
  --muted-foreground: oklch(0.437 0.036 120.741);
  --popover: oklch(0.987 0.005 138.892);
  --popover-foreground: oklch(0.144 0.03 137.008);
  --card: oklch(0.987 0.005 138.892);
  --card-foreground: oklch(0.144 0.03 137.008);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.828 0.171 139.204);
  --primary-foreground: oklch(0.194 0.044 138.572);
  --secondary: oklch(0.862 0.144 122.528);
  --secondary-foreground: oklch(0.203 0.037 122.469);
  --accent: oklch(0.822 0.154 150.935);
  --accent-foreground: oklch(0.193 0.039 151.259);
  --destructive: oklch(0.389 0.105 44.194);
  --destructive-foreground: oklch(0.877 0.06 49.851);
  --ring: oklch(0.828 0.171 139.204);
  --chart-1: oklch(0.828 0.171 139.204);
  --chart-2: oklch(0.862 0.144 122.528);
  --chart-3: oklch(0.822 0.154 150.935);
  --chart-4: oklch(0.873 0.133 122.169);
  --chart-5: oklch(0.833 0.178 139.235);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.015 137.385);
  --foreground: oklch(0.986 0.003 138.892);
  --muted: oklch(0.215 0.013 120.387);
  --muted-foreground: oklch(0.797 0.031 119.982);
  --popover: oklch(0.098 0.015 137.385);
  --popover-foreground: oklch(0.986 0.003 138.892);
  --card: oklch(0.098 0.015 137.385);
  --card-foreground: oklch(0.986 0.003 138.892);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.828 0.171 139.204);
  --primary-foreground: oklch(0.194 0.044 138.572);
  --secondary: oklch(0.862 0.144 122.528);
  --secondary-foreground: oklch(0.203 0.037 122.469);
  --accent: oklch(0.822 0.154 150.935);
  --accent-foreground: oklch(0.193 0.039 151.259);
  --destructive: oklch(0.689 0.17 45.628);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.828 0.171 139.204);
  --chart-1: oklch(0.828 0.171 139.204);
  --chart-2: oklch(0.862 0.144 122.528);
  --chart-3: oklch(0.822 0.154 150.935);
  --chart-4: oklch(0.873 0.133 122.169);
  --chart-5: oklch(0.833 0.178 139.235);
}