Skip to main content

It appears that when you change a variable mode e.g. from light/dark mode it does not trigger a selection or document event. Is there an event that you can hook into on a variable mode change that may not yet be documented.

I just tested, the documentchange event fires when the variable mode changes. This event does not fire only when you switch from the first mode to auto and vice versa.


This is because the PROPERTY_CHANGE event type does not yet support the explicitVariableModes property.


Thank you @tank666 I see that it was not firing because I didn’t have any colors in my test document that changed. Never start coding after 11pm 🙂


Reply