Navigation

ThemeWare® Manual

Configuration

Theme settings for typography, including how to scale the default font size in percent for smaller viewports while keeping text accessible.

Applies to ThemeWare® 5.7.0 · Checked on

Responsive scaling


Font size in % @Phone (<576px)

Displayed name:
Font size in % Phone (<576px)

Field type:
Number field

Available values:
1 to 100

Default value:
80

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Responsive scaling"

Technical name:
twt-font-size-html-xs

With this configuration, you can reduce the default font size in the corresponding viewport as a percentage.

For accessibility reasons, please note that the font should not be smaller than 16px.

Example: 80


Font size in % @Phone (landscape) (≥576px)

Displayed name:
Font size in % Phone (landscape) (≥576px)

Field type:
Number field

Available values:
1 to 100

Default value:
90

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Responsive scaling"

Technical name:
twt-font-size-html-sm

With this configuration, you can reduce the default font size in the corresponding viewport as a percentage.

For accessibility reasons, please note that the font should not be smaller than 16px.

Example: 90


Font size in % @Desktop (≥1200px)

Displayed name:
Font size in % Desktop (≥1200px)

Field type:
Number field

Available values:
1 to 100

Default value:
100

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Responsive scaling"

Technical name:
twt-font-size-html-xl

With this configuration, you can reduce the default font size in the corresponding viewport as a percentage.

For accessibility reasons, please note that the font should not be smaller than 16px.

Example: 100

Text


Fonttype

Displayed name:
Font family

Field type:
Font family

Default value:
'Inter', sans-serif

Differs in design variants:
• Bath, Global, Living: 'Open Sans', sans-serif
• Bike: 'Source Sans 3', sans-serif
• Bio, Strong: 'Roboto', sans-serif
• Clean: 'Montserrat', sans-serif
• Electric: 'Titillium Web', sans-serif

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Text"

Technical name:
sw-font-family-base

Theme fonts are loaded automatically from your server. Other fonts must be added individually.

Which fonts are bundled is listed in the manual, how font configuration works is explained in the knowledge base.

Example: 'Inter', sans-serif


Size adjustment

Field type:
Number field

Available values:
75 to 125

Default value:
100

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Text"

Technical name:
twt-font-family-base-size-adjust

Scales the font selected above without changing any font sizes. 100 = no adjustment. The value belongs to the font itself, so it applies everywhere that font is used in your shop.

Does not apply to Inter (loaded by Shopware), the Google Fonts import or your own fonts.

The adjustment only scales the letters, not the areas around them. A button or a badge keeps its height, because the line height is derived from the font size and that stays unchanged. So the text grows while the distance to the edge shrinks.

The width does grow along with it. After a change, check buttons, badges and the navigation for labels that start to wrap.

From around 120 onwards, the lines of multi-line body text visibly move closer together, because the line spacing stays unchanged as well.


Text colour

Field type:
Colour picker

Default value:
#111111

Differs in design variants:
• Bio, Strong: #333333
• Clean, Exquisite: #000000

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Text"

Technical name:
sw-text-color

ThemeWare® variables ($twt-...) are currently not possible in this field.

Variable: $sw-text-color


Font size

Field type:
Number field

Available values:
8 to 80

Default value:
16

Differs in design variants:
• Clean, Living: 15

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Text"

Technical name:
twt-font-size-base

Headlines


Fonttype

Displayed name:
Font family

Field type:
Font family

Default value:
'Inter', sans-serif

Differs in design variants:
• Bath: 'Roboto Slab', sans-serif
• Bike: 'Exo 2', sans-serif
• Bio: 'Englebert', sans-serif
• Clean: 'Montserrat', sans-serif
• Electric, Lights: 'Titillium Web', sans-serif
• Exquisite, Strong: 'Oswald', sans-serif
• Fit, Living, Plants: 'Source Sans 3', sans-serif
• Global: 'Roboto', sans-serif
• Outdoor: 'Ubuntu', sans-serif

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
sw-font-family-headline

Theme fonts are loaded automatically from your server. Other fonts must be added individually.

Which fonts are bundled is listed in the manual, how font configuration works is explained in the knowledge base.

Example: 'Inter', sans-serif


Size adjustment

Field type:
Number field

Available values:
75 to 125

Default value:
100

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
twt-font-family-headline-size-adjust

Scales the font selected above without changing any font sizes. 100 = no adjustment. The value belongs to the font itself, so it applies everywhere that font is used in your shop.

Does not apply to Inter (loaded by Shopware), the Google Fonts import or your own fonts.

The adjustment only scales the letters, not the areas around them. A button or a badge keeps its height, because the line height is derived from the font size and that stays unchanged. So the text grows while the distance to the edge shrinks.

The width does grow along with it. After a change, check buttons, badges and the navigation for labels that start to wrap.

From around 120 onwards, the lines of multi-line body text visibly move closer together, because the line spacing stays unchanged as well.


Text colour

Field type:
Colour picker

Default value:
$sw-color-brand-primary

Differs in design variants:
• Bath: #238077
• Bio, Exquisite: #333333
• Fit, Kids: $sw-color-brand-secondary
• Living: #6f6758
• Outdoor: #444444

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
sw-headline-color

ThemeWare® variables ($twt-...) are currently not possible in this field.

Variable: $sw-headline-color


Font size (h1)

Field type:
Number field

Available values:
8 to 80

Default value:
36

Differs in design variants:
• Clean: 28

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
twt-font-size-h1


Font size (h2)

Field type:
Number field

Available values:
8 to 80

Default value:
28

Differs in design variants:
• Clean: 24

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
twt-font-size-h2


Font size (h3)

Field type:
Number field

Available values:
8 to 80

Default value:
24

Differs in design variants:
• Clean: 20

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
twt-font-size-h3


Font size (h4)

Field type:
Number field

Available values:
8 to 80

Default value:
20

Differs in design variants:
• Clean: 17

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
twt-font-size-h4


Font size (h5)

Field type:
Number field

Available values:
8 to 80

Default value:
16

Differs in design variants:
• Clean: 14

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
twt-font-size-h5


Font size (h6)

Field type:
Number field

Available values:
8 to 80

Default value:
14

Differs in design variants:
• Clean: 12

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Headlines"

Technical name:
twt-font-size-h6


Field type:
Colour picker

Default value:
$sw-color-brand-primary

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Links"

Technical name:
twt-link-color

Select the desired colour for general links in the Storefront.

Beta: This configuration is in a testing phase, feel free to give it a try.

Note: The hover colour is also generated from this colour.

Font weight


Font weight (light)

Field type:
Number field

Available values:
100 to 900

Default value:
400

Differs in design variants:
• Bio: 300

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Font weight"

Technical name:
twt-font-weight-light

Select the desired font weight:
100 = Thin (Hairline)
200 = Extra Light (Ultra Light)
300 = Light
400 = Normal (Regular)
500 = Medium
600 = Semi Bold (Demi Bold)
700 = Bold
800 = Extra Bold (Ultra Bold)
900 = Black (Heavy)
950 = Extra Black (Ultra Black)


Font weight (normal)

Field type:
Number field

Available values:
100 to 900

Default value:
400

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Font weight"

Technical name:
twt-font-weight-normal

Select the desired font weight:
100 = Thin (Hairline)
200 = Extra Light (Ultra Light)
300 = Light
400 = Normal (Regular)
500 = Medium
600 = Semi Bold (Demi Bold)
700 = Bold
800 = Extra Bold (Ultra Bold)
900 = Black (Heavy)
950 = Extra Black (Ultra Black)


Font weight (bold)

Field type:
Number field

Available values:
100 to 900

Default value:
600

Differs in design variants:
• Bike, Clean, Exquisite, Living, Outdoor: 700
• Bio: 500

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Font weight"

Technical name:
twt-font-weight-bold

Select the desired font weight:
100 = Thin (Hairline)
200 = Extra Light (Ultra Light)
300 = Light
400 = Normal (Regular)
500 = Medium
600 = Semi Bold (Demi Bold)
700 = Bold
800 = Extra Bold (Ultra Bold)
900 = Black (Heavy)
950 = Extra Black (Ultra Black)

Google Fonts


Import Google Fonts

Field type:
Select

Available values:
• no
• yes

Default value:
no

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Google Fonts"

Technical name:
twt-google-font-import

Select whether Google Fonts should be loaded via the Google Fonts API (yes) or not (no).

Important: Before using font APIs such as Google Fonts, be sure to obtain legal advice regarding the General Data Protection Regulation (GDPR).


Font weight for Google Fonts (Text)

Field type:
Text field

Default value:
400,600

Differs in design variants:
• Bike, Clean, Exquisite, Living: 400,700
• Bio: 300,400,500
• Outdoor: 300,400,700

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Google Fonts"

Technical name:
twt-font-family-base-font-weight

Select the desired font weights:
100 = Thin (Hairline)
200 = Extra Light (Ultra Light)
300 = Light
400 = Normal (Regular)
500 = Medium
600 = Semi Bold (Demi Bold)
700 = Bold
800 = Extra Bold (Ultra Bold)
900 = Black (Heavy)
950 = Extra Black (Ultra Black)

Example: 400,600


Font weight for Google Fonts (Headlines)

Field type:
Text field

Default value:
400,600

Differs in design variants:
• Bike, Clean, Exquisite, Global, Living: 400,700
• Bio: 400
• Outdoor: 300,400,700

Path to the configuration:
Tab "Layout" => Block "Typography" => Section "Google Fonts"

Technical name:
twt-font-family-headline-font-weight

Select the desired font weights:
100 = Thin (Hairline)
200 = Extra Light (Ultra Light)
300 = Light
400 = Normal (Regular)
500 = Medium
600 = Semi Bold (Demi Bold)
700 = Bold
800 = Extra Bold (Ultra Bold)
900 = Black (Heavy)
950 = Extra Black (Ultra Black)

Example: 400,600

Last updated on

More from ThemeWare®: About ThemeWare® · Demoshops · Knowledge base · Video tutorial · Utilities

This page online: https://docs.themeware.design/manual/layout/typography/configuration · ThemeWare® Service Portal, service.themeware.design