{#- chirp-ui: Neon Text Layered text-shadow glow with color variants and optional flicker/pulse. Usage: from "chirpui/neon_text.html" import neon_text neon_text("OPEN") neon_text("LIVE", color="magenta", animation="pulse") neon_text("ARCADE", color="green", animation="flicker", tag="h1") -#} {% def neon_text(text, color="cyan", animation="", tag="span", cls="") %} {% set color_cls = " chirpui-neon--" ~ color if color in ("cyan", "magenta", "green", "orange", "blue", "red") else " chirpui-neon--cyan" %} {% set anim_cls = " chirpui-neon--" ~ animation if animation in ("flicker", "pulse") else "" %} <{{ tag }} class="chirpui-neon{{ color_cls }}{{ anim_cls }}{{ " " ~ cls if cls else "" }}">{{ text }} {% end %}