Variable Shadow Text

Interactive text that transitions between weight, slant, and shadow depth using variable font settings.

Preview

HOVER ME

Reverse Mode

In reverse mode, the text starts flat and expands/pops out on hover.

EXPAND

Custom Colors

CYBER

Installation

Use the CLI to add this component to your project.

npx shadcn@latest add https://ui.nyxhora.com/r/variable-shadow-text.json

Props

PropTypeDefaultDescription
textstring-The text to display.
shadowColorsstring[]['#07bccc', ...]Array of 5 colors for the shadow layers.
strokeColorstring#d6f4f4Color of the text stroke.
reversebooleanfalseIf true, effect expands on hover instead of collapsing.
classNamestring-Class for the text element (mainly font-size).