ernestdefoe / google-fonts
Use any Google Font on your Flarum 2 forum â pick a body font and a heading font from the full Google Fonts library, applied site-wide.
Package info
github.com/ernestdefoe/google-fonts
Language:TypeScript
Type:flarum-extension
pkg:composer/ernestdefoe/google-fonts
0.1.0
2026-06-07 01:36 UTC
Requires
- flarum/core: ^2.0
README
Use any Google Font on your Flarum 2 forum. Pick a body font and a heading font from the full Google Fonts library â applied site-wide, with a live preview right in the admin panel.
Features
- ð Searchable picker for a curated list of popular Google Fonts, in the admin settings â and you can type/paste any Google Font family name, even ones not in the list.
- âïļ Separate body and heading fonts, so you can pair (e.g.) Inter body text with Playfair Display headings.
- ð Live preview of each font directly in the admin panel.
- ⥠Server-side injection of the Google Fonts stylesheet into the page
<head>â no flash of unstyled text, no client round-trip. - ðŠķ No configuration files, no API key required.
Installation
composer require ernestdefoe/google-fonts
Then enable Google Fonts in your admin panel.
Usage
- Go to Admin â Google Fonts.
- Set a Body font and (optionally) a Heading font.
- Start typing to search, or paste an exact family name from fonts.google.com.
- Click Save. The fonts apply to your forum immediately.
Leave a field blank to fall back to your theme's default font.
Updating
composer update ernestdefoe/google-fonts php flarum cache:clear