SUGGESTION: Use var() in builder color fields

I know it doesn’t work now (I double-checked before writing this post), but would it be hard to let a user put their own color variable into a color field—like var(--primary)? I’ve got a several layers of color variables defined on my layouts that I swap out between certain pages and it would really help my workflow if I could swap in and out by calling the variables directly in the builder. In fact, I could go from managing three product layouts down to one!

2 Likes

Hi @bobbybosler,

Great idea here. We’ll keep this in mind. There is a way you can do this in the current release if you circumvent the color picker.

  • Under preferences, enable the dev console
  • Inspect your element while the Dev Console is on the Inspector tab
  • Look for the text color field and update it to var(--primary)

The color picker will fallback to showing transparent, but as long as you don’t change the value using the picker it will keep your var intact.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.