Defining custom rules to style features