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.
In this example,
styles/app.css
is included in thestylesheets
block inbase.html.twig
. However, when other templates extend this base file and add their own stylesheets, they will override thestyles/app.css
unless they explicitly include{{ parent() }}
in the block.To avoid this, I suggest moving
styles/app.css
outside thestylesheets
block so that it's always included by default, and the block remains dedicated to page-specific styles.