developing-blockninja-plugins: theme fontSizeSteps note

Themes can define what the admin base-size step chips mean by shipping
fontSizeSteps in a preset's typography. Rem-only, UI-facing, never emitted
to CSS and unrelated to per-element overrides.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-08-04 00:54:12 +08:00
parent 5154c2c813
commit bb4e04cbe6

View File

@ -160,6 +160,11 @@ Rules for theme/plugin authors:
- **Published pages freeze markup**: pages published before a hook existed pick it up - **Published pages freeze markup**: pages published before a hook existed pick it up
only on republish. The `var()` path applies immediately. only on republish. The `var()` path applies immediately.
Themes may also define what the base-size step chips mean by shipping `fontSizeSteps` in
a preset's typography: keys `small`, `normal`, `large`, `huge`, rem values only. Steps
feed the admin UI chips for the site-wide base size; they are never emitted to CSS and
have no effect on per-element overrides.
## Presets, fonts, email, motion ## Presets, fonts, email, motion
- **presets.json** — 4 to 6 presets, all 19 tokens, `mode: "both"`. Tune the dark side - **presets.json** — 4 to 6 presets, all 19 tokens, `mode: "both"`. Tune the dark side