Shopify themes, liquid, logos, and UX
I had a snippet in my code:
style="background-color: {{ collection.metafields.custom_fields.color | color_darken: 4 }};"
that had been working perfectly up until yesterday evening. Now, I only see a color if I remove "color_darken: 4". I've tested and color_darken still works, but only so long as I only use it with a hex string, and not a variable that evaluates to a hex string.
Has anyone else noticed this change in functionality? Or is it a bug that I might be able to fix?
{% capture my_color %}{{ product.metafields.test.accent_colour }}{% endcapture %}
{% assign my_darkened_color %}{{my_color | color_darken: 4 }}{% endcapture %}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025