tailwindcss-turbine weekly downloads statistics
By SuperiorJT · npm · Tailwind plugins
Component generator for Tailwind CSS
tailwindcss-turbine has 18 recorded weekly downloads on npm, a decrease of 25.0% over the past 30 days, ranking #3013 of 3,247 tracked listings.
About tailwindcss-turbine
tailwindcss-turbine

Note - This plugin currently only officially supports Tailwind CSS v2.1 and upwards
tailwindcss-turbine is a plugin that was built to easily generate different component classes for your application. The goal of this project is to be able to easily use custom Tailwind CSS elements within your own app.
For example, the default options for Turbine will generate .btn classes based on the buttons designed in tail-kit. It's easy to make reusable components by simply copying the Tailwind CSS styles into the Turbine config and using the generated classes.
Installation
npm i -D tailwindcss-turbine
Usage
In your tailwind.config.js:
const turbine = require('tailwindcss-turbine');
module.exports = {
...
plugins: [
turbine, // Defaults to tail-kit buttons
// Full example
turbine({
prefix: 'my-prefix',
baseStyles: 'px-4 py-2 ...',
modifiers: {
sm: 'px-3 py-0.5 ...',
lg: 'px-5 py-3 ...',
},
colorStyles: (color) => `bg-${color}-500 text-white`,
colorValidator: (color, values) => color !== 'gray' && values[500]
})
]
}
How It Works
For each color in your theme, Turbine will generate a class name resembling .{prefix}-{color} and have the provided styles for each color. Styles are applied in separate steps following a specific hierarchy:
baseStyles < modifiers < colorStyles
By styles being organized in this way, you are easily able to override styles when needed without any conflicts (hopefully).
Modifiers will insert their prefix in between the prefix and the color to resemble .{prefix}-{modifier}-{color}.
For the example above, the class name for a small blue component would be .my-prefix-sm-blue. For this, Turbine will generate:
.my-prefix-sm-blue {
@apply px-4 py-2 ...
@apply px-3 py-0.5 ...
@apply bg-blue-500 text-white
}
And after Tailwind CSS handles overrides, you end up with:
.my-prefix-sm-blue {
@apply px-3 py-0.5 ... bg-blue-500 text-white
}
Turbine Config
| Name | Type | Description | Example |
|---|---|---|---|
prefix | string | Class prefix used to identify your components | 'btn' |
baseStyles? | string | Base Tailwind CSS styles for the component | '@apply px-4 py-2' |
modifiers? | { [modifier: string]: string } | Object where each key is a modifier prefix and values are Tailwind CSS overrides | { sm: '@apply px3 py-0.5' } |
colorStyles | (color) => string | Function which returns Tailwind CSS styles that utilize theme colors | (color) => `@apply bg-${color}-500 text-white` |
colorValidator? | (color, values) => boolean | Function which is used to only generate components for theme colors that meet the requirements | (color, values) => color !== 'gray' |
Troubleshooting
Tailwind CSS is throwing a class not found error for one of my colors.
This has to do with one of the colors in your theme not having a value for the color class you are requesting. There are two solutions for this:
- Add a color value to your theme config that matches the class name used in your
colorStyles - Modify/Add the
colorValidatorto prevent the target color/value from having Turbine-generated styles
Description from the npm listing.
- plugin
- tailwind
- tailwindcss
- tailwindcss-plugin
- tailwindcss-component
- tailwindcss-components
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 (592)Similar npm Tailwind plugins plugins
All 20 tailwindcss-turbine 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-turbine. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.