FEAT: add appTheme mixin on less files

This commit is contained in:
Joaquin Pereyra 2025-07-03 17:48:22 -03:00
parent cae659b9a5
commit 3d197a4b0d
8 changed files with 472 additions and 449 deletions

View file

@ -0,0 +1,18 @@
/**
* 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) {
.themed {
&.theme-dark .application.sheet.dh-style,
&.theme-dark.application.sheet.dh-style {
@darkRules();
}
&.theme-light .application.sheet.dh-style,
&.theme-light.application.sheet.dh-style {
@lightRules();
}
}
}