-
Notifications
You must be signed in to change notification settings - Fork 812
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
Proposal: Extending color to be more robust #938
Comments
Thanks for raising the issue. It's a complex topic but I do think we can do better than "Text" :) Improvements could also be interesting for internet-of-things scenarios like light bulbs, maybe... |
Indeed! |
why not simply add PropertyValue to the range of color? martin hepp
|
1 Richard Wallis On 22 December 2015 at 21:43, Martin Hepp [email protected] wrote:
|
@mfhepp You mean instead of the 2nd-level |
The other huge issue facing color is that there is no one unique ID to reference all colors globally. Each brand will have their own definitions or vocabulary, but those are specific to an individual org. Even combined, there aren't enough:
There are literally millions and millions of colors—more if you start going into alpha channels. |
One thought is to allow brands to specify the names of the colors used in their org palettes, referenced by a master company palette. This means that there would be no global ID for a given color other than the Let's use the ACME company, and its Rocketskates brand as an example. Brand schema {
"@context": "https://schemas.acme.com",
"@type": "brand",
"name": "ACME",
"fullName": "ACME, Inc.",
"isPartOf": "https://schemas.acme.com/design/brands",
"version": "0.1.0",
"colorPalette": "https://schemas.acme.com/design/brands/rocketskates/colors",
"logos": "https://schemas.acme.com/design/brands/rocketskates/logos"
} Color schema "parentPalette": "https://schemas.acme.com/design/brands/rocketskates/colors", ColorPalette schema {
"@context": "https://schemas.acme.com",
"@type": "ColorPalette",
"brand": "ACME",
"version": "0.1.0",
"rootPalette": "https://schemas.acme.com/design/colors",
// notice the differing, higher-level URL
"values": {
["#162738", "#FC353F", "#7ACC10", "#4682E0", "#E8E8E8"]
} |
The root-palette schema defines the colour, not how it is used, so needs to be specific enough to do that job. |
Yes, agreed. |
What is the process of moving this forward? |
Another great example, but showing relational data. |
Yes an excellent example to try marking up with what you are proposing. As for moving this forward, the best thing to do would be to create:
As you demonstrate, beyond the basic name, sameAs, url, description, If we then get enlist agreement those definitions and examples could then |
Thanks @RichardWallis! |
If you want to work on, and potentially share before proposing, your own
|
Whoa. Awesome! Thank you! |
Would it make sense to sync/adopt/clone the gs1 colorCode definition: |
That would work if we want to delegate the definition of the attributes of One property identifying an authoritative list of colours colorCodeList - If we wanted to optionally describe the attributes of the colour we could If this makes sense, the creation of a (ColorDetail ?) type which could be |
Just noticed that @duckduckgo has this in their search results already. (see ref. above, as well) |
cc: @Qix- @jonathantneal @MoOx |
I, too, wished for a better schema to describe colors at Wikidata, but the converters linked to above make it look like there were simple 1:1 relations between different color spaces and systems despite varying gamuts, granularity and more fundamental differences (e.g. additive vs. subtractive). |
If there is a Color type, there should also be a ColorSpace type with a colorProfile attribute to link to an ICC profile. |
Agreed! |
@LeaVerou TIL SVG has color profile data: https://www.w3.org/TR/2013/WD-SVG2-20130409/color.html#ColorProfileDescriptions |
I just saw that Not exactly namespacing, and there's nothing stopping us from doing this now. |
Here's a case where this would be incredibly useful. |
This issue is being tagged as Stale due to inactivity. |
https://www.wikidata.org/wiki/Q1075
https://schema.org/color
Example with data taken from: http://www.colorhexa.com/6495ed
A Color is just a set of name/value pairs. All mathematically defined.
Discussion points
SwiftUIColorRGB
)The text was updated successfully, but these errors were encountered: