extracted the style variables into locals