filament/spatie-laravel-google-fonts-plugin

Filament support for `spatie/laravel-google-fonts`.
93,668 6
Install
composer require filament/spatie-laravel-google-fonts-plugin
Latest Version:v5.10.1
PHP:^8.2
License:MIT
Last Updated:Oct 7, 2026
Links: GitHub  ·  Packagist
Maintainer: DanHarrin

Filament Spatie Google Fonts Plugin

Installation

Install the plugin with Composer:

composer require filament/spatie-laravel-google-fonts-plugin:"^5.0" -W

Please follow Spatie's documentation about how to set up their package first.

Using the font provider

In your Panel Builder configuration, you can use the font() method, passing a provider:

use Filament\FontProviders\SpatieGoogleFontProvider;
use Filament\Panel;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->font('Inter', provider: SpatieGoogleFontProvider::class);
}

Now, if Spatie's package is set up to fetch and cache the Inter font correctly, Filament will use that source in the panel, without using any CDNs. Internally, the SpatieGoogleFontProvider class uses the @googlefonts directive from Spatie's package.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP License
v5.10.1 ^8.2 MIT
v5.10.0 ^8.2 MIT
v5.9.0 ^8.2 MIT
v5.8.4 ^8.2 MIT
v5.8.3 ^8.2 MIT
Pre-releases (206)
Version Released PHP License
v5.7.0-beta4 ^8.2 MIT
v5.7.0-beta3 ^8.2 MIT
v5.7.0-beta2 ^8.2 MIT
v5.7.0-beta1 ^8.2 MIT
v5.0.0-beta9 ^8.2 MIT