All how-tos

Set up a font in Unblock

Upload a webfont, save it as a typography variable, and use it for body text.

Watch the walkthrough

Follow the steps

  1. Upload and activate the font

    In the block editor, open Unblock → Fonts → Upload Fonts and choose your webfont. If it’s already installed, activate the weights and styles you need.

  2. Create a typography variable

    Open Variables → Typography and add --sans. Use the family name shown in Fonts, for example "OC Format", system-ui, sans-serif.

  3. Apply it to body text

    Open CSS Parser, paste the rule below, then choose Parse CSS → Import CSS. Preview a page and check that the body text uses the font.

    /* unbk scope:global:next */
    body {
      font-family: var(--sans);
    }