Problem: Billing document.
Solution#
<div class="mx-auto max-w-2xl p-8 print:p-0">
<header class="flex justify-between"><h1 class="text-2xl font-black">INVOICE</h1><p>#0042</p></header>
<table class="mt-8 w-full text-sm">line items…</table>
</div>Why this works#
print: variants strip chrome for PDF export.
Variants#
- Responsive: add screen prefixes to the core classes
- Dark: pair each color utility with its dark: twin
- Animated: add
transition+ a state variant for motion
Related recipes#
cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns
