Get color in variables.css in .ts file

I want to get the colors in …/theme/variables.css, since i want to set the status bar color by code in my .ts file, is there any way can do this?