CMS Tailwind JIT compiler

CMS Tailwind JIT compiler

Another issue was that in production instances only styles that are used in templates are included in the styles.css file.
Content admins needed to limit themselves to tailwind classes that already where used on the front end, or cumbersome workarounds where required to include the CMS content styles.

We just released a new Hyvä extension to that uses the TailwindCSS JIT compiler to generate the CSS for all styles used in CMS pages, CMS blocks, product descriptions and category descriptions.
On the frontend, the additional CSS is embedded inline within <style> tags.

As an additional bonus, a preview is generated in the Admin interface, so instead of seeing only code, something quite similar to what will be visible to visitors is shown.

Share