Access Theme Color Values With Sass

Share this video with your friends

Send Tweet

Manage the color palette used in your stylesheets by creating a map of variables and a function to access the values by key. This allows you to update the colors in one location to re-theme your application and eliminate manual find and replace.

Andrey Shedko
~ 3 years ago

What is the advantage of using function here instead of just importing variables like @use 'color.palette' as color, and use it as color.$white?