Is there a possible way to share variables from typescript to scss

i wanna send variables to scss.
how can i do that?

for example at first i get colors from database than i wanna push it to scss …