files for color-lists

Flesh out your ideas for new or improved Inkscape features before submitting a request.
BlueCatShip
Posts: 15
Joined: Tue Apr 12, 2011 7:05 am
Location: Houston, TX USA

files for color-lists

Postby BlueCatShip » Sat Apr 23, 2011 3:29 am

One thing I have always wished for was a good, simple way to export the list of colors used in a format that was friendly to the graphic designer and the web designer. RGB in hex and decimal and perhaps percent, HSV or HSB or HSL (I just wish there were agreement on the definition and terms and syntax) because HSV/HSB/HSL is very useful for color harmonies and color palettes, IMHO. CMYK also, because a graphic designer and a printer need those. -- How much easier it would be for workflow to have a drawing's colors stated in a text file for reference, something that could be shared by the CSS file and thus the web pages, shared throughout the project. -- Including the color names. How much nicer it would be, in my opinion, to refer in the .css to something like MegaCorp:Orange (see, there's a domain identifier and a color name there).

This would be on a per-project or per-drawing-file basis, an external file that could be shared by a web or graphic design project, much like a separate (external) .css file may be used.

Actually, I wish CSS could offer this. IMHO, it would be a boon to future CSS and SVG.

I envision that as something like:

Code: Select all

// note -pseudocode- prefix;
    // "big-project" is a domain specifier to delimit scope of usage.
    // Thus, used elsewhere as: big-project:Orange, big-project:Brown, and so on.
    // The designer may assign whatever color-list identifier (name) and color-def name he/she wishes.
    // By default, the CSS3 and SVG 1.1 named colors would have a prefix of css3, but that would be ~assumed~ (not required to use the css3:color-name prefix) for backward compatibility.
    // CMYK color model would be highly useful for in-print design work, but is not in CSS3 or SVG 1.1; It has been included here with a "-" prefix.

-pseudocode-color-list("big-project") {
    -pseduocode-color-def: #ff8000 rgb( 255, 128,   0 ) hsl(  30, 100,  50 ) -pseudocode-cmyk(   0,  50, 100,    0 ) "Orange";
    -pseduocode-color-def: #804000 rgb( 128,  64,   0 ) hsl(  30, 100,  25 ) -pseudocode-cmyk(   0,  50, 100,  50 ) "Brown";
    // lots of other named colors to suit the needs of the given project;
} // -pseudocode-color-list("big-project");


Thereafter, a designer could refer within the CSS or SVG to that color by name, such as:

Code: Select all

.foo {
    background: transparent;
    color: big-project:Orange;
}


Admittedly, that may seem like a trivial usage. But remember, your project might have tens or hundreds of uses of big-project:Orange for various reasons. Add in a whole palette of colors for particular, sensible, meaningful uses within a site full of pages and images (in SVG, PNG, and so on) and suddenly, the ability to refer to big-project:Orange by a human-friendly and human-meaningful name is not so trivial.

I suppose a way to alias a color definition to one or more alias names would be useful too. Imagine uses like big-project:highlight-back, big-project:highlight-fore, big-project:sidebar-stop-3, big-project:main-accent, and so on;

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: files for color-lists

Postby brynn » Sun May 08, 2011 4:46 am

Well, most of your discussion is beyond my current understanding. But from what I understand of the first paragraph, I think it's a great idea! And I would also add that having at least some of this info available from the Inkscape window would be helpful as well. A list of all the colors used in an image, in the various forms (hex, code, name). Just because it can be frustrating to have to select each color (or pass eyedrop tool over it) to retrieve its hex, code or name, for use in another project.

BlueCatShip
Posts: 15
Joined: Tue Apr 12, 2011 7:05 am
Location: Houston, TX USA

Re: files for color-lists

Postby BlueCatShip » Tue May 10, 2011 10:13 am

I realized after posting that, two things:

First, I need to look up how to submit the idea for user named colors to the CSS workgroup committee as a proposal.

Second, I'm used to Freehand and trying to learn Illustrator's (to me) frustrating interface. If Inkscape could have a way to view and save/print a report of colors used, such as to help sync projects' color schemes, as well as to inspect colors used in a given element or object, it would be a real boon. For instance, the colors used in a gradient or a complex graphic style.

BlueCatShip
Posts: 15
Joined: Tue Apr 12, 2011 7:05 am
Location: Houston, TX USA

Re: files for color-lists

Postby BlueCatShip » Sun Oct 14, 2012 9:11 am

I haven't forgotten about this color-list user-defined color names idea. Life got out of whack, but may finally be settling down some. I've put the idea on my to do list. -- My thought is, this could be a useful feature for SVG and CSS in some future versions. I just need to write up the idea and present it. No knowing if it'll be accepted, though. When I do, I'll post it online so people here can read it also.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: files for color-lists

Postby v1nce » Mon Oct 15, 2012 9:58 am

If you want to name colors have a look at less http://lesscss.org/


Return to “Inkscape Ideas”