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.

Maintainers

Package info

github.com/ernestdefoe/google-fonts

Language:TypeScript

Type:flarum-extension

pkg:composer/ernestdefoe/google-fonts

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.0 2026-06-07 01:36 UTC

This package is auto-updated.

Last update: 2026-06-07 01:37:15 UTC


README

License Latest Stable Version

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

  1. Go to Admin → Google Fonts.
  2. Set a Body font and (optionally) a Heading font.
  3. Start typing to search, or paste an exact family name from fonts.google.com.
  4. 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

License

MIT