mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
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:
parent
cd726049a1
commit
ac928225f9
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue