Gradients
Explore how to create and customize background gradients in Tailwind CSS by combining multiple utility classes. Understand gradient directions and color stops including from, via, and to colors to design visually appealing backgrounds.
We'll cover the following...
We'll cover the following...
Background as a gradient
Tailwind also lets us set the background as a gradient, which requires us to specify multiple classes on the same element. This is the first time we have seen a case where we need multiple Tailwind classes to get something to work right. We’ll see this pattern more frequently as we look at page layout options in the next chapter.
In pure CSS, we specify a gradient by assigning the background-image property a value from a ...