Defining a style as a resource