Background

Background Image

Utilities for controlling an element's background image.

Basic usage

Linear gradients

To give an element a linear gradient background, use one of the bg-gradient-{direction} utilities, in combination with the gradient color stop utilities.

<div className="h-14 **bg-gradient-to-r from-cyan-500 to-blue-500**"></div>
<div className="h-14 **bg-gradient-to-r from-sky-500 to-indigo-500**"></div>
<div className="h-14 **bg-gradient-to-r from-violet-500 to-fuchsia-500**"></div>
<div className="h-14 **bg-gradient-to-r from-purple-500 to-pink-500**"></div>