Skip to content

Disable SCSS variable typoscript override

Benjamin Kott edited this page Aug 23, 2023 · 1 revision

The SCSS parser checks on render if there are TypoScript SCSS variables set and overrides the variables in the SCSS code. In some cases, it is useful to disable that behavior, when you only want to work with the SCSS files itself for example.

The easiest way to achieve this is to simply unset the automatically loaded and predefined variables that come with the bootstrap package.

To unset the TypoScript constants place this in your constants file or in the constants field in your template:

plugin.bootstrap_package.settings.scss

Note: This also disables the variable listing in the constants editor.