Generating styles by script