14 · Themes and brand

GlowText

tone default · warm · as span/h1/h2/h3/p

Text with a gradient glow that runs across the letters, for AI headings and launch highlights.

A glint running across the text

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>

Usage

<.glow_text as="h1">Assistente Signetum</.glow_text>
<.glow_text tone="warm">Black Friday</.glow_text>

Rules

  • Use it on a word or a short title; never in running text.
  • Respects prefers-reduced-motion by slowing the glow down.

API reference

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)