Installing the CMS Tailwind JIT Module
Included with Hyvä CMS
The CMS Tailwind JIT module (Hyva_CmsTailwindJit) is automatically installed as a dependency of Hyvä CMS. When using Hyvä Theme with PageBuilder only, it must be installed explicitly.
Installing
Install the CMS Tailwind JIT module using Composer:
Then enable the module and apply database schema changes:
Configuring Instances Without PageBuilder
Required when PageBuilder modules are disabled
If your Magento instance has PageBuilder modules disabled, you must disable a JavaScript mixin in the CMS Tailwind JIT module to prevent admin errors.
Create a RequireJS configuration file in your custom module to disable the mixin:
var config = {
config: {
mixins: {
// Disable the PageBuilder form mixin when PageBuilder is not installed
'Magento_Ui/js/form/form': {
'Hyva_CmsTailwindJit/js/form/pagebuilder-form-submit-mixin': false
}
}
}
};
Add Hyva_CmsTailwindJit as a dependency in your custom module's etc/module.xml to ensure correct load order:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="My_Module">
<sequence>
<!-- Load after CMS Tailwind JIT module to override its mixin -->
<module name="Hyva_CmsTailwindJit"/>
</sequence>
</module>
</config>
After creating these files, flush the Magento cache. In production mode, also deploy static content: