I'm building a dashboard layout. On desktop I want a fixed left sidebar (250px), on mobile it should slide in/out as a drawer.
I've tried using hidden and flex breakpoint utilities but can't get the transition to work smoothly. Is there a standard Tailwind pattern for this?
Priya Nair
asked 1 months ago2
Answers23
Upvotes3422
ViewsI want to add a dark mode toggle to my Next.js app using Tailwind's built-in dark mode support. I want to:
What's the correct implementation? Should I use next-themes or roll my own?
I understand the basics of both Grid and Flexbox, but in practice I often find myself guessing which to use. My confusion:
Can someone give me a clear decision framework with real examples?
Yes, I know this is a classic meme, but seriously — there are now 10 different ways to center a div and I don't know which is best in each context.
I want to understand: when to use margin: auto, Flexbox, Grid, position: absolute with transform, and the new place-items: center shorthand. What's the decision tree?
Carlos Ribeiro
asked 2 months ago1
Answers103
Upvotes9200
Views1
75
Upvotes18600
Views3
Answers38
Upvotes22100
Views