News for hackers. Stuff that matters.
Re:Mobile-First CSS: Is It Time for a Rethink? by legopeice on Sunday June 19, 2022 @11:40PM (#31806057)
Tailwind has the sm: lg: and xl: prefixes that let you target screen size.

eg. you can give an element a class of "sm:p-2 lg:p-4 xl:p-8" to give different padding sizes.

the docs are here: https://tailwindcss.com/docs/responsive-design

There are no comments on this comment yet.