Developers · Gutenberg

Font Scale block for WordPress

Type specimen / typography scale block showing font sizes from xs to 9xl. Displays sample text at each step with optional metadata (size, weight, line-height). Perfect for design systems and style guides.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Type specimen / typography scale block showing font sizes from xs to 9xl. Displays sample text at each step with optional metadata (size, weight, line-height). Perfect for design systems and style guides.

Inspector panels on this block: Content, Scale Steps, Spacing & Style. Those titles come from index.js, not from a shared template.

Behavior controls: “Specimen Font Family” options: Theme default, System UI (San Francisco / Segoe), Georgia (Serif), Courier (Mono), Arial / Helvetica.

Font Scale has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.

Where to find it

Gutenberg inserter → Developers → search “Font Scale” (block name `blockenberg/font-scale` in block.json). Style it in the sidebar after insert.

How to use Font Scale block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Font Scale”, insert it. Category: Developers.
  3. Configure inspector controls that exist on this block. Open Content. Set “Content — Title”, “Show title”, “Subtitle”, “Show subtitle”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
Content — TitleText field in the inspector. block.json default: Type Scale. Saved as `title`.
Show titleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
SubtitleText field in the inspector. block.json default: A consistent typographic system for clear, readable content. Saved as `subtitle`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
Show size/weight metaOn/off toggle in the inspector. On by default. Saved as `showMeta`.
Show row dividersOn/off toggle in the inspector. On by default. Saved as `showDividers`.
Step nameText field in the inspector. Saved as `steps`.
Size (px)Numeric range control in the inspector. Range 8–128. Saved as `steps`.
WeightNumeric range control in the inspector. Range 100–900. Saved as `steps`.
Line height (×10)Numeric range control in the inspector. Range 8–25. Saved as `steps`.
Sample textText field in the inspector. Saved as `steps`.
Border radiusNumeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `borderRadius`.
Padding topNumeric range control in the inspector. Range 0–120. block.json default: 48. Saved as `paddingTop`.
Padding bottomNumeric range control in the inspector. Range 0–120. block.json default: 48. Saved as `paddingBottom`.
Specimen Font FamilySelect control; the chosen value is saved on the block. Options: Theme default; System UI (San Francisco / Segoe); Georgia (Serif); Courier (Mono); Arial / Helvetica; Palatino (Serif); Trebuchet MS; Verdana. block.json default: inherit. Saved as `fontFamily`.
Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
Colors — TitleColor control in the inspector. block.json default: #0f172a. Saved as `titleColor`.
SubtitleColor control in the inspector. block.json default: #64748b. Saved as `subtitleColor`.
Sample textColor control in the inspector. block.json default: #0f172a. Saved as `textColor`.
Meta textColor control in the inspector. block.json default: #94a3b8. Saved as `metaColor`.
Name badge BGColor control in the inspector. block.json default: #f1f5f9. Saved as `nameBg`.
Name badge textColor control in the inspector. block.json default: #475569. Saved as `nameColor`.
DividerColor control in the inspector. block.json default: #f1f5f9. Saved as `dividerColor`.

When this is the right block

Notes from the implementation

Static block: markup is saved in post content; no PHP render callback in this folder.

FAQ

How do I add the Font Scale block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Font Scale”. It sits under Developers. After insert, open Content and set “Content — Title”, “Show title”, “Subtitle”, “Show subtitle”.

What makes Font Scale different from other Blockenberg blocks?

Type specimen / typography scale block showing font sizes from xs to 9xl. Displays sample text at each step with optional metadata (size, weight, line-height). Perfect for design systems and style guides. Inspector labels on this block include “Content — Title”, “Show title”, “Subtitle”, “Show subtitle”.

Is the Font Scale Gutenberg block free?

Yes. Font Scale ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Font Scale to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Content, Scale Steps, Spacing & Style).

Related developers blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Font Scale from the Gutenberg inserter.

Get Blockenberg