PB_TYPOGRAPHY_OVERRIDE
An inline style attribute overrides Paperbase's editorial typography on a text element.
| Severity | info |
| Category | design |
| Agent-repairable | Yes |
What happened
An inline style= on a text element sets a typography property (font-family, font-size,
line-height, letter-spacing, or font-weight) that conflicts with Paperbase's editorial baseline.
When the override crosses a legibility floor (font-size < 10px, line-height < 1.2, or a
heading smaller than body text) it also lowers the design-quality score.
How to fix
Use theme.body_font, theme.heading_font, or --paperbase-* CSS custom properties instead
of inline styles on individual elements:
Or use CSS custom properties for fine-grained control:
Why this matters
Paperbase's editorial baseline is designed for print. Overriding typography properties at the element level often produces worse results than letting the baseline handle it. If you need a specific typographic treatment, express it through theme properties or CSS custom properties so the whole document stays consistent.