Skip to content
PluginStats

tailwind-base-buttons weekly downloads statistics

By izaiahhorton · npm · Tailwind plugins

A base button styling for Tailwind Css

View on npm Outdated · Oct 23, 2026

tailwind-base-buttons has 223 recorded weekly downloads on npm, a decrease of 14.6% over the past 30 days, ranking #2459 of 3,247 tracked listings.

Weekly downloads
223
Official API · Dec 5, 2026
7-day growth
+27.4%
+48 weekly downloads
30-day growth
-14.6%
-38 weekly downloads
90-day growth
—
Insufficient history
Rank
#2459
▼ 56 in 7 days

About tailwind-base-buttons

Tailwind CSS Base Buttons

This plugin adds a bunch of base button classes in your Tailwindcss components which can be customized based on your theme colors.

Install

  1. Install the plugin:
npm install tailwind-base-buttons --save-dev
  1. Add it inside your tailwind.config.js file:
module.exports = {
    // ...
    plugins: [
        require('tailwind-base-buttons')()
    ]
}

Documentation

Out of the box, the plugin will generate these classes for styling your buttons.

  • btn-{color} - Colors are the default Tailwind colors. Ex: btn-indigo.
  • btn-{theme} - These classes are theme based colors. Ex: btn-primary. Other options are secondary, danger, default & disabled.
  • btn-outlined-{color|theme} - These are outlined button based on default and theme colors. Ex: btn-outlined-primary or btn-outlined-red.
  • btn-outlined-alt-{color|theme} - Same as outlined button but with solid backround on hover.
  • btn-gradient-{color|theme} -These are gradient buttons based on default and theme colors. Ex: btn-gradient-primary or btn-gradient-pink.
  • btn-{size} - These are button size classes. Ex: btn-xs. Other options are sm,md(default), lg,xl,
  • btn-rounded - These makes rounded buttons

Customization

The appearance of the button can be customized by passing an option object as a first argument of the plugin. Ex:

module.exports = {
    // ...
    plugins: [
        require('tailwind-base-buttons')({
            baseClass: '.button',
            borderRadius: '.5rem',
            padding: '.5rem 1rem',
            colors: {
                theme: {
                    primary: {
                        background: red,
                        text: white
                    },
                    secondary: {
                        background: blue,
                        text: black
                    }
                }
            }
        })
    ]
}

The example above will generate classes like .button-* with border-radius .5rem and padding .5rem 1rem. The theme colors generated would be .button-primary & .button-secondary.

You can also add your custom button styles by adding an object or a callback that generates your button style object as a second argument. Ex: using an object. This adds the .btn-sample class

module.exports = {
    // ...
    plugins: [
        require('tailwind-base-buttons')({
            baseClass: '.btn'
        },{
            '.btn-sample': {
                color: 'red',
                width: '200px'
            }
        })
    ]
}

Ex: using a callback. By using a callback, you can access the colorConfig and options which contains the default and theme colors and the options. This will add .btn-sample-{color|theme} classes.

    module.exports = {
    // ...
    plugins: [
        require('tailwind-base-buttons')({
            baseClass: '.btn'
        },(colorConfig, options) => {

            let additionalStyles = {};

            Object.entries(colorConfig, config => {

                let [key, properties] = config;

                Object.assign(additionalStyles, {
                    [`${options.baseClass}-sample-${key}`]: {
                        backgroundColor: properties['background'],
                        width: '200px'
                    }
                })
            });

            return additionalStyles;
        })
    ]
}

Description from the npm listing.

  • tailwindcss
  • tailwindcss-plugin
  • buttons

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

tailwind-base-buttons weekly downloads on npm, last 90 days: 223 weekly downloads as of Dec 5, 2026.tailwind-base-buttonsWeekly downloads on npm · Last 90 days223downloads / week0100200300400500600Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tailwind-base-buttons weekly downloads on npm, last 90 days: 223 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

tailwind-base-buttons weekly downloads growth on npm: +27.4% over 7 days, -14.6% over 30 days, 90-day growth unavailable.tailwind-base-buttonsWeekly downloads growth on npm223downloads / week now7-day growth+48 weekly downloads+27.4%30-day growth-38 weekly downloads-14.6%90-day growth+223 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tailwind-base-buttons weekly downloads growth on npm: +27.4% over 7 days, -14.6% over 30 days, 90-day growth unavailable.

Ranking history

tailwind-base-buttons npm ranking history: currently #2459 (by weekly downloads).tailwind-base-buttonsnpm ranking · by weekly downloads · Last 90 days#2459current rank#1400#1600#1800#2000#2200#2400#2600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 19, 2026 – Dec 6, 2026 · 19 observations · Updated Dec 5, 2026pluginstats.com
tailwind-base-buttons npm ranking history: currently #2459 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 123, #19 (overall #2,459)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 5, #6 (overall #86)
Tailwind plugins: every listing in weekly downloads order

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 (156)
Recent weekly downloads observations for tailwind-base-buttons
Date (UTC)Weekly downloadsChange vs. previous
223-33
256-1
257-4
261+3
258-1
259+16
243+68
1750
175+36
139+38
101+33
68+45
23+23
0—

Similar npm Tailwind plugins plugins

All 20 tailwind-base-buttons alternatives

Data 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/tailwind-base-buttons. First seen Oct 19, 2026; last successful collection Oct 23, 2026. See the methodology.