SIMPLE Way To Make Responsive Design Easier in TailwindCSS

Mark Gavagan
Sep 14, 2021

I’m a novice and this has been really helpful:

(Temporarily) change the background color at each responsive breakpoint (link to official responsive design docs). For example:

<div class=”bg-red-200 sm:bg-yellow-200 md:bg-blue-200 lg:bg-green-200 xl:bg-purple-200 2xl:bg-pink-200 pt-4"><!-- put your code for the entire page here --></div>

The image below is automatically resized on Medium…

…but I’m sure you get the idea that as I make the browser window wider and wider, the background changes color, to help me recognize how things look at different browser window sizes:

Best of luck!

--

--