Can I use SCSS functions in my Figma plugin?

Hello community,
I’m new to writing plugins, so I hope you all can help. I would like to utilize the function feature in SCSS to do some color mixing and output these values as “swatches”. Do you know if this is possible? How I would do it or examples? See: https://codepen.io/robberrones/pen/gOeeJrd?editors=1111 for example of what I am trying to do.
Thanks.