Issue-3895: Make variables root configurable

This commit is contained in:
gabor.kormany
2024-09-16 16:36:28 +02:00
parent 9a1b620195
commit 646d520b62
9 changed files with 14 additions and 8 deletions

View File

@@ -6,6 +6,8 @@
@use "initial-variables" as iv;
@use "functions" as fn;
$variables-host: iv.$variables-host;
@function buildVarName($name, $prefix: "", $suffix: "") {
@return "--#{iv.$cssvars-prefix}#{$prefix}#{$name}#{$suffix}";
}
@@ -419,7 +421,7 @@
@mixin system-theme($name) {
@media (prefers-color-scheme: #{$name}) {
:root {
#{$variables-host} {
@content;
}
}