tailwindcss-wp-global-styles weekly downloads statistics
By natac13 (2 listings) · npm · Tailwind plugins
A TailwindCSS Plugin to take global styles from WordPress and convert them to TailwindCSS
tailwindcss-wp-global-styles has 3 recorded weekly downloads on npm, a decrease of 75.0% over the past 30 days, ranking #2256 of 2,322 tracked listings.
About tailwindcss-wp-global-styles
🎨 TailwindCSS WP Global Styles Plugin
This plugin takes the CSS contents of the global stylesheet from WordPress and adds it to the TailwindCSS build process.
You will have access to all the utility classes from the WordPress Global Stylesheet in your TailwindCSS build. As well as the css variables.
The goal of this plugin is to provide you with TailwindCSS intelisense for the WordPress global stylesheet. However, to ensure all the WP blocks have the correct styles, and to avoid having to include the globalStylesheet.css in the build, this plugin will add all the selectors to the safelist config option. This makes sure that all the selectors are included in the build.
🚀 Installation
npm install tailwindcss-wp-global-styles
📦 Usage
Add the plugin to your tailwind.config.js file. This will include a safelist of the WP global stylesheet selectors:
// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
plugins: [
require('tailwindcss-wp-global-styles')({
globalStyes: fs.readFileSync('./path/to/wp/global.css', 'utf8'),
}),
],
}
If you are using your own custom safelist option then you will need to merge the safelist from this plugin with your own. We provide a helper function to get the safelist from the WordPress global stylesheet. You can use it like this:
const plugin = require('tailwindcss-wp-global-styles')
const globalStyles = fs.readFileSync('./path/to/wp/global.css', 'utf8')
// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
plugins: [
plugin({
globalStyes,
}),
],
safelist: [
// Add your own safelist items here,
...plugin.getWPSafelist(globalStyles),
],
}
⛭ Options
The globalStyles option is required. It should be the contents of the WordPress global stylesheet.
⚠️ Warning
Any !important declarations in the WordPress global stylesheet will be preserved in the TailwindCSS base and components. Therefore, you should keep this in mind when writing your own TailwindCSS styles. And to check the TailwindCSS Intellisense to see when !important is being used.
🪪 License
MIT
Made by natac13
Description from the npm listing.
- tailwindcss
- wordpress
- headless
- css
- postcss
- tailwind
- tailwindcss-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 (122)Similar npm Tailwind plugins plugins
All 20 tailwindcss-wp-global-styles 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-wp-global-styles. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.