tailwindcss-border-image weekly downloads statistics
By sebagnz · npm · Tailwind plugins
Tailwind CSS plugin to add border-image utilities.
tailwindcss-border-image has 1,299 recorded weekly downloads on npm, an increase of 42.9% over the past 30 days, ranking #2006 of 3,247 tracked listings.
About tailwindcss-border-image
The plugin
Tailwind CSS doesn't provide support for border-image out of the box, therefore this plugin aims to provide you with a set of utilities to meet that need.
The plugin it's not opinionated, meaning it doesn't provide any UI components nor override any of the tailwind's default configuration or values.
As an example, it makes it possible for this css:
div {
border-image: linear-gradient(to left, #581c87, #d8b4fe) 1 fill / 0 / 0 100% stretch;
}
to be written with tailwind:
<div
class="border-image-gradient-to-l form-indigo-900 to-indigo-300 border-slice-1 border-width-0 border-outset-x-full border-repeat-stretch"
></div>
Browser compatibility
The border-image property is widely supported, even since IE. You can check its support [here][can-i-use-border-image].
Getting started
npm install -D tailwindcss-border-image
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwindcss-border-image'),
// ...
],
}
Utilities
The CSS border-image syntax follows this schema:
border-image: <source> <slice>/<width>/<outset> <repeat>
Basically it's a short-hand for setting border-image-source, border-image-slice, border-image-width, border-image-outset and border-image-repeat in a one-liner.
This plugin will provide you with utilities to work with each one of them in a tailwind CSS fashion.
Source
Required
| Utility | Values |
|---|---|
border-image- | {theme.backgroundImage} |
border-image- | {arbitrary} |
The border-image-source CSS property sets the source image used to create an element's border image. (Keep in mind that all gradients are also considered images).
To set the border-image source you can use the border-image-{value}.
{value} can be anything defined in your theme.backgroundImage meaning that any gradient or image resource included in your theme can be used as a border image source. For example border-image-gradient-to-t.
It also supports arbitrary values, that way if you don't want to add an specific backgroundImage to your theme you can just inline it. For example: border-image-[conic-gradient(var(--tw-gradient-stops) 0 0)]
Slice
Default: 0
The border-image-slice has it's own set of values that can be extended or overwritten through the borderSlice property on the tailwind.config.js.
Since border-image-slice works with unitless values (no pixels, rems, etc) it's the only property that requires custom values.
The default theme.spacing values can't be used because they contain units (rem). The borderSlice values follow the same pattern as the default spacing, width or height that we are used to but without units.
| Utility | Values | |
|---|---|---|
border-slice- | {theme.borderSlice} / {arbitrary} | Sets a value for all four slices |
border-slice-x- | {theme.borderSlice} / {arbitrary} | Sets a value for the left and right slices |
border-slice-y- | {theme.borderSlice} / {arbitrary} | Sets a value for the top and bottom slices |
border-slice-t- | {theme.borderSlice} / {arbitrary} | Sets a value for the top slice |
border-slice-r- | {theme.borderSlice} / {arbitrary} | Sets a value for the right slice |
border-slice-b- | {theme.borderSlice} / {arbitrary} | Sets a value for the bottom slice |
border-slice-l- | {theme.borderSlice} / {arbitrary} | Sets a value for the left slice |
The border-image-slice CSS property divides the image specified by border-image-source into regions. These regions form the components of an element's border image.
The slice property accepts up to four values, acting also as a short-hand (like margin and border properties do). This means that if you provide one value it will be used for the four slices.
This plugin also proivdes utilities to set only x, y or individual values if you need to customize each of them individually.
Slice fill…
Description from the npm listing.
- tailwindcss
- tailwindcss-plugin
- border-image
- css border-image
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 (170)Similar npm Tailwind plugins plugins
All 20 tailwindcss-border-image 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-border-image. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.