
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
grapesjs-tailwindcss-plugin
Advanced tools
A powerful GrapesJS plugin that integrates Tailwind CSS 4 for modern styling and rapid development
The GrapesJS TailwindCSS Plugin seamlessly integrates Tailwind CSS 4 with GrapesJS, enabling you to leverage a modern CSS framework directly within your page builder. With on-the-fly CSS building, this plugin provides up-to-date styles and exports the compiled CSS with your project.
Key Features:
:star: Star me on GitHub — it motivates me a lot!
<script src="https://unpkg.com/grapesjs-tailwindcss-plugin"></script>
npm i grapesjs-tailwindcss-plugin
git clone https://github.com/fasenderos/grapesjs-tailwindcss-plugin.git
<link
href="https://unpkg.com/grapesjs/dist/css/grapes.min.css"
rel="stylesheet"
/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="path/to/grapesjs-tailwindcss-plugin.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container: "#gjs",
// ... other configurations
plugins: ["grapesjs-tailwindcss-plugin"],
pluginsOpts: {
"grapesjs-tailwindcss-plugin": {
// Options like autobuild, toolbarPanel, notificationCallback, buildButton, etc.
},
},
});
</script>
import grapesjs from "grapesjs";
import plugin from "grapesjs-tailwindcss-plugin";
import "grapesjs/dist/css/grapes.min.css";
const editor = grapesjs.init({
container: "#gjs",
// ... other configurations
plugins: [plugin],
pluginsOpts: {
[plugin]: {
// Options like autobuild, toolbarPanel, notificationCallback, buildButton, etc.
},
},
// Alternatively:
// plugins: [
// editor => plugin(editor, { /* options */ }),
// ],
});
grapesjs-tailwindcss-pluginbuild-tailwindbuild-tailwind-button| Option | Description | Type | Default |
|---|---|---|---|
prefix | Prefix to use for Tailwind CSS classes. Helps differentiate Tailwind classes from others. | string or null | null |
autobuild | If true, the plugin automatically rebuilds Tailwind CSS on each update. Set to false for manual builds. | boolean | true |
autocomplete | Controls the behavior of the autocomplete feature that provides Tailwind class name suggestions. If set to false, autocomplete is disabled. If set to true (default), autocomplete is enabled and will use the default selector #gjs-clm-new. If set to a string, that string will be used as a custom selector for the autocomplete. | boolean or string | true |
customCss | The URL of a CSS file or a raw CSS string that will be appended immediately after the @import 'tailwindcss'; statement. This allows you to extend Tailwind's styles dynamically. See the Tailwind docs for more details. | string | "" |
buildButton | Option to add a manual build button to the toolbar for triggering the CSS build process. | boolean | false |
toolbarPanel | Specify the panel where the build button should be added (e.g., options). | string | options |
notificationCallback | A custom callback function to handle notifications when Tailwind CSS is compiled. | function | () => void |
Clone the repository
$ git clone https://github.com/fasenderos/grapesjs-tailwindcss-plugin.git
$ cd grapesjs-tailwindcss-plugin
Install dependencies
$ npm i
Start the dev server
$ npm start
Build the source
$ npm run build
Copyright Andrea Fassina, Licensed under MIT.
FAQs
A powerful GrapesJS plugin that integrates Tailwind CSS 4 for modern styling and rapid development
We found that grapesjs-tailwindcss-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.