Forgive me if this question sounds trivial, but I am curious if it is achievable to generate a series of functions using a loop within a map in SCSS.
The code snippet below unfortunately does not yield the desired outcome, however, it illustrates what I am attempting to achieve.
$colorvars : (
red : #cc0000,
blue : #1e8cea,
green : #27a249,
teal : #41bdbb,
purple : #5c369e,
yellow : #ecd340
)
$colors: (
@each $key, $value in $colorsvars {
$key : color-palette($value)
}
)
The color-palette($value)
function is what I am referring to.
For additional context, feel free to visit https://codepen.io/umbriel/pen/LLvPPK?editors=1100.
Your assistance is greatly appreciated!