Introduction
Natura11y provides the following mechanisms to add visual interest to your layouts.
Gradient Veneer
Apply a directional gradient to any selector using the .gradient-veneer-{x}
utilities. Where x specifies the gradient's direction: top, right, bottom, or left (Figure 1).
Gradient veneers use a single color, fully transparent to fully opaque. They inherit their color from the nearest ancestrial background color (usually applied with theme color utilities).
Gradient veneer utilities place the gradient (as a psuedo element) above all child selectors on the z index. With the above examples, a gradient veneer utility is present on the .backdrop-image
selector. This allows the gradient to appear above its child <img>
tag (Figure 2, lines 3-5).
Related CSS Variables
Further customization options are available with CSS variables.
Subtle Fill
The .subtle-fill
utility class adds a light tint background to any selector. Subtle fills inherit their color from the text color of the element on which they are placed.
With the card examples below, we can add soft emphasis to the action buttons within the .card__footer
selector.
Notice the subtle fill appears darker within the white theme card, while appearing lighter on the dark theme card.
Related CSS Variables
Further customization options are available with CSS variables.