-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new property to support color swatches #3423
Comments
In the platform I work on a color swatch is just the HTML color code. like ff0000. Would there be any way to support that? |
We could look into that as part of the color attribute. One of the things to consider here is that we often see apparel colors described as combinations, for example "black white colorblock", which cannot be described with a single color code. |
Would an array of the colors involved make sense? How about having color support better parsing of the text content to recognise hex codes, URLs and finally a plain text description. Or even have extra types for the color property to formally indicate an image or hex code or other another color system for it? |
Good ideas, although I also think representing colors is probably a different (and complex!) topic for which we should maybe revive #938? For example, we could follow standard color code lists (see for example gs1:ColourCodeListCode, which seems to be a common industry practice. |
This issue is being nudged due to inactivity. |
This was added to release 25.0 |
Context - This is a proposal from Google based on our experience consuming schema.org Product markup and working with similar data from online merchants. If it were accepted, it would make it easier for us and others to understand the colors of products sold online.
Proposal - Schema.org supports the specification of product colors through property color of type Text. A disadvantage of only allowing a free-form textual description of a color is that it provides a lot of room for interpretation. For example "Charcoal" and "Ash" are both shades of the color Gray, but it is hard for a user to understand the difference just based on the textual description. Many popular apparel websites therefore show a color swatch image together with the color name to allow the user to visualize the color of a product variant.
Given the common use of color swatches in the industry we propose to add a new colorSwatch property as sub-property of image with values of type URL or ImageObject.
The text was updated successfully, but these errors were encountered: