TailwindHelper

MODX Helper for Tailwind

Organization: Treehill Studio
Creator: Thomas Jakobi (jako)

Need help installing this extra?

About TailwindHelper

With this MODX Revolution extra all used CSS classes in chunks, templates, resources and template variables are collected and saved to a safelist.json file. This safelist can be used to avoid purging the used CSS classes in a MODX installation.

Information

Released
November 20, 2026

Supported Database
MySQL

License
GPLv2

Supported Versions
2.8 - Current

Downloads
1,117

Documentation
TailwindHelper Documentation

Instructions

Install through package manager.

New in 1.1.0-pl

Added

  • Scan the default values of template variables, the files of static resources and the files of template variable @FILE bindings
  • Detect the classes in Alpine.js x-bind:class attributes and in MODX tag properties with class or cls in their name like &hereClass

Changed

  • Scan all text files in the tailwindhelper.filepaths folders and skip the sub folders that can't be read
  • Restrict the menu entry and the scan to manager users with the settings permission
  • Don't expose server paths in the manager page options

Fixed

  • Find the classes in class attributes with line breaks or escaped quotes (i.e. in JSON, nested MIGX values or PHP strings), in output modifiers with multiple or nested classes and in If snippet &then and &else values
  • Keep Tailwind classes with [[ in arbitrary values like grid-cols-[[full-start]_1fr]
  • Read the files of static chunks and templates and all ContentBlocks templates: inline, @FILE and @PDO_FILE templates and the template properties of the fields
  • Write the safelist.json reliably: skip classes that are not valid UTF-8 instead of writing an empty file, show the write errors and use the right default folder
  • Enable the buttons of the scan console window, if the scan fails

Current releases

1.1.0-pl
View | Download
November 20, 2026
2.8 - Current