I have an error in my CSS file saying “Could not resolve function ‘color’” on the line where I have the theme override specific styles:
/* Theme Override Specific style */
{% set header_bg_color = color(theme.header.background_color) %}
{% set footer_bg_color = color(theme.footer.background_color) %}
The current setting in fields.json are as follow:
[
{
"label": "Website header",
"name": "header",
"type": "group",
"children": [
{
"label": "Background color",
"name": "background_color",
"type": "color",
"default": {
"color": "#EFEFEF",
"opacity": 100
}
}
]
},
{
"label": "Website footer",
"name": "footer",
"type": "group",
"children": [
{
"label": "Background color",
"name": "background_color",
"type": "color",
"default": {
"color": "#EFEFEF",
"opacity": 100
}
}
]
}
]
Please help if you have an idea why I have these errors: ‘Error: Cannot resolve property’ and ‘Error: Syntax error’.
Thnak you