Tailwind Tutorial | How to Handle Background Images, Gradients, and Overlays in Tailwind CSS

2 years ago
49

In this Tailwind tutorial, we will look at how you can use Tailwind CSS utility classes to handle background images, gradients, and overlays to create cool website banners.

Yesterday we were working on our new website for Techmaker Studio (https://www.techmaker.studio). I wanted to have a background image at the top of the homepage with a gradient overlay, and I started to reach for some old tricks.

Then, I realized that with Tailwind CSS, we can actually handle this old problem in a super easy way. And - we get some interesting side effects that we can use in our design.

Tailwind CSS Overlay docs: https://tailwindcss.com/docs/background-blend-mode

Tailwind makes it super easy to add background images OR use regular image tags as background images. Then it lets us add gradients as overlays using its awesome background blend mode feature.

Tailwind is fairly beginner friendly, and we keep things pretty basic in this episode.

In this 10 Minute Tutorial, we'll quickly walk you through everything you need to know to get up and running with Tailwind CSS when it comes to things like website banners.

Loading comments...