Printing is a shadcn/ui theme built around a deep yellow primary color (#767214) with deep purple accents (#721476). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the deep yellow primary (#767214) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #040401black |
| Foreground | #040401black | #fbfbf9snow |
| Card | #fdfdf7snow | #040401black |
| Card foreground | #040401black | #fbfbf9snow |
| Popover | #fdfdf7snow | #040401black |
| Popover foreground | #040401black | #fbfbf9snow |
| Primary | #767214olive | #767214olive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #147672teal | #147672teal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4e8e7gainsboro | #172b2bdarkslategray |
| Muted foreground | #546464dimgray | #9bababdarkgray |
| Accent | #721476purple | #721476purple |
| Accent foreground | #f4c6f5lavender | #f4c6f5lavender |
| Destructive | #75300bsaddlebrown | #eb6924chocolate |
| Destructive foreground | #f8cfb9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #767214olive | #767214olive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.08:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 4.99:1 | AA |
| Secondary button | 5.44:1 | AA |
| Muted text | 4.87:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 4.99:1 | AA |
| Secondary button | 5.44:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Printing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.008 104.949);
--foreground: oklch(0.105 0.016 107.692);
--muted: oklch(0.916 0.022 194.349);
--muted-foreground: oklch(0.489 0.02 194.032);
--popover: oklch(0.992 0.008 104.949);
--popover-foreground: oklch(0.105 0.016 107.692);
--card: oklch(0.992 0.008 104.949);
--card-foreground: oklch(0.105 0.016 107.692);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.54 0.109 107.442);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.513 0.083 191.331);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.401 0.168 326.628);
--accent-foreground: oklch(0.881 0.08 325.175);
--destructive: oklch(0.4 0.107 44.251);
--destructive-foreground: oklch(0.885 0.056 49.916);
--ring: oklch(0.54 0.109 107.442);
--chart-1: oklch(0.54 0.109 107.442);
--chart-2: oklch(0.513 0.083 191.331);
--chart-3: oklch(0.401 0.168 326.628);
--chart-4: oklch(0.553 0.09 191.298);
--chart-5: oklch(0.546 0.111 107.437);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.015 107.429);
--foreground: oklch(0.988 0.003 104.861);
--muted: oklch(0.273 0.027 192.99);
--muted-foreground: oklch(0.73 0.019 194.32);
--popover: oklch(0.104 0.015 107.429);
--popover-foreground: oklch(0.988 0.003 104.861);
--card: oklch(0.104 0.015 107.429);
--card-foreground: oklch(0.988 0.003 104.861);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.54 0.109 107.442);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.513 0.083 191.331);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.401 0.168 326.628);
--accent-foreground: oklch(0.881 0.08 325.175);
--destructive: oklch(0.671 0.178 44.498);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.54 0.109 107.442);
--chart-1: oklch(0.54 0.109 107.442);
--chart-2: oklch(0.513 0.083 191.331);
--chart-3: oklch(0.401 0.168 326.628);
--chart-4: oklch(0.553 0.09 191.298);
--chart-5: oklch(0.546 0.111 107.437);
}