Question about SCSS map

How to make loop with
@each
or some think else or join to
foo-bar
=>
bar-foo:123
with map-get.
$test:(
    foo:(
        bar: foo1,
        foo-bar: (
            bar-foo: 123,
        ),
    ),
);

:root {
    --t : #{map-get(map-get($test,foo),bar)}
}
Was this page helpful?