We help IT Professionals succeed at work.

CSS:  define color swatch names?

willsherwood
willsherwood asked
on
In graphic design tools, there are not only character & paragraph styles, but ink swatch definitions to use a certain color in many contexts.

I'm wondering if there's an equivalent to define a color and then be able to use it in CSS rule definitions wherever  (text, background, etc.) colors are to be specified, rather than having to paste in a #literal.

thanks
Comment
Watch Question

Dave BaldwinFixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014

Commented:
Here are the predefined color names: http://www.w3schools.com/cssref/css_colornames.asp

Author

Commented:
thanks - i'm familiar with color names,
sorry i didn't clarify that i'm looking to define CUSTOM colors
Fixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014
Commented:
In that case, your server side language or development tool would have to support that.  CSS doesn't have any programming functions.  It is strictly style definitions.

Author

Commented:
thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.