ByteEditor Website Builder

Wiki menu

Customize Fonts

⚠ Note

In ByteEditor 17, the fonts of a design are theme tokens, like its colours. You edit them as JSON on the design's “Theme” tab. Fonts come from Google Fonts and load automatically.

Step 1. Open the Design Builder

Click Design Builder in the Content section and open the design you want to change (see Customize Colors for how to choose the default design).

Design Builder v17 - designs

Step 2. Open the Theme tab

Open the Theme tab. Font tokens sit in the same “tokens” object as the colours.

Design Builder v17 - Theme tab

Step 3. Change a font

Each text element (body text, headings 1–6 and buttons) has seven font tokens. For example, to set Heading 1 to Playfair Display:

"font.h1.family": "Playfair Display",
"font.h1.category": "serif",
"font.h1.weight": "700",
"font.h1.size.desktop": "56",
"font.h1.size.tablet": "44",
"font.h1.size.mobile": "36"

Use the font's exact name from fonts.google.com. The site loads it automatically, so no extra CSS or link is needed. A token that isn't in the JSON uses its default value (see the tables below).

💡 An invalid value (for example, a weight of “bold” instead of “700”) is ignored and the default is used instead. If a font name is misspelled, Google Fonts can't find it and the browser falls back to the font's category.

Step 4. Save and publish

Click Save and publish. The site's styles are regenerated automatically.

Font tokens

The tokens are named font.{element}.{property}.

Properties

PropertyWhat it setsAllowed values
familyFont family from Google FontsAny Google Fonts name, e.g. “Poppins”
categoryFallback type if the font can't loadsans-serif, serif, monospace, display, handwriting
styleFont stylenormal, italic, oblique
weightFont weight100, 200 … 900
size.desktopFont size on desktop, in pxNumber, e.g. “16”
size.tabletFont size on screens up to 992 px wideNumber
size.mobileFont size on screens up to 575 px wideNumber

Elements

ElementWhat it stylesDefault familyDefault weightSize (desktop / tablet / mobile)
textBody textPoppins40016 / 16 / 16
h1Heading 1DM Sans70054 / 48 / 40
h2Heading 2DM Sans70046 / 34 / 34
h3Heading 3DM Sans50032 / 32 / 32
h4Heading 4DM Sans50026 / 26 / 26
h5Heading 5DM Sans50022 / 22 / 22
h6Heading 6DM Sans70018 / 18 / 18
buttonButton textPoppins40016 / 16 / 16

💡 Fonts are the same everywhere on the site: unlike colours, they can't be changed in a theme variant.

Built with ByteEditor