SymfonyCasts / tailwind-bundle

Delightful Tailwind Support for Symfony + AssetMapper
https://symfony.com/bundles/TailwindBundle/current/index.html
MIT License
84 stars 20 forks source link

Update usage example to move the input file outside of the stylesheets block #71

Closed nhunt290 closed 1 month ago

nhunt290 commented 1 month ago

In this example, styles/app.css is included in the stylesheets block in base.html.twig. However, when other templates extend this base file and add their own stylesheets, they will override the styles/app.css unless they explicitly include {{ parent() }} in the block.

To avoid this, I suggest moving styles/app.css outside the stylesheets block so that it's always included by default, and the block remains dedicated to page-specific styles.