Skip to content

Glow

Free

A soft halo in the element's own color, for progress bars, rings, dots, and chart lines.

Tailwind CSS 4MIT + Commons Clause · 1 CSS file · 0 KB JavaScript
gelatinui.commain · 3f9c2e1
Building pages218 / 302
Requests per second1,284
LightDark
OnOff
text-chart-1 glow glow-line

Install

Add the utility's CSS with the CLI, your coding agent, or by hand. It has no JavaScript.

Usage

Put glow on a filled part and glow-line on a thin stroke. The halo takes the text color of the element.

storage-bar.tsx

Fill and stroke

A blur alone spreads too little color on a thin line, so strokes get a second, tight layer.

  • Fillsglow

    One 6px halo for bars, rings, dots, and badges.

  • Strokesglow-line

    A 2px core under the 6px halo, for 1 to 2px chart lines.

Colors

The halo takes the element's own color, so a status dot glows in its own tone.

  • Online
  • Busy
  • Down

Options

The classes and the variable of the utility. Set the variable with an arbitrary property, such as [--glow-strength:50%].

NameKindDefaultDescription
glowclass—A 6px halo for fills: dots, bars, rings.
glow-lineclass—A 2px core under the 6px halo, for 1 to 2px strokes such as chart lines.
--glow-strengthvariable35% · 60% darkHow much of the color the halo takes. It is stronger in dark mode, where the halo reads less.