Class FoundryStyles
Index
Constructors
Accessors
Constructors
constructor
- new FoundryStyles(): FoundryStyles
Returns FoundryStyles
Accessors
Static
core
- get core(): StyleSheetResolve
Returns StyleSheetResolve
Core parsed styles.
Static
ext
- get ext(): StyleSheetResolve
Returns StyleSheetResolve
Core parsed styles with extended game system / module overrides.
Provides runtime-parsed styles for the core Foundry stylesheet and an extended merged version with all game system and module overrides. Both, FoundryStyles.core and FoundryStyles.ext return an instance of #runtime/util/dom/style!StyleSheetResolve that has a reduced amount of parsed style information relevant to configuring essential styling.
StyleSheetResolve
allows access to discrete CSS selectors and associated properties including resolving CSS variables across selectors / elements.FoundryStyles
is used internally to TRL to construct the flattened CSS variables generated at runtime to match the platform theming. The core Foundry styles are not flat with many CSS variables having extended element scoping.The following CSS layers are parsed from Foundry core styles: