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.
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?