MajorVictory / Whetstone

A module designed to make applying and customizing themes easier for users and theme authors.
MIT License
10 stars 0 forks source link

Global Overrides not generating variants on initial load #9

Closed akrigline closed 3 years ago

akrigline commented 3 years ago

Testing out the global variables. When I refresh my foundry instance, only the main overrides are injected, no variations. Only when I go into the Module Settings > Global Overrides dialog do they appear to get injected.

On Load, this is what the style attribute looks like. image

MajorVictory commented 3 years ago

The initial values are supposed to be included in the Whetstone-core.css file. Looks like I forgot to update it. Variables will only appear if they have changed from their defaults, that behavior is intended.

akrigline commented 3 years ago

In this case, I changed these globals, and thus expected both them and their variants to be loaded on page reload. But only the changed values themselves were loaded, not the variants.

MajorVictory commented 3 years ago

This will be fixed in v1.1.2