You can check out the "Responsive Design" section of the docs:
https://tailwindcss.com/docs/responsive-design
By default, Tailwind uses a "mobile-first" approach. So classes without prefixes apply to the smallest screen size.
To use different classes for different screen sizes, just add the relevant class name "md", "lg", "xl" and so on, like so: xl:px-8, lg:px-5, md: px-2
You can check out the "Responsive Design" section of the docs:
https://tailwindcss.com/docs/responsive-design
By default, Tailwind uses a "mobile-first" approach. So classes without prefixes apply to the smallest screen size.
To use different classes for different screen sizes, just add the relevant class name "md", "lg", "xl" and so on, like so: xl:px-8, lg:px-5, md: px-2
You can use max-sm:bg-red-100, max-md:px-2, max-[360px]:py-1, min-2xl:border sm:120px
Also, it is better to use className = 'container mx-auto' for responsive design.