Pass in Color Variable!

Passing in a color variable to modify an element would be incredibly useful.

If we could set a color (or string #FFFFFF) variable like the current number/booleans via the JS API, that would be amazing!!!

The recommended approach I’ve seen is so cumbersome:

  1. Create a new layer in a state machine

  2. Create a timeline per color

  3. Create a transition to and back from the default / router

  4. Creation a condition on every transition tied to a variable

That is wildly roundabout for a use-case that is very common across products.

Beyond that, this approach doesn’t allow an arbitrary color (e.g. a color set by a user to customize an avatar). Also common.