Starfield
Fill & Texture · Static · pure CSS
Letters filled with a deep-space starfield — a radial-dot star pattern over a dark gradient. Cosmic titles in pure CSS.
How it works
Starfield is a static fill & texture text effect rendered entirely in CSS. It works on a single element — just add the .text-effect class, with no extra HTML.
Controls
Starfield exposes 1 dedicated control — Hue — on top of the shared type controls (font, weight, letter-spacing and case). Open it in the generator to tune every value live, then copy the updated CSS.
CSS
/* Starfield — made with TEXT-FX · https://text-fx.app
* HTML: just put the class on any element.
* Font: 'Space Grotesk', sans-serif (load from Google Fonts).
*/
.text-effect {
font-family: 'Space Grotesk', sans-serif;
font-weight: 400;
letter-spacing: -1px;
text-transform: none;
}
.text-effect {
background: radial-gradient(1.5px 1.5px at 20% 30%, #ffffff 0%, transparent 100%),
radial-gradient(1px 1px at 68% 62%, hsl(246 100% 88%) 0%, transparent 100%),
radial-gradient(1.5px 1.5px at 44% 82%, #ffffff 0%, transparent 100%),
radial-gradient(1px 1px at 84% 16%, #ffffff 0%, transparent 100%),
radial-gradient(1px 1px at 12% 72%, hsl(246 100% 88%) 0%, transparent 100%),
radial-gradient(50% 60% at 78% 20%, hsl(346 85% 60% / 0.33) 0%, transparent 60%),
linear-gradient(165deg, hsl(46 60% 40%) 0%, hsl(64 58% 30%) 55%, hsl(86 55% 21%) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
background-size: 34px 34px, 47px 47px, 41px 53px, 59px 44px, 29px 38px, 100% 100%, 100% 100%;
filter: drop-shadow(0 0 10px hsl(46 70% 62% / 0.38));
}
Pure CSS — just add the .text-effect class to any element.
- Category
- Fill & Texture
- Type
- Static
- Browser support
- background-clip:text (all modern, -webkit- prefixed)
- Capabilities
- pure