Showcase use of palette-of function

The #{...} syntax is required only because the use cases are CSS var definitions. In other cases a simple palette-of(keyword, theme) would suffice.
This commit is contained in:
Matthias Metelka 2022-08-31 21:21:54 +02:00
parent cd726049a1
commit ac928225f9
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
@use "sass/card-counts";
:root {
--focus-color: color(button-focus);
--focus-color: #{palette-of(button-focus)};
.isMac {
--focus-color: rgba(0 103 244 / 0.247);

View file

@ -2,7 +2,7 @@
@use "fusion-vars";
:root {
--focus-color: color(button-focus);
--focus-color: #{palette-of(button-focus)};
.isMac {
--focus-color: rgba(0 103 244 / 0.247);