Skip to content
PluginStats

tailwindcss-base-buttons weekly downloads statistics

By thebakerdev · npm · Tailwind plugins

A base button styling for Tailwind Css

View on npm Fresh · Dec 6, 2026

tailwindcss-base-buttons has 57 recorded weekly downloads on npm, a decrease of 3.4% over the past 30 days, ranking #2747 of 3,247 tracked listings.

Weekly downloads
57
Official API · Dec 5, 2026
7-day growth
-41.2%
-40 weekly downloads
30-day growth
-3.4%
-2 weekly downloads
90-day growth
+23.9%
+11 weekly downloads
Rank
#2747
▼ 241 in 7 days

About tailwindcss-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.

<a href="https://tailwindcss-base-buttons.netlify.app/">Demo & Documentation</a>

Install

  1. Install the plugin:
npm install tailwindcss-base-buttons --save-dev
  1. Add it inside your tailwind.config.js file:
module.exports = {
    // ...
    plugins: [
        require('tailwindcss-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('tailwindcss-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('tailwindcss-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('tailwindcss-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

tailwindcss-base-buttons weekly downloads on npm, last 90 days: 57 weekly downloads as of Dec 5, 2026, +23.9% over 90 days.tailwindcss-base-buttonsWeekly downloads on npm · Last 90 days57downloads / week+23.9% over 90 days0100200300400Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tailwindcss-base-buttons weekly downloads on npm, last 90 days: 57 weekly downloads as of Dec 5, 2026, +23.9% over 90 days.

7/30/90-day growth

tailwindcss-base-buttons weekly downloads growth on npm: -41.2% over 7 days, -3.4% over 30 days, +23.9% over 90 days.tailwindcss-base-buttonsWeekly downloads growth on npm57downloads / week now7-day growth-40 weekly downloads-41.2%30-day growth-2 weekly downloads-3.4%90-day growth+11 weekly downloads+23.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tailwindcss-base-buttons weekly downloads growth on npm: -41.2% over 7 days, -3.4% over 30 days, +23.9% over 90 days.

Ranking history

tailwindcss-base-buttons npm ranking history: currently #2747 (by weekly downloads).tailwindcss-base-buttonsnpm ranking · by weekly downloads · Last 90 days#2747current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
tailwindcss-base-buttons npm ranking history: currently #2747 (by weekly downloads).

Listing placement

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

Listing placement

Tailwind plugins292 listings · 15 pages · page 7, #12 (overall #132)
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 (592)
Recent weekly downloads observations for tailwindcss-base-buttons
Date (UTC)Weekly downloadsChange vs. previous
57-5
62-3
65-13
78-1
79-4
83-17
100+3
97+3
94+2
920
92+5
87-7
94+9
85—

Similar npm Tailwind plugins plugins

All 20 tailwindcss-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/tailwindcss-base-buttons. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.