14 · Temas e marca
GlowText
tone default · warm · as span/h1/h2/h3/p
Texto com brilho de gradiente que percorre as letras, para títulos de IA e destaques de lançamento.
Brilho percorrendo o texto
Assistente Signetum
.heex
<.glow_text as="div" class="text-[44px]">Assistente Signetum</.glow_text>
tone · as
tone=default · h1
tone=warm · h2
as=span dentro do texto
.heex
<div class="flex flex-col gap-2.5"><.glow_text as="div" class="text-[32px]">tone=default · h1</.glow_text><.glow_text as="div" tone="warm" class="text-[24px]">tone=warm · h2</.glow_text><.glow_text class="text-[15px]">as=span dentro do texto</.glow_text></div>
Uso
<.glow_text as="h1">Assistente Signetum</.glow_text> <.glow_text tone="warm">Black Friday</.glow_text>
Regras
- Use em uma palavra ou título curto; nunca em texto corrido.
- Respeita
prefers-reduced-motiondesacelerando o brilho.
Referência da API
Todos os function components, atributos, valores e slots que este componente cobre.
Text with a living gradient: the colors drift across the letters. Styled only with Tailwind
utilities (a gradient clipped to the text, moved by the mo-glowtx keyframes).
<.glow_text as="h1">Signetum</.glow_text>
<.glow_text tone="warm">New</.glow_text>
default runs from the ink through the accent and the assistant violet; warm through amber and
rose. Size it with style or a text-* class on the call.
<.glow_text>
Renders the gradient text. as is the HTML tag.
| Attr | Type | Default | Values / notes |
|---|---|---|---|
tone |
:string |
"default" |
default, warm |
as |
:string |
"span" |
span, h1, h2, h3, p, div |
class |
:any |
nil |
Any other HTML/phx attribute goes to the root element.
Slots:
<:inner_block>(required)