npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tw-shimmer

v0.4.13

Published

Tailwind CSS v4 plugin for shimmer effects

Readme

tw-shimmer

npm version npm downloads GitHub stars

Tailwind CSS v4 plugin for shimmer effects. Zero-dependency, CSS-only, with sine-eased gradients for buttery-smooth highlights and OKLCH color space for perceptually uniform color mixing. Provides text-shimmer and skeleton/background-shimmer variants with customizable speed, spread, angle, and colors.

Installation

npm install tw-shimmer
/* app/globals.css */
@import "tailwindcss";
@import "tw-shimmer";

Usage

Text shimmer keeps one text node. Where -webkit-mask-clip: text is supported, the host is masked and an additive highlight band moves on the compositor. Other browsers keep the existing gradient fallback.

<span class="shimmer text-foreground/40">Loading...</span>

<div class="shimmer-container space-y-2">
  <div class="shimmer shimmer-bg bg-gray-200 h-4 w-full rounded"></div>
  <div class="shimmer shimmer-bg bg-gray-200 h-4 w-3/4 rounded"></div>
</div>

Inside a shimmer-container, the plugin derives the track width from the container width. Because the container exposes only its inline size, the height term for angled gradients uses the nearest block-size query container when available and otherwise the small viewport height, with half the container width and 200px as minimums. Text shimmer hosts should contain text only: the host mask clips every descendant, including icons. Selection backgrounds are clipped to the glyphs on the compositor path.

The compositor highlight is additive. It defaults to white and --shimmer-color, including shimmer-color-*, overrides the band color. This matches the gradient on white and dark surfaces but can look different on tinted surfaces. shimmer-invert selects a black band.

Text shimmer holds still under prefers-reduced-motion: reduce on both paths, leaving the label in its plain text color. shimmer-bg keeps animating.

Utilities

| Utility | Effect | | ------------------------ | ----------------------------------------------------------------------------- | | shimmer | Base text shimmer. Pair with a low-opacity text color. | | shimmer-bg | Background shimmer; requires shimmer and a base bg-* class. | | shimmer-container | Parent container that sizes the animation track for children. | | shimmer-speed-{value} | Animation speed in px per second (text: 200, background: 1000 by default). | | --shimmer-track-width | Animation track width for timing (200px by default). | | shimmer-spread-{value} | Highlight thickness (text: calc(4ch + 80px), background: 480px by default). | | shimmer-angle-{value} | Highlight angle in degrees (15 by default). | | shimmer-repeat-delay-* | Pause between cycles in ms (text: 100, background: 20 by default). | | shimmer-color-{color} | Highlight color from your Tailwind palette. | | shimmer-invert | Use a contrasting additive highlight band. |

Variables are inheritable; set them on any ancestor element and descendants pick them up unless they override. The same speed, duration, repeat delay, angle, and track width drive both rendering paths.

Documentation

Full utility reference, accessibility notes, and the technical details of the sine-eased gradient pipeline at assistant-ui.com/tw-shimmer.