{# @description Lights the words it wraps in one of the theme's colours, with a soft halo of the same colour behind them. A few words, on one line. #} {# @prop variant:select['primary', 'secondary', 'accent', 'neutral', 'base-100', 'base-200', 'base-300'] | default:"primary" | description:"The colour of the words and their halo" #} {# @prop intensity:number | default:"0.7" | description:"How strong the halo is, from 0 to 1" #} {# @prop spread:number | default:"1" | description:"How far the halo reaches, as a multiple: 2 is twice as far" #} {# @prop pulse:number | default:"0" | description:"How quickly the halo breathes, as a multiple: 1 is once every three seconds, and 0 holds it steady" #} {# @prop repeat:number | description:"How many times the halo breathes before it stops. Left out, it never stops." #} {# @prop class:text | description:"Extra classes on the span" #} {# @slot not the CSS — The words to light. Rendered twice, so plain words and nothing with an id. #} {% comment %} The halo is a blurred copy, not a text shadow, so breathing changes opacity and repaints nothing. A box of its own, so it does not wrap (docs/adr/0005-text-effects-are-spans-moved-by-css.md). {% endcomment %} {% with pulsing=pulse|floatformat:'-3u'|default:'0' %} {{ slot }} {% endwith %}