New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme Editor color picker breaks liquid files in the assets folder when choosing branding colors #1654
Comments
Having this exact problem. |
Also having this problem in our themes. Partner Support referred me to this GitHub Issue. |
Having the same issue. A quick way to fix this issue is to move the css variables into the |
I came across this bug myself too. Reported to Shopify Plus support who told me "heavily customised themes aren't supported", or something to that effect. Nothing to do with customised themes, since I've replicated the same issue on other themes from the Shopify Theme Store installed as theme trials (e.g. not possible to change any of the original coding). This is a clear bug on Shopify's side. You're supposed to be able to use Liquid in css.liquid files, all we're doing is reference a settings.my_setting_name, the problem is introduced by Shopify within Theme Customiser. |
Issue
If a user chooses a dynamic source for the color picker in the Theme Editor, such as Brand > Primary Color 1, any .liquid files in the assets folder that rely on the setting will output
{{ shop.brand.colors.primary[0].background }}
instead of the css color.Expected Behaviour
If the file theme/assets/test.css.liquid has the following
it should become
Actual
Instead it does this
Steps to Replicate
{{ shop.brand.colors.primary[0].background }}
instead of the css color, such as #112233The text was updated successfully, but these errors were encountered: