templates:styles
AJAX
ajax:delayedload ajax:event ajax:navigation ajax:region
Data
data:calendar data:column data:eventrepeater data:postrepeater data:productbrandrepeater data:productcategoryrepeater data:productrepeater data:repeater data:table data:template data:tree
Forms
forms:address forms:captcha forms:checkbox forms:checkboxgroup forms:codeeditor forms:combobox forms:datepicker forms:dialogbox forms:editbox forms:fileupload forms:form forms:hidden forms:money forms:officeuseregion forms:option forms:password forms:paymentmethod forms:radiobutton forms:radiobuttongroup forms:row forms:searchbox forms:signature forms:slider forms:spinbox forms:submitbutton forms:submitimage forms:submitlink forms:successcontent forms:textarea forms:timepicker
Layout
layout:gallery layout:productgallery layout:rotator layout:stepper layout:stepperpanel layout:tablist layout:tablistitem
Logic
logic:dependency logic:else logic:if logic:include logic:parse logic:variable
Navigation
navigation:breadcrumbs navigation:item navigation:primary navigation:secondary
Personalisation
personalisation:firstname personalisation:fullname personalisation:lastname personalisation:other
Standard
standard:audio standard:embed standard:icon standard:image standard:link standard:script standard:tooltip standard:video
Templates
templates:button templates:card templates:column templates:fancybox templates:faq templates:flexlayout templates:header templates:row templates:section templates:styles
ATTRIBUTES
EXAMPLES
templates:teammember templates:testimonial
Regions
regions:content regions:contentadditional regions:security regions:togglable
Third Party
thirdparty:googlemap thirdparty:googlemapmarker

<templates:styles />

Adds a 'Styles' button to the left panel of the visual editor, allowing admin users to configure styles associated with fonts, links, forms and sections.

Attributes

aColor
string
A Color

Eg: #1075a2
aHoverColor
string
A Hover Text Decoration

Eg: #1075a2
aHoverTextDecoration
string
A Hover Text Decoration

Eg: none
aTextDecoration
string
A Text Decoration

Eg: none
bodyColor
string
Body Color

Eg: #333333
bodyFontFamily
string
Body Font Family

Eg: Open Sans
bodyFontLibrary
string
Body Font Library

Eg: google
bodyFontSize
string
Body Font Size

Eg: 16px
bodyLineHeight
string
Body Line Height

Eg: 1.5em
bodyMarginBottom
string
H1 Margin Bottom

Eg: .5rem
bodyMarginTop
string
Body Margin Top

Eg: 0px
boxSizingBorderBox
bool
Applies box-sizing: border-box globally
h1Color
string
H1 Color

Eg: #505050
h1FontFamily
string
H1 Font Family

Eg: Open Sans
h1FontLibrary
string
H1 Font Library

Eg: google
h1FontSize
string
H1 Font Size

Eg: 40px
h1FontWeight
string
H1 Font Weight

Eg: 400
h1LineHeight
string
H1 Line Height

Eg: 1.2em
h1MarginBottom
string
H1 Margin Bottom

Eg: .5rem
h1MarginTop
string
H1 Margin Top

Eg: 0px
h2Color
string
H2 Font Color

Eg: #000000
h2FontFamily
string
H2 Font Family

Eg: Open Sans
h2FontLibrary
string
H2 Font Library

Eg: google
h2FontSize
string
H2 Font Size

Eg: 32px
h2FontWeight
string
H2 Font Weight

Eg: 400
h2LineHeight
string
H2 Line Height

Eg: 1.2em
h2MarginBottom
string
H2 Margin Bottom

Eg: .5rem
h2MarginTop
string
H2 Margin Top

Eg: 0px
h3Color
string
H3 Font Color

Eg: #000000
h3FontFamily
string
H3 Font Family

Eg: Open Sans
h3FontLibrary
string
H3 Font Library

Eg: google
h3FontSize
string
H3 Font Size

Eg: 28px
h3FontWeight
string
H3 Font Weight

Eg: 400
h3LineHeight
string
H3 Line Height

Eg: 1.2em
h3MarginBottom
string
H3 Margin Bottom

Eg: .5rem
h3MarginTop
string
H3 Margin Top

Eg: 0px
h4Color
string
H4 Font Color

Eg: #000000
h4FontFamily
string
H4 Font Family

Eg: Open Sans
h4FontLibrary
string
H4 Font Library

Eg: google
h4FontSize
string
H4 Font Size

Eg: 24px
h4FontWeight
string
H4 Font Weight

Eg: 400
h4LineHeight
string
H4 Line Height

Eg: 1.2em
h4MarginBottom
string
H4 Margin Bottom

Eg: .5rem
h4MarginTop
string
H4 Margin Top

Eg: 0px
h5Color
string
H5 Font Color

Eg: #000000
h5FontFamily
string
H5 Font Family

Eg: Open Sans
h5FontLibrary
string
H5 Font Library

Eg: google
h5FontSize
string
H5 Font Size

Eg: 20px
h5FontWeight
string
H5 Font Weight

Eg: 400
h5LineHeight
string
H5 Line Height

Eg: 1.2em
h5MarginBottom
string
H5 Margin Bottom

Eg: .5rem
h5MarginTop
string
H5 Margin Top

Eg: 0px
id
string
Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
improveFormStyles
bool
Improve form styles
maxWidthMedia
bool
Applies max-width: 100% on media elements to prevent overflowing containers
rootFontSize
string
Root font size

Eg: 16px
rootFontSizeMobile
string
Root font size on small screens

Eg: 14px;
section-fullheight
string
Section FullHeight Sizing
sectionSize-lg
string
Section sizing for LG
sectionSize-md
string
Section sizing for MD
sectionSize-sm
string
Section sizing for SM
formaccentcolor
string
A central color to feature in the form styles
formstylevariant
string
Set an overall style theme for forms

Examples

All styles set

The <templates:styles> control, placed within the <head> of the website design theme.

HTML:

<templates:styles boxsizingborderbox="true" maxwidthmedia="true" rootfontsize="16px" rootfontsizemobile="14px" lastusedratio="1.5" bodyfontlibrary="google" bodyfontfamily="Open Sans" bodyfontweight="400" bodycolor="#333333" bodyfontsize="1rem" bodylineheight="1.55rem" bodymargintop="0rem" bodymarginbottom="0.8rem" h1fontlibrary="google" h1fontfamily="Ubuntu" h1fontweight="500" h1color="" h1fontsize="3.375rem" h1lineheight="3.9693rem" h1margintop="3.1rem" h1marginbottom="1.6rem" h2fontlibrary="google" h2fontfamily="Ubuntu" h2fontweight="500" h2color="" h2fontsize="2.25rem" h2lineheight="2.7777rem" h2margintop="3.1rem" h2marginbottom="1.6rem" h3fontlibrary="google" h3fontfamily="Ubuntu" h3fontweight="500" h3color="" h3fontsize="1.5rem" h3lineheight="2rem" h3margintop="2.3rem" h3marginbottom="0.8rem" h4fontlibrary="google" h4fontfamily="Ubuntu" h4fontweight="500" h4color="" h4fontsize="1rem" h4lineheight="1.55rem" h4margintop="2.3rem" h4marginbottom="0.8rem" h5fontlibrary="google" h5fontfamily="Ubuntu" h5fontweight="500" h5color="" h5fontsize="1rem" h5lineheight="1.55rem" h5margintop="1.6rem" h5marginbottom="0.8rem" acolor="#000061" atextdecoration="none" improveformstyles="true" formaccentcolor="#000061" formstylevariant="minimal" sectionsize-sm="720px" sectionsize-md="960px" section-fullheight="89vh" />