CSS Neon Text Generator
Stacked glowing text-shadows on a dark room: the genuine neon-sign look, with adjustable glow color, intensity, and an optional flicker animation. All CSS, no images.
Settings
Ready-made examples — click any card to copy its CSS
Proven starting points. Clicking a card copies the full CSS to your clipboard.
The CSS you need to build this yourself
Understand the output, not just copy it — these lessons on our learning path teach exactly what this tool automates:
Related generators & tools
- CSS Text Shadow GeneratorShadows & Effects
- CSS Text Gradient GeneratorTypography & Buttons
- CSS Box Shadow GeneratorShadows & Effects
- CSS Keyframes GeneratorAnimation & Motion
- CSS Font Pairing ToolTypography & Buttons
- CSS Gradient GeneratorBackgrounds & Color
How it works
Real neon is a white-hot core wrapped in colored gas glow. In CSS: white text, a tight white shadow for the core, then colored shadows at increasing blur — each layer at zero offset so light radiates evenly. More layers, wider blur, bigger halo.
The flicker is a keyframe animation dropping opacity for single frames at irregular timestamps — regularity would look like blinking, not a failing tube. It matters on dark backgrounds only; on white, glow reads as smudge.
Run the code — try it yourself
Wire the sign: make the h1 white with a three-layer cyan glow (0 0 4px #fff, then 8/20/40px of #4FB2C4).
Frequently asked questions
Why is the text itself white?
The tube's core burns hotter than its gas color; keeping glyphs white with colored glow is what sells the effect.
How many shadow layers do I need?
Three reads neon; five reads Vegas. Beyond that you pay repaint cost for little visual gain.
Can I use it on light backgrounds?
The glow washes out — neon needs darkness. Consider a dark hero section, or the ordinary Text Shadow tool instead.
Is the flicker accessible?
It's subtle and slow, but respect prefers-reduced-motion: wrap the animation in a motion media query as this site's stylesheet does.
Keep going
Neon is theatrical — one sign per scene, always in the dark. The mechanics generalize though: any layered zero-offset shadow is a glow, on buttons, borders, or icons. The foundation lives in the Shadows lesson; animate the electricity in the Keyframe Builder.
CSSmatic is a non-profit project, made by developers for developers.