tailwindcss-glow weekly downloads statistics
By umstek · npm · Tailwind plugins
TailwindCSS glow plugin
tailwindcss-glow has 67 recorded weekly downloads on npm, a decrease of 78.8% over the past 30 days, ranking #2708 of 3,247 tracked listings.
About tailwindcss-glow
Colored/Dynamic Shadow/Glow Plugin for TailwindCSS
NOTE: This version targets Tailwind CSS v4. For the Tailwind 1.x plugin see v0.3.10; the last v2-era release is v2.0.0-beta.1.
The default shadow utilities for TailwindCSS use a fixed color per shadow. This plugin
generates colored glow (box-shadow) utilities for your whole color palette, plus
"dynamic" glows that follow the element's own background.
Installation
npm i tailwindcss-glow
# or
pnpm add tailwindcss-glow
Requires tailwindcss >= 4. Unlike earlier versions, the plugin no longer pulls in
Tailwind or any color-parsing dependency at runtime — Tailwind is a peer dependency.
Usage (Tailwind v4, CSS-first)
Add the plugin in your main CSS file:
@import "tailwindcss";
@plugin "tailwindcss-glow";
Optionally limit the generated colors or replace the styles via a small JS config (see below), or just use it as-is — Tailwind v4 tree-shakes, so only utilities you actually use end up in your CSS.
This plugin generates the following utilities:
.glow-blue-500 {
/* For each theme color (blue-500 here), the default style */
box-shadow:
0 1px 3px 0 color-mix(in srgb, oklch(62.3% 0.214 259.815) 40%, transparent),
0 1px 2px 0 color-mix(in srgb, oklch(62.3% 0.214 259.815) 24%, transparent);
}
.glow-blue-500-md {
/* For each color, for each style: md, lg, xl, 2xl, outline */
box-shadow:
0 4px 6px -1px color-mix(in srgb, oklch(62.3% 0.214 259.815) 40%, transparent),
0 2px 4px -1px color-mix(in srgb, oklch(62.3% 0.214 259.815) 24%, transparent);
}
.glow-none {
box-shadow: none;
}
/* Variants work as usual, e.g. hover:glow-red-500-lg */
.glow-dynamic {
position: relative;
z-index: 1;
}
.glow-dynamic::after {
content: "";
position: absolute;
background: inherit;
z-index: -1;
width: 99%;
height: 98%;
top: 2px;
left: 0.4%;
filter: blur(2px);
opacity: 1;
}
/* Same for glow-dynamic-md, glow-dynamic-lg, glow-dynamic-xl and glow-dynamic-2xl */
Dynamic glow styles cannot be extended, as of now. The built-in styles are default,
md, lg, xl, 2xl and outline. They have been designed to be visually similar,
as much as possible, to their box-shadow counterparts when used with a single-color
background.
How colors are handled
Style functions receive the raw CSS value of the color (any syntax: oklch(), #hex,
hsl(), a CSS variable, currentColor, …) and the plugin composes the final shadow
with color-mix(in srgb, <color> <alpha>%, transparent) — i.e. the color at the given
alpha. Because this happens in the browser, no color parsing or conversion is done at
build time and every color syntax just works.
Customization
Custom colors defined in your theme are picked up automatically:
@import "tailwindcss";
@plugin "tailwindcss-glow";
@theme {
--color-accent: #6d28d9;
}
<div class="glow-accent-md">…</div>
To limit the palette or replace the styles, pass options through a JS config file:
@import "tailwindcss";
@config "./tailwind.config.cjs";
// tailwind.config.cjs
const glow = require("tailwindcss-glow");
module.exports = {
theme: {
glow: {
colors: {
// Defaults to all theme colors
blue: "#3b82f6",
pink: "#fdf2f8",
},
styles: {
// Defaults to these values; the `default` style has no size suffix
default: (color) => `0 1px 3px 0 color-mix(in srgb, ${color} 40%, transparent)`,
md: (color) => `0 4px 6px -1px color-mix(in srgb, ${color} 40%, transparent)`,
// ...
none: "none", // string styles are emitted verbatim
},
},
},
plugins: [glow()],
};
Options can also be passed directly when invoking the plugin (glow({ colors, styles })).
In the style functions, color is the color's CSS value; use
color-mix(in srgb, ${color} <alpha>%, transparent) where the v2 plugin used
rgba(${baseColor}, <alpha>).
Migration from v2 (Tailwind 2.x)
- Load the plugin with
@plugin "tailwindcss-glow";in CSS instead of listing it intailwind.config.jsplugins: []. (A@configfile also works, as shown above.) - The generated class names are unchanged:
glow-{color},glow-{color}-{style},glow-none, and theglow-dynamic*family. - Style functions now receive the full CSS color value instead of an
"r, g, b"string; compose alphas withcolor-mix(). - Unused utilities are no longer emitted (Tailwind v4 content scanning), so the old warning about limiting colors mostly goes away.
Development
pnpm install
pnpm test # vitest integration tests build fixtures with @tailwindcss/cli
pnpm lint # oxlint
pnpm run format # oxfmt
The example/ directory contains a small static demo (run pnpm build inside it,
then open index.html).
Description from the npm listing.
- tailwindcss-plugin
- tailwindcss
- glow
- shadow
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (591)Similar npm Tailwind plugins plugins
All 20 tailwindcss-glow alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/tailwindcss-glow. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.