SCSS Value "..." is not valid for type "color"

Description

You will receive the following error message when validating the theme configuration SCSS Value "..." is not valid for type "color".

Examples:

  • SCSS Value "#9fa5ab;" is not valid for type "color"

  • SCSS Value "none" is not valid for type "color"

  • SCSS Value 'color' cannot be 'none'

Cause

This error message is caused by improved validation of the theme configuration in Shopware 6.7 and indicates that you have filled in a colour configuration field incorrectly.

There are two possibilities for this error:

  1. You filled a field incorrectly before saving.

    • The incorrect value will not be applied. Reload the configuration and everything will be fine again.

  2. You filled in a field incorrectly before updating to Shopware 6.7.

    • You must now find the value and correct it.

Why hasn't this error been noticed before?

You may not have noticed this error in Shopware 6.6. However, with Shopware 6.7, the validation of the theme configuration has been significantly improved so that even minor typos are now reliably detected.

Solution

You can find out how to correct invalid configuration fields in the following article:

Fixing invalid configuration fieldschevron-right

Further information

You can find more information about this validation error in the following article:

Invalid configurationchevron-right

Last updated

Was this helpful?