Press for shadcn/ui

Press is a shadcn/ui theme built around a vivid light yellow primary color (#fad88f) with vivid light green accents (#e6fa8f). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid light yellow primary (#fad88f) on a yellow-tinted background (#0a0905).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0a0905black
Foreground
#040301black
#ffffffwhite
Card
#fbf9f3floralwhite
#0e0c06black
Card foreground
#000000black
#ffffffwhite
Popover
#fbf9f3floralwhite
#0e0c06black
Popover foreground
#000000black
#ffffffwhite
Primary
#fad88fkhaki
#fad88fkhaki
Primary foreground
#533a04saddlebrown
#533a04saddlebrown
Secondary
#faa38flightsalmon
#faa38flightsalmon
Secondary foreground
#531204maroon
#531204maroon
Muted
#ebdad6gainsboro
#291814black
Muted foreground
#59514fdimgray
#b0a8a6darkgray
Accent
#e6fa8fkhaki
#e6fa8fkhaki
Accent foreground
#445304darkolivegreen
#445304darkolivegreen
Destructive
#bd1e0ffirebrick
#ee3f2ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fad88fkhaki
#fad88fkhaki

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.95:1AAA
Primary button7.73:1AAA
Secondary button7.31:1AAA
Muted text5.71:1AA
Accent7.40:1AAA
Destructive6.27:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.58:1AAA
Primary button7.73:1AAA
Secondary button7.31:1AAA
Muted text7.28:1AAA
Accent7.40:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 86.028);
  --foreground: oklch(0.1 0.015 93.47);
  --muted: oklch(0.9 0.02 32.677);
  --muted-foreground: oklch(0.442 0.011 32.684);
  --popover: oklch(0.982 0.008 86.038);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 86.038);
  --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.894 0.099 85.621);
  --primary-foreground: oklch(0.367 0.073 80.265);
  --secondary: oklch(0.796 0.108 33.292);
  --secondary-foreground: oklch(0.295 0.098 34.366);
  --accent: oklch(0.947 0.133 117.536);
  --accent-foreground: oklch(0.414 0.097 120.731);
  --destructive: oklch(0.513 0.194 30.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.099 85.621);
  --chart-1: oklch(0.894 0.099 85.621);
  --chart-2: oklch(0.796 0.108 33.292);
  --chart-3: oklch(0.947 0.133 117.536);
  --chart-4: oklch(0.821 0.093 33.122);
  --chart-5: oklch(0.897 0.102 85.573);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 89.947);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.029 33.205);
  --muted-foreground: oklch(0.737 0.01 32.665);
  --popover: oklch(0.153 0.012 87.663);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.012 87.663);
  --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.894 0.099 85.621);
  --primary-foreground: oklch(0.367 0.073 80.265);
  --secondary: oklch(0.796 0.108 33.292);
  --secondary-foreground: oklch(0.295 0.098 34.366);
  --accent: oklch(0.947 0.133 117.536);
  --accent-foreground: oklch(0.414 0.097 120.731);
  --destructive: oklch(0.629 0.214 29.562);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.099 85.621);
  --chart-1: oklch(0.894 0.099 85.621);
  --chart-2: oklch(0.796 0.108 33.292);
  --chart-3: oklch(0.947 0.133 117.536);
  --chart-4: oklch(0.821 0.093 33.122);
  --chart-5: oklch(0.897 0.102 85.573);
}