Printing for shadcn/ui

Printing is a shadcn/ui theme built around a green primary color (#3d8a62) with pink accents (#8a3d65). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#3d8a62) on a green-tinted background (#040b08).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b08black
Foreground
#000000black
#fcfdfcwhite
Card
#ffffffwhite
#040b08black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#040b08black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#3d8a62seagreen
#3d8a62seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8a3d65dimgray
#8a3d65dimgray
Secondary foreground
#fdfbfcsnow
#fdfbfcsnow
Muted
#f3e7edlinen
#180c12black
Muted foreground
#735966dimgray
#a68c99rosybrown
Accent
#8a3d65dimgray
#8a3d65dimgray
Accent foreground
#fdfbfcsnow
#fdfbfcsnow
Destructive
#6f0e01maroon
#fd290dorangered
Destructive foreground
#feafa4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3d8a62seagreen
#3d8a62seagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.18:1AA Large
Secondary button6.95:1AA
Muted text5.22:1AA
Accent6.95:1AA
Destructive6.82:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button4.18:1AA Large
Secondary button6.95:1AA
Muted text6.21:1AA
Accent6.95:1AA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.015 344.692);
  --muted-foreground: oklch(0.495 0.04 346.257);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.574 0.099 158.389);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.474 0.116 350.215);
  --secondary-foreground: oklch(0.991 0.002 344.351);
  --accent: oklch(0.474 0.116 350.215);
  --accent-foreground: oklch(0.991 0.002 344.351);
  --destructive: oklch(0.349 0.132 31.644);
  --destructive-foreground: oklch(0.826 0.095 27.625);
  --ring: oklch(0.574 0.099 158.389);
  --chart-1: oklch(0.574 0.099 158.389);
  --chart-2: oklch(0.474 0.116 350.215);
  --chart-3: oklch(0.474 0.116 350.215);
  --chart-4: oklch(0.499 0.123 350.269);
  --chart-5: oklch(0.581 0.106 157.949);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.017 164.188);
  --foreground: oklch(0.993 0.002 164.237);
  --muted: oklch(0.174 0.023 347.471);
  --muted-foreground: oklch(0.668 0.037 345.656);
  --popover: oklch(0.141 0.017 164.188);
  --popover-foreground: oklch(0.993 0.002 164.237);
  --card: oklch(0.141 0.017 164.188);
  --card-foreground: oklch(0.993 0.002 164.237);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.574 0.099 158.389);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.474 0.116 350.215);
  --secondary-foreground: oklch(0.991 0.002 344.351);
  --accent: oklch(0.474 0.116 350.215);
  --accent-foreground: oklch(0.991 0.002 344.351);
  --destructive: oklch(0.636 0.244 30.78);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.099 158.389);
  --chart-1: oklch(0.574 0.099 158.389);
  --chart-2: oklch(0.474 0.116 350.215);
  --chart-3: oklch(0.474 0.116 350.215);
  --chart-4: oklch(0.499 0.123 350.269);
  --chart-5: oklch(0.581 0.106 157.949);
}