Style variables

Sufio uses style variables to store values such as colors, fonts, and sizes, allowing you to reuse these values throughout your document. Variables make it easy to update your template, as changing a variable’s value automatically updates all instances where that variable is used.

Style variables

Style variables in Sufio are defined using the $ symbol followed by the variable name.

$background-color

$background-color

The color of the document background. The default background color for all templates is white (#ffffff).

Code
background-color: $background-color;
Output
background-color: #ffffff;

$dir

$dir

The text direction of the document language.

For most languages, this value is ltr (left-to-right). Languages such as Arabic and Hebrew use the value rtl (right-to-left).

Code
direction: $dir;
Output
direction: ltr;

$font-family

$font-family

The name of the primary font.

You can change the font on the DesignTypoghraphy page in your Sufio account.

Code
font-family: $font-family;
Output
font-family: helvetica;

$font-family-heading

$font-family-heading

The name of the secondary font, used for document headings—if supported by the selected document template.

You can change the font on the DesignTypoghraphy page in your Sufio account.

Code
font-family: $font-family-heading;
Output
font-family: frutiger;

$font-zoom

$font-zoom

The text size zoom applied to all text in the document.

In most templates, this style is applied to the .document root element, ensuring that all text elements in the document are resized proportionally.

You can adjust the Font Size setting on the DesignTypography page in your Sufio account. The default setting of 100% corresponds to a $font-zoom value of 1.0.

Code
font-size: $font-zoom * 1em;
Output
font-size: 1.0em;

$scheme-color

$scheme-color

The document’s accent color. Typically, this color is used for headings and various graphic elements.

You can change this color on the DesignColors page in your Sufio account.

Code
color: $scheme-color;
Output
color: #81B2C3;