@rtcamp/tailwind-config
v1.1.0
Published
rtCamp shareable Tailwind CSS v4 PostCSS config + theme.json→Tailwind webpack plugin for WordPress projects.
Readme
It ships a shareable PostCSS config plus a webpack plugin that keeps Tailwind theme tokens in
sync with theme.json.
Install
Requires Node.js 22.19+.
npm install --save-dev @rtcamp/tailwind-config tailwindcss @tailwindcss/postcsstailwindcss and @tailwindcss/postcss are peer dependencies.
Usage
postcss.config.js:
module.exports = require('@rtcamp/tailwind-config/postcss');webpack.config.js — generate _tailwind-theme.css from theme.json at build time:
const { GenerateTailwindThemePlugin } = require('@rtcamp/tailwind-config');
module.exports = {
plugins: [new GenerateTailwindThemePlugin()],
};License
GPL-2.0-or-later. See LICENSE.
