"value":"\n <p>I recently added a custom <code>wrapper<\/code> class within a Tailwind CSS project.<\/p>\n\n<p>It combined the <code>max-w-6xl<\/code>, <code>mx-auto<\/code> and <code>px-4<\/code> classes using <code>@apply<\/code>, which I rarely use.<\/p>\n\n<p>I added it so we didn't have to add the same classes multiple times.<\/p>\n\n<p>The advantage was it removed some duplication, but people needed to switch from the Twig template to the CSS file to remember what the <code>wrapper<\/code> class did.<\/p>\n\n<p>This undoes some of the advantages of Tailwind CSS and utility classes - the ability to stay in one file without needing to context switching, and easily reading what classes are on an element and immediately knowing what styles are applied to it.<\/p>\n\n<p>Everything is a trade-off.<\/p>\n\n<p>You need to decide which option feels right for you.<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>I recently added a custom <code>wrapper<\/code> class within a Tailwind CSS project.<\/p>\n\n<p>It combined the <code>max-w-6xl<\/code>, <code>mx-auto<\/code> and <code>px-4<\/code> classes using <code>@apply<\/code>, which I rarely use.<\/p>\n\n<p>I added it so we didn't have to add the same classes multiple times.<\/p>\n\n<p>The advantage was it removed some duplication, but people needed to switch from the Twig template to the CSS file to remember what the <code>wrapper<\/code> class did.<\/p>\n\n<p>This undoes some of the advantages of Tailwind CSS and utility classes - the ability to stay in one file without needing to context switching, and easily reading what classes are on an element and immediately knowing what styles are applied to it.<\/p>\n\n<p>Everything is a trade-off.<\/p>\n\n<p>You need to decide which option feels right for you.<\/p>\n\n ",