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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.18:1 | AA Large |
| Secondary button | 6.95:1 | AA |
| Muted text | 5.22:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 4.18:1 | AA Large |
| Secondary button | 6.95:1 | AA |
| Muted text | 6.21:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 3.83:1 | AA Large |
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);
}