On the Styles tab, you can define how specific macros will be formatted in your exports. 

Apply macro styles 

In the Macros section of the template editor panel, you can define the default styling for macros on your pages. Styles can be applied to the following macros: 

  • Info, Tip, Note, & Warning
  • Panel
  • Status
  • Code Block
  • Scroll Title (Table Captions & Figure Captions)

When you export Confluence content, it will be styled in accordance with the styles configured on this screen. For example, if you change the border color to blue for the Info macro, all the corresponding Info macros will have a blue border when exported from Confluence:

The inbuilt template editor contains a Preview section, on the right-hand of the screen, which offers a live view for your chosen styling choices – these automatically appear as you make edits.

If you are dissatisfied with the edits you have made to a macro style, you can return to the default settings by clicking the arrow button next to the chosen macro in the list.

Modify styles

Macro styles can be modified in a number of ways – you can change the following properties:



(Panel & Code Block macros only)

Margins (pt)Apply a margin to the top, bottom, left and/or right of the macro. This is applied to both the Title and Body sections
Title / BodySelect which section of the macro you need to style
FontOverwrite style ofDefine whether Paragraph and List styles contained within a macro are overwritten with a style
FontUse the bundled fonts, or add a custom font
StyleLight/regular/bold, italics, underlined
Size (pt)Select the font size
Line height (%)Set the line height for text in the macro

Choose the color of your font

CaseDecide whether the text style is Capitalised, UPPERCASE or lowercase

IconChoose whether an admonition macro (Warning, Note, Tip, Info) displays the default icon or alternatively, upload a custom image
Icon sizeSet the size for your chosen icon
Icon colorWhen enabled, define the color of the icon for an admonition macro
Margin (mm)Set the margins for the specific macro
Padding (mm)

Determine the amount of padding for the text/icon in the macro


Specify whether the macro has a background color

Background colorChoose the background color for the macro


(Table / Figure Captions only)

Level style Select the numbering style for the caption. The live preview will update the Table of Tables and Table of Figures styles accordingly – see the Style text doc for more information.
PrefixAdd a prefix (before) the numbered style
SuffixAdd a suffix (after) the numbered style
Indent (pt)Define the amount of indentation between the numbering and the caption
BorderTop/Bottom/Left/RightPick a border side to style

Select the border style for the macro

Strength (pt)Define the strength of the border style
Border Radius (pt)Set the amount of border radius to apply curved edges
Border colorChoose the border color for the macro

Next steps

Now you have styled your Confluence macros, you can define the structure of your template – and fine-tune the design – on the 'Document Sections' tab.