Spatie Google Fonts plugin screenshot
Dark mode ready
Multilingual support
Supports v5.x

Spatie Google Fonts

Featured Official

Filament support for Spatie's Laravel Google Fonts package.

Tags: Panels Spatie Integration
Supported versions:
5.x 4.x 3.x 2.x
Official plugin. Built and maintained by the Filament team.
Filament avatar Author: Filament

Package health

Beta

Automated checks of this plugin's Composer package

100 / 100
Security 100
Maintenance 100
Ecosystem 100
13 checks
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 0 days ago; no release date available.
  • Passed: composer.lock not committed by library composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: GitHub Actions pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No open Dependabot PRs.
  • Passed: Dependabot or Renovate configured
  • Passed: Dependency update cooldown configured
  • Passed: Provides a security policy
Powered by Plumb Last scanned 2 days ago

Documentation

Version:

#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.

The author

Filament avatar Author: Filament

Filament is a powerful open source UI framework for Laravel, built with Livewire to help you ship apps & admin panels fast.

It includes a collection of beautifully designed, fully extensible components that handle the hard parts, so you can focus on what matters.

Plugins
6
Stars
650

From the same author