Shopware 6.6.9.0

With the update to Shopware 6.6.9.0, it may happen more often that the theme cannot be saved and compiled. An error message appears.

Error message

// Error
Unable to compile the theme "THEMENAME". Error: argument `$color` of `red($color)` must be a color: /home/shopware6/vendor/shopware/storefront/Resources/app/storefront/vendor/bootstrap/scss/_functions.scss on line 184, at column 3 Call Stack: #0 function luminance /home/shopware6/vendor/shopware/storefront/Resources/app/storefront/vendor/bootstrap/scss/_functions.scss on line 174 #1 function contrast-ratio /home/shopware6/vendor/shopware/storefront/Resources/app/storefront/vendor/bootstrap/scss/_functions.scss on line 159 #2 function color-contrast /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/component/_product-detail-content-accordion.scss on line 7 #3 import /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/component/_product-detail-content-accordion.scss /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/base.scss on line 63 #4 import /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/base.scss (unknown file) on line 656

Cause

This is probably related to issue NEXT-21038, which was implemented in version 6.6.9.0 and in which a SCSSValidator was implemented.

Previously, empty color fields took a fallback color value from the SCSS theme. Now, empty color fields will throw an SCSS error and the theme will no longer compile. You can find more information in the Theme save error article.

Invalid color field

Solution

Check the color fields theme configuration for empty fields and enter a color or the value transparent here.

Last updated

Was this helpful?