Colors
Several Designer layout elements support the color
property. The color value can be a valid:
- HTML or CSS color like
aliceBlue
orred
, - hexadecimal color such as
#FF0080
, - RGB color with a RGB value, for example
rgb(1,0,0)
, - CMYK - Specified with C, M, Y, and K color values, or
- a grayscale color like
gray(0.5)
.
When converting an RGB font, Designer only supports values between 0 and 1. To convert, simply divide by 255 for all three values. For example, rgb(255,0,0), or red, becomes rgb(1,0,0).
Incorrect color values result in an error message.
Designer supports expressions in an element's color
or textColor
property. For example if a Symbol element's color property had the following expression IF(LTE(num,0),"red",LT(num,10),"yellow", "green")
, then the element's color would be red, yellow, or green, depending on the value in the num
field.
Color Values
Designer supports the following named color values.
The color values are case sensitive. Be certain to begin the color name with a lowercase letter.
- aliceBlue
- antiqueWhite
- aqua
- aquamarine
- azure
- blue
- beige
- bisque
- black
- blanchedAlmond
- blue
- blueViolet
- brown
- burlyWood
- cadetBlue
- chartreuse
- chocolate
- coral
- cornflowerBlue
- cornsilk
- crimson
- cyan
- darkBlue
- darkCyan
- darkGoldenRod
- darkGray
- darkGreen
- darkKhaki
- darkMagenta
- darkOliveGreen
- darkOrange
- darkOrchid
- darkRed
- darkSalmon
- darkSeaGreen
- darkSlateBlue
- darkSlateGray
- darkTurquoise
- darkViolet
- deepPink
- deepSkyBlue
- dimGray
- dodgerBlue
- feldspar
- fireBrick
- floralWhite
- forestGreen
- fuchsia
- green
- gainsboro
- ghostWhite
- gold
- goldenRod
- gray
- green
- greenYellow
- honeyDew
- hotPink
- indianRed
- indigo
- ivory
- khaki
- lavender
- lavenderBlush
- lawnGreen
- lemonChiffon
- lightBlue
- lightCoral
- lightCyan
- lightGoldenRodYellow
- lightGreen
- lightGrey
- lightPink
- lightSalmon
- lightSeaGreen
- lightSkyBlue
- lightSlateBlue
- lightSlateGray
- lightSteelBlue
- lightYellow
- lime
- limeGreen
- linen
- magenta
- maroon
- mediumAquaMarine
- mediumBlue
- mediumOrchid
- mediumPurple
- mediumSeaGreen
- mediumSlateBlue
- mediumSpringGreen
- mediumTurquoise
- mediumVioletRed
- midnightBlue
- mintCream
- mistyRose
- moccasin
- navajoWhite
- navy
- oldLace
- olive
- oliveDrab
- orange
- orangeRed
- orchid
- paleGoldenRod
- paleGreen
- paleTurquoise
- paleVioletRed
- papayaWhip
- peachPuff
- peru
- pink
- plum
- powderBlue
- purple
- ped
- posyBrown
- royalBlue
- saddleBrown
- salmon
- sandyBrown
- seaGreen
- seaShell
- sienna
- silver
- skyBlue
- slateBlue
- slateGray
- snow
- springGreen
- steelBlue
- tan
- teal
- thistle
- tomato
- turquoise
- violet
- violetRed
- wheat
- white
- whiteSmoke
- yellow
- yellowGreen