{"id":134,"date":"2001-03-14T19:23:46","date_gmt":"2001-03-15T00:23:46","guid":{"rendered":"http:\/\/sovogo.com\/2001\/03\/14\/css-color-name-proposals\/"},"modified":"2001-03-14T19:23:46","modified_gmt":"2001-03-15T00:23:46","slug":"css-color-name-proposals","status":"publish","type":"post","link":"https:\/\/dylanschiemann.com\/?p=134","title":{"rendered":"CSS Color name proposals"},"content":{"rendered":"<p>A summary of named color proposals spurred by the debate over the CSS 3 color module inclusion if X11 Named Colors.  Please post feedback and comments to the <a href=\"mailto:www-style@w3.org\">www-style@w3.org<\/a><\/p>\n<h3>Proposal: extensible color name profiles<\/h3>\n<p>Originally suggested to CSS Working group mailing list at <a href=\"http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2002May\/0203.html\">http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2002May\/0203.html<\/a> by Dylan Schiemann and influenced by <a href=\"http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2002May\/0144.html\">http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2002May\/0144.html<\/a><\/p>\n<p>CSS2 has the following:<br \/>\n\t<code>color: keyword; (inherit, transparent, systemColors, etc.)<br \/>\n\tcolor: namedColor;<br \/>\n\tcolor: #ff0;<br \/>\n\tcolor: #ffff00;<br \/>\n\tcolor: rgb(255,255,0);<br \/>\n\tcolor: rgb(100%,100%,0%);<br \/>\n\t<\/code><br \/>\n\t<br \/>\n\tCSS3 proposes adding:<br \/>\n\t<code>color: x11NamedColor;<br \/>\n\tcolor: attr(X,color);<br \/>\n\tcolor: rgba(255,255,0,1);<br \/>\n\tcolor: hsl(%,%,%);<br \/>\n\tcolor: hsla(%,%,%,#);<br \/>\n\t<\/code><\/p>\n<p>If css 3 is adding color-profiles, why not consider adding color-name-profiles, such as:<br \/>\n\t\t<code>color: profile(profileName,colorValues,profileURI)<\/code>\n\t<\/p>\n<p>with the profileURL optional, containing a translation table to sRGB, or a set of functions (one for each of several commonly used programming languages).<\/p>\n<p>Thus, all could be expressed as:<\/p>\n<p>\t<code>color: profile(keyword,inherit);<br \/>\n\tcolor: profile(html4,blue,url());<br \/>\n\tcolor: profile(rgbHex,#ff0);<br \/>\n\tcolor: profile(rgbHex,#ffff00);<br \/>\n\tcolor: profile(rgb,255,255,0);<br \/>\n\tcolor: profile(rgb,100%,100%,0%);<br \/>\n\tcolor: profile(x11,orange,url());<br \/>\n\tcolor: profile(rgba,100%,100%,0%,1,url());<br \/>\n\tcolor: profile(hsl,100%,100%,0%,1,url());<br \/>\n\tcolor: profile(hsla,100%,100%,0%,1,url());<br \/>\n\tcolor: profile(cns,orange,very dark,vivid,url());<br \/>\n\tcolor: profile(crayola,electric lime,url());<br \/>\n\tcolor: profile(com.dylanschiemann.www.customColorNames,Lincoln Log,url());<br \/>\n\t<\/code>\n\t<\/p>\n<p>Some of these are of course ridiculously longer than using the shorter syntax.<\/p>\n<p>Browsers could be required to be able to convert colors using a lookup table for named colors, or read the method for that browsers language of choice to do rgb conversions.<\/p>\n<p>I would think this should be optional, but would be very useful for using a standard css syntax for authoring programs.  For example, a Dreamweaver like program could offer custom color palettes from a company such as Crayola, create a color picker which would store the colors in this new css syntax, and then offer an rgb export conversion if most browsers did not support this optional color name profile.<\/p>\n<h3>Proposal: CNS Colors<\/h3>\n<p>Refer to CSS Working group thread at <a href=\"http:\/\/lists.w3.org\/Archives\/Public\/www-style\/1996Feb\/0006.html\">http:\/\/lists.w3.org\/Archives\/Public\/www-style\/1996Feb\/0006.html<\/a> for Proposal by Chris Lilley.<\/p>\n<h3>Proposal: HSL Adjectives<\/h3>\n<p>Refer to CSS Working group thread at <a href=\"http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2001Mar\/0098.html\">http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2001Mar\/0098.html<\/a> for Proposal by Dylan Schiemann.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A summary of named color proposals spurred by the debate over the CSS 3 color module inclusion if X11 Named Colors. Please post feedback and comments to the www-style@w3.org Proposal: extensible color name profiles Originally suggested to CSS Working group mailing list at http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2002May\/0203.html by Dylan Schiemann and influenced by http:\/\/lists.w3.org\/Archives\/Public\/www-style\/2002May\/0144.html CSS2 has the following: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,1],"tags":[],"_links":{"self":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/posts\/134"}],"collection":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134"}],"version-history":[{"count":0,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions"}],"wp:attachment":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}