@bosh-code/tsdown-plugin-tailwindcss weekly downloads statistics
By bosh-code · npm · Tailwind plugins
Use tailwindcss with your tsdown component libraries
@bosh-code/tsdown-plugin-tailwindcss has 94 recorded weekly downloads on npm, a decrease of 47.2% over the past 30 days, ranking #1748 of 2,322 tracked listings.
About @bosh-code/tsdown-plugin-tailwindcss
@bosh-code/tsdown-plugin-tailwindcss
Use tailwindcss in your tsdown component libraries.
The @tailwindcss/vite plugin unfortunately doesn't work with tsdown, so I created this plugin which is a modified version of that plugin but with tsdown support.
This plugin extracts classes from your source files and enables use of libraries like daisyui, just like the vite plugin.
I intend for this plugin to be used with @bosh-code/tsdown-plugin-inject-css, as you need someway of importing the built CSS in the bundle. You can achieve the same result in other ways if you would prefer not to use the plugin, but I find the plugin to be nicer.
Installation
Install the plugin:
# npm
npm install -D @bosh-code/tsdown-plugin-inject-css @bosh-code/tsdown-plugin-tailwindcss
# yarn
yarn add -D @bosh-code/tsdown-plugin-inject-css @bosh-code/tsdown-plugin-tailwindcss
# pnpm
pnpm add -D @bosh-code/tsdown-plugin-inject-css @bosh-code/tsdown-plugin-tailwindcss
Add the plugins to your tsdown.config.ts:
// tsdown.config.ts
import { injectCssPlugin } from '@bosh-code/tsdown-plugin-inject-css';
import { tailwindPlugin } from '@bosh-code/tsdown-plugin-tailwindcss';
export default defineConfig({
external: ['preact'],
plugins: [
tailwindPlugin(),
injectCssPlugin()
]
});
And add the tailwind import to your library entrypoint CSS file, usually src/index.css:
/* src/index.css */
@import "tailwindcss";
/* Add any other global styles here */
The how and why
This plugin is a modified version of the @tailwindcss/vite plugin that I created to work with my preact component library.
Contributions welcome!
License
MIT © bosh-code
<div align="center" style="max-width: 120px;"> <img style="max-width: 120px" width="120px" src="https://raw.githubusercontent.com/bosh-code/tsdown-plugin-tailwindcss/main/.github/images/nz-made.png"> </div>Description from the npm listing.
- bundle
- bundling
- component-library
- css
- tailwindcss
- tailwindcss-plugin
- tsdown
- tsdown-plugin
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 (544)Similar npm Tailwind plugins plugins
All 20 @bosh-code/tsdown-plugin-tailwindcss 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/@bosh-code/tsdown-plugin-tailwindcss. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.