Apply updated styles automatically after saving variables