FEAT: add appTheme mixin on less files (#256)

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
This commit is contained in:
joaquinpereyra98 2025-07-03 18:26:03 -03:00 committed by GitHub
parent cae659b9a5
commit 122621a57a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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();
}
}
}