Skip to main content

Gradients and animation

Silva UI adds named gradient values to backgroundColor and color, plus an animation prop for lightweight entrance and attention motion. They work on every primitive that accepts BaseProps.

Gradient backgrounds

Use a gradient name anywhere you would normally set backgroundColor.

Gradient text

Set color to a gradient name to render text with a clipped gradient fill. Keep a meaningful text label in the markup: the gradient is decorative styling, not content.

Available gradients

backgroundColor and color continue to accept normal Silva UI theme tokens. A gradient name is simply an additional supported value.

Named or theme-aware?

Named gradients are fixed library presets. When a component needs custom stops that automatically follow the nearest built-in or custom Theme, use the Box gradient prop instead. That API also supports linear, radial, and conic gradients.

Animation

Use animation for a prebuilt animation declaration. The component still renders as normal HTML before the animation starts.
Use pulse only for information that is not essential to understand or operate the page. Do not rely on motion alone to communicate status.

Reuse the definitions

Import gradients or animations when a wrapper component needs the underlying named definitions. Most applications should use backgroundColor, color and animation directly.