refactor: normalize custom data attributes

This commit is contained in:
Erzbir
2026-08-17 01:36:51 +08:00
parent 52acc4636a
commit b6e84de616
10 changed files with 54 additions and 63 deletions
+2 -2
View File
@@ -27,7 +27,7 @@
--color-theme-scrollbar: color-mix(in srgb, var(--color-theme-foreground) 45%, var(--color-theme-background)) transparent;
}
html[theme-color-scheme] {
html[data-theme-color-scheme] {
--color-theme-tag: var(--color-theme-accent);
--color-theme-title: var(--color-theme-accent);
--color-theme-meta: var(--color-theme-foreground);
@@ -122,7 +122,7 @@ $color-schemes: (
);
@each $scheme-name, $scheme-colors in $color-schemes {
html[theme-color-scheme="#{$scheme-name}"] {
html[data-theme-color-scheme="#{$scheme-name}"] {
@each $role, $color in $scheme-colors {
--color-theme-#{$role}: #{$color};
}