daggerheart/styles/less/utils/mixin.less
joaquinpereyra98 064011fffa
Bug/251-light-theme-character-sheet (#257)
* FEAT: add appTheme mixin on less files

* FIX: bug, themed class only is added to sheet when have a theme what ovveride the world theme

* new css

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-04 13:17:56 +02:00

22 lines
705 B
Text

/**
* Applies theme-specific styles.
* @param {Rules} @darkRules - Styles to apply when `.theme-dark` is present
* @param {Rules} @lightRules - Styles to apply when `.theme-light` is present
*/
.appTheme(@darkRules, @lightRules) {
// Dark theme selectors
.themed.theme-dark .application.sheet.dh-style,
.themed.theme-dark.application.sheet.dh-style,
body.theme-dark .application,
body.theme-dark.application {
@darkRules();
}
// Light theme selectors
.themed.theme-light .application.sheet.dh-style,
.themed.theme-light.application.sheet.dh-style,
body.theme-light .application,
body.theme-light.application {
@lightRules();
}
}