Skip to content

v1.5.0

Choose a tag to compare

@karl-bullock karl-bullock released this 13 Jul 21:34
· 6 commits to main since this release

What's new

You can now tell Font Sizer what size your forum's text should start at.

The extension's settings page has three new Base Text Sizes inputs: post text, small text, and titles, all in pixels. If your theme's font looks too small at Flarum's standard sizes (common with serif fonts), raise these numbers and the whole forum follows. No Custom CSS needed.

Good to know:

  • Changes apply to everyone right away, including visitors who never touch the font size button.
  • The font size button in the header works exactly as before, and now scales on top of the sizes you set.
  • Leave the settings alone and nothing changes: at the defaults (14 / 12 / 16) your forum looks exactly like it did on v1.4.
  • A live preview on the settings page shows the effect as you type.

For theme authors: the sizes are also exposed as CSS variables (--lr-text-base, --lr-text-small, --lr-text-title), so you can set them from Custom CSS instead. Details are in the README.

Thanks to flavour1 on discuss.flarum.org for suggesting this.

How to update

composer update linkrobins/font-sizer

Tested through Flarum 2.0.0-rc.5.