2022.2

Table Of Contents
Applyingacolor
Colorscanbeappliedtoelementsinyourtemplateslocallyorthroughstylesheets.
Using colors in style sheets
Itishighlyrecommendedtousestylesheetsintemplatesrightfromthestart.Evenmoresoifthecom-
municationsaregoingtobeoutputtodifferentoutputchannels,oriftheyconsistofdifferentsections
(forexample,acoveringletterfollowedbyapolicy).UsingCSSwithtemplatesallowsaconsistentlook
andfeeltobeapplied.Astylesheetcanchangethelookofmultipleelements,makingitunnecessaryto
formateachandeveryelementinthetemplate,timeandagain,whenthecompany'slayoutpref-
erenceschange.See"StylingtemplateswithCSSfiles"onpage261.
Instylesheets,youcancoloreverytypeofelementthathasaCSScolorproperty,suchascolor,back-
ground-colororborder-color.Usethecolor'snameasitisdefinedintheDesigner,oranylegalcolor
value:avalidcolorname(seecolornamesonw3schools),hexadecimalcolorcode(seew3school's
colorpicker),RGBcolorvalue,forexamplergb(216,255,170)orCMYKcolorvalue,forexamplecmyk
(15%,0%,33%,0%).
ThefollowingCSSruleappliesMyColor,whichisacustomcolor(see"Definingcolors,spotcolorsand
tints"onpage288),tothetextofallparagraphs:
p {
color: MyColor;
}
CMYK colors
Youmayusethecustomcmyk()CSSfunctiontoassignaCMYKcolortoanyelement,oraseriesofele-
ments.ThefollowingexampleassignsasteelbluecolorasabackgroundforallH1elements:
h1 {
background-color: cmyk(33%, 17%, 0%, 20%);
}
Coloring text
Insteadofusingastylesheet(seeabove),youcancolortextlocally:
1. SelecttextoranHTMLelementthatcontainstext(see"Selectinganelement"onpage174).
2. Onthemenu,selectFormat > Color,orclicktheblacktriangleontheText colortoolbarbutton.
3. Selectoneofthecolorsinthelist,orclickOthertosetallaspectsofthetextstyle,includingtext
colorand/orbackgroundcolor.
Page 290