style: underline links in two-color schemes

This commit is contained in:
Erzbir
2026-07-15 03:47:29 +08:00
parent a87cc72124
commit e7074dea62
4 changed files with 9 additions and 0 deletions
+6
View File
@@ -1,3 +1,5 @@
@use "sass:map";
:root {
--color-theme-background: #f4f4f4;
--color-theme-foreground: #3e3e3e;
@@ -113,5 +115,9 @@ $color-schemes: (
@each $role, $color in $scheme-colors {
--color-theme-#{$role}: #{$color};
}
@if map.get($scheme-colors, "foreground") == map.get($scheme-colors, "accent") {
--text-decoration-theme-post-link: underline;
}
}
}