Hacker News new | past | comments | ask | show | jobs | submit login

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: