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

gradient-border-plugin

v1.1.3

Published

TailwindCSS plugin for adding gradient borders.

Downloads

17,225

Readme

Gradient Border Plugin

A simple Tailwind plugin that adds beautiful gradient borders to your elements.

Install

npm i gradient-border-plugin

Usage

Tailwind stylesheet

@import 'gradient-border-plugin';

Element classes

The API mirrors Tailwind's built-in gradient utilities — just prefix with gradient-border:

<div class="gradient-border gradient-border-to-r gradient-border-from-blue-500 gradient-border-to-pink-300 rounded-lg" />

Width variants

<div class="gradient-border-2 gradient-border-to-r gradient-border-from-blue-500 gradient-border-to-pink-300 rounded-lg" />

With a middle color

<div class="gradient-border gradient-border-to-r gradient-border-from-indigo-500 gradient-border-via-purple-500 gradient-border-to-pink-500 rounded-lg" />

Full gradient override

For complex gradients (conic, radial, etc.), set the CSS variable directly:

<div class="gradient-border [--gradient-border:conic-gradient(from_90deg,red,blue,red)]" />

Alpha modifiers

Color stops accept Tailwind-style alpha modifiers:

<div class="gradient-border gradient-border-from-blue-500/50 gradient-border-to-pink-300/20" />

Animation

Add animate-gradient-border to rotate the gradient angle continuously. Pairs with any combination of from/via/to colors:

<div class="gradient-border-2 animate-gradient-border gradient-border-from-indigo-500 gradient-border-via-purple-500 gradient-border-to-pink-500 rounded-lg" />

Override the speed with --gradient-border-duration (defaults to 4s):

<div class="gradient-border animate-gradient-border [--gradient-border-duration:2s]" />

Available classes

Base & width

| Class | Purpose | |-------|---------| | gradient-border | 1px gradient border (default) | | gradient-border-2 | 2px gradient border | | gradient-border-3 | 3px gradient border | | gradient-border-4 | 4px gradient border | | gradient-border-none | Remove gradient border | | animate-gradient-border | Rotate the gradient angle continuously |

Direction (mirrors bg-linear-to-*)

| Class | Direction | |-------|-----------| | gradient-border-to-t | To top | | gradient-border-to-tr | To top right | | gradient-border-to-r | To right | | gradient-border-to-br | To bottom right | | gradient-border-to-b | To bottom (default) | | gradient-border-to-bl | To bottom left | | gradient-border-to-l | To left | | gradient-border-to-tl | To top left |

Color stops (mirrors from-*, via-*, to-*)

| Class | Purpose | |-------|---------| | gradient-border-from-{color} | Start color | | gradient-border-via-{color} | Middle color | | gradient-border-to-{color} | End color |

CSS Variables

| Variable | Default | |----------|---------| | --gradient-border | Composed from from/to/via | | --gradient-border-width | 1px | | --gradient-border-angle | to bottom | | --gradient-border-from | rgba(0, 0, 0, 0.15) | | --gradient-border-to | transparent | | --gradient-border-via | (auto midpoint) | | --gradient-border-duration | 4s (used by animate-gradient-border) |

Tailwind v4 theme customization

Add custom border widths:

@theme {
  --gradient-border-width-5: 5px;
  --gradient-border-width-6: 6px;
}

License

MIT

Created by Florian Kiem.