I'm trying to build a new Drupal site using the Tailwind CSS framework, which relies on inlining CSS classes onto HTML tags.
This is fine in Twig template files where I have direct control of the output and can add the required classes directly, however I'd like to automatically add classes to <p>
tags (and probably some other, but <p>
is a good start) within the body of certain post types.
Any idea where I should be looking?
I'm not entirely clear on what the correct terminology to search is, and Google returns plenty of results that are at least a decade old and not relevant for Drupal 8.