code refactor: move color-parsing method to its own class, separate Element#apply_styles out into separate methods for each attribute