Create color or style selection widgets that provide a visual preview of the list of allowed values (instead of a list of color/style names).
Style Selector includes two custom field types (Color List and Style List) for fieldable entities, as well as a Form API element for use in custom forms.