Background gradient

Used to add background gradient effects for elements


Usage

Add background-gradient-* class to block element.

<div class="background-gradient-0deg background-gradient-from-dark background-gradient-to-transparent">
    // Your content
</div>

See implementation in background component.

Classes

ClassValue
background-gradient-0deg
background-gradient-15deg
background-gradient-30deg
background-gradient-45deg
background-gradient-60deg
background-gradient-75deg
background-gradient-90deg
background-gradient-from-transparent
background-gradient-from-primary
background-gradient-from-primary-light
background-gradient-from-primary-dark
background-gradient-from-secondary
background-gradient-from-secondary-light
background-gradient-from-secondary-dark
background-gradient-from-dark
background-gradient-from-light
background-gradient-from-gray
background-gradient-from-gray-light
background-gradient-from-gray-dark
background-gradient-from-success
background-gradient-from-warning
background-gradient-from-error
background-gradient-from-background
background-gradient-from-background-light
background-gradient-from-background-dark
background-gradient-to-transparent
background-gradient-to-primary
background-gradient-to-primary-light
background-gradient-to-primary-dark
background-gradient-to-secondary
background-gradient-to-secondary-light
background-gradient-to-secondary-dark
background-gradient-to-dark
background-gradient-to-light
background-gradient-to-gray
background-gradient-to-gray-light
background-gradient-to-gray-dark
background-gradient-to-success
background-gradient-to-warning
background-gradient-to-error
background-gradient-to-background
background-gradient-to-background-light
background-gradient-to-background-dark
background-gradient-from-00%
background-gradient-from-1/1100%
background-gradient-from-1/250%
background-gradient-from-1/333.33%
background-gradient-from-2/366.66%
background-gradient-from-1/425%
background-gradient-from-3/475%
background-gradient-from-1/520%
background-gradient-from-2/540%
background-gradient-from-3/560%
background-gradient-from-4/580%
background-gradient-from-1/616.66%
background-gradient-to-00%
background-gradient-to-1/1100%
background-gradient-to-1/250%
background-gradient-to-1/333.33%
background-gradient-to-2/366.66%
background-gradient-to-1/425%
background-gradient-to-3/475%
background-gradient-to-1/520%
background-gradient-to-2/540%
background-gradient-to-3/560%
background-gradient-to-4/580%
background-gradient-to-1/616.66%
 

Add @s, @m, or @l suffix to support breakpoints

Table of contents