When I started learning how to use the Tailwind CSS library, I really didn’t know what to expect and wasn’t quite sure how I’d fare with the library. It turns out, TailWind’s a whole lot easier to use than I thought and makes designing a landing page a breeze.
One remarkable feature I noticed was the ease with which I could define classes for various responsive breakpoints without writing a single line of CSS media queries. That for me was awesome!
For this tutorial, I’ll assume you have a Tailwind project set up, if you don’t you can grab one here. For the fonts, I’m using Poppins. All the code presented here should be placed in your body tag.
We’ll start off with creating and styling the main element that would house the hero section:
<main class="h-full flex items-center px-6 lg:px-32 bg-purple-900 text-white">
</main>
The Tailwind classes added to the main element does the following:
#tailwind #design #tailwind-css #web #css