Non CSS Hex values for colors
under review
rachel wesley
Ability to take arbitrary strings in order to support dynamic templating or custom post processing. For example, HandleBars Tokens like {{myColor}} or a css variable like var(--brandColor)
The use case is injecting some "merge" tag like values that impact companies with multiple brands associated.
Another option would be the ability to custom extend the Color control. Based on the docs/current samples for the v2 plugin API I am not seeing a clear way to do this.
M
Marina Kryvenets
Hello! Thank you for your feedback. Could you please clarify the use case you are referring to? I'm having a bit of trouble understanding it. Specifically, could you elaborate on which blocks or elements you would like to use dynamic color values for (e.g., text, background, buttons, etc.)?
Additionally, how should this feature appear on the UI and in the code editor? Should these dynamic colors remain in the email upon export, or should they be transformed into final values?
We appreciate your insights!
rachel wesley
Marina Kryvenets yea I want to use the color input in all areas to use potentially non CSS Hexcode values. I tried to leverage the brandColorPalette config for values like {{brandColor}} or var(--brandPrimary) but the inputs don't like that and you can't set those values manually either (they either become black, transparent or fallback to prev color)
in the UI ideally would just leverage the existing color input, but respect the value i click from a brand color or type. While not valid HTML for email, we do post processing when adding our merge tags that would replace the value with a color so it would be valid.
My company is associated with multiple brands so we need dynamic brand colors and don't want to have to build every template re-skinned per brand when its the same content otherwise
M
Marina Kryvenets
Rachel Wesley, thank you for the clarification. I passed your request to our team for further investigation. Once I receive any update, I'll notify you here. We appreciate your participation.
M
Marina Kryvenets
under review