You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.


Style macros

Thomas Rough

Thomas Rough Last update: Oct 17, 2018

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:

Category Property Description


(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 / Body Select which section of the macro you need to style
Font Overwrite style of Define whether Paragraph and List styles contained within a macro are overwritten with a style
Font Use the bundled fonts, or add a custom font
Style Light/regular/bold, italics, underlined
Size (pt) Select the font size
Line height (%) Set the line height for text in the macro
Color Choose the color of your font
Case Decide whether the text style is Capitalised, UPPERCASE or lowercase

Icon Choose whether an admonition macro (Warning, Note, Tip, Info) displays the default icon or alternatively, upload a custom image
Icon size Set the size for your chosen icon
Icon color When 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 color Choose 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.
Prefix Add a prefix (before) the numbered style
Suffix Add a suffix (after) the numbered style
Indent (pt) Define the amount of indentation between the numbering and the caption
Border Top/Bottom/Left/Right Pick 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 color Choose 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.

We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.