Sass Output variables with function or mixin

With SASS is it possible to create a function where you pass a color that is then passed through a series of darken() and lighten() functions and then output a series of variables.

For instance i want to pass “$primary-brand-color” and get:

$primary-brand-color-dark
$primary-brand-color-light

I have looked around but with no luck.

Hi,

SASS is not my thing but does this page answer your question?