Gilt Component

Text gradient color effect using CSS variables and layered linear-gradient. Supports dynamic colors, direction modifiers, spotlight and duotone variants.

Notes

Basic usage

Default gilt

Gradient text

Font sizes

Small Medium Large

Paragraph text

This is a paragraph with gilt gradient effect. The gradient can be applied to text of any length.

Theme colors

Primary Secondary Tertiary Success Error Info Warning Caution Highlight Title

Directions

.gilt-start (left→right, default)

Start

.gilt-end (right→left)

End

.gilt-top (top→bottom)

Top

.gilt-bottom (bottom→top)

Bottom

Variants

.gilt-spotlight

Spotlight Spotlight End

.gilt-duotone

Duotone Duotone End

Spotlight + colors

Success Error Info

Duotone + colors

Success Error Info

Combinations

Success + Bottom + Spotlight
Error + End + Duotone
Info + Top + Spotlight
Warning + Start + Duotone

Text color override

Red text color
Orange text color + duotone

Custom colors

Multiple color formats are supported:

Hex value

#ff6600

Named color

blue

Tailwind color

pink-500

Custom + spotlight

#ff6600 spotlight