Skip to content
IndexRequest a UIAboutContact

Neon Tube Glow

A neon sign built from layered text shadows, with three colours, a power slider and an optional flicker.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Night photograph of a pink neon sign reading OPEN mounted on a dark red brick wall, the glass tubes glowing with a bright white-hot core fading to saturated magenta and a soft wide halo spilling onto the bricks, small black wire supports behind the letters, subtle reflection on a rain-wet pavement below, 35mm lens, shallow depth of field, retro and moody. Variants: cyan blue tubes and warm amber tubes, with one letter slightly dimmer as if failing. Negative: flat colour text, daylight, overexposed haze, text errors, logos. Reduced motion: static image.

About this pattern

Definition

A neon sign is a glowing glass tube. In CSS you can fake it with a bright, nearly white core, a coloured inner glow and a wide soft halo, all from layered text-shadow. A dark brick wall behind it makes the colour read as light rather than paint.

Purpose & UX principles

  • The text colour is near white; the colour comes from stacked shadows around it.
  • Use three to five shadows: tight and bright, then progressively wider and fainter.
  • Dark backgrounds are essential; the glow disappears on light ones.
  • A short flicker on one letter sells the broken-tube charm.

Interaction states

  • Three colours, a Power slider and a Flicker switch.

Motion specification

  • The flicker lasts a fraction of a second and repeats every few seconds.
  • Reduced motion: the flicker switch is disabled and the sign stays steady.

Responsive behaviour

  • Keep flicker slow and brief; rapid flashing can trigger photosensitive reactions.
  • Do not rely on the glow alone for text contrast: the core stays light.

Code

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Colour"><button data-p="0" aria-pressed="true">Pink</button><button data-p="1" aria-pressed="false">Cyan</button><button data-p="2" aria-pressed="false">Amber</button></div><div class="wl" id="wl"><span class="nn" id="nn"><i>O</i><i>P</i><i id="fl">E</i><i>N</i></span></div><div class="two"><label class="rw">Power <b id="pv">80%</b><input id="pw" type="range" min="10" max="100" value="80"></label><label class="sw"><input id="fk" type="checkbox"> Flicker</label></div></div>

Related patterns

Backlight, Rim Light & Lens Flare

↗
Backlight, Rim Light & Lens FlareNatural Light

Highlight Bloom & Halation

↗
Highlight Bloom & HalationPhoto Styles

Liquid Glass Button

↗
Liquid Glass ButtonGlass & Tactile