Gradients and animation
Silva UI adds named gradient values tobackgroundColor 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 setbackgroundColor.
- Preview
- Code
Gradient text
Setcolor 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.
- Preview
- Code
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 customTheme, use the Box gradient prop instead. That API also supports linear, radial, and conic gradients.
Animation
Useanimation for a prebuilt animation declaration. The component still renders as normal HTML before the animation starts.
- Preview
- Code
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
Importgradients or animations when a wrapper component needs the underlying named definitions. Most applications should use backgroundColor, color and animation directly.