Use CSS Variable instead of Python Script

I see, is there any native way to accomplish similar thing? I dont opose to use the SimulationAids module, but would need to consult with customers if they apporve.