League-of-Foundry-Developers / foundryvtt-devMode

A module with some tools to help enable Foundry VTT package developers.
MIT License
12 stars 15 forks source link

Add a devmode class to the document body. #11

Open zeel01 opened 3 years ago

zeel01 commented 3 years ago

Is your feature request related to a problem? Please describe. In some cases it's nice to have slightly different CSS styles when developing vs. production.

Describe the solution you'd like Add a new class devmode to a high level element such as <body> which can then be used to conditionally apply styles through the application.

Describe alternatives you've considered Adding a setting/flag for this inside my own module.

Additional context Great for hiding UI elements that are used for debugging/dev purposes. CSS to hide stuff is easier than a bunch of conditions in your JS/HBS.