r/tailwindcss • u/poojadeliverwebsite • 19m ago
Bento grids on phones: span tiles only from md: up (5 fixes I use)
The bento I keep shipping stays readable on a 390 px screen with five boring rules: one column by default (grid gap-3 md:grid-cols-2 lg:grid-cols-6), spans only from md: up (md:col-span-2 lg:col-span-4), min heights instead of fixed heights, check reading order when using grid-flow-dense, and aria-hidden on the decorative live fragments only. It's a free component on DeliverWebsite UI. What else do you do for bento layouts on mobile?