Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Spatie Laravel Google Fonts Plugin Laravel Package

filament/spatie-laravel-google-fonts-plugin

Adds a Spatie Google Fonts provider to Filament panels, letting you use locally fetched and cached Google Fonts via spatie/laravel-google-fonts. Configure with Panel::font('Inter', provider: SpatieGoogleFontProvider::class) to avoid CDNs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • UI/UX Consistency: Enables standardized typography across Filament admin panels by leveraging Google Fonts, reducing visual fragmentation in multi-tenant or multi-product SaaS applications.
  • Performance Optimization: Replaces CDN-based font loading with locally cached Google Fonts (via Spatie’s package), improving page load times and reducing external dependencies.
  • Developer Experience (DX): Simplifies font management in Filament panels—no manual CSS/HTML tweaks required. Developers can configure fonts declaratively in Panel configuration.
  • Roadmap for Design Systems: Aligns with broader efforts to centralize design assets (fonts, colors, icons) under a unified configuration system, reducing technical debt.
  • Build vs. Buy: Avoids reinventing font-loading infrastructure; leverages battle-tested Spatie/Laravel packages with minimal overhead.
  • Use Cases:
    • SaaS platforms needing consistent admin panel branding.
    • Internal tools where typography must match marketing sites.
    • Projects requiring offline-capable font loading (e.g., progressive web apps).

When to Consider This Package

  • Avoid if:
    • Your project doesn’t use Filament (this is a Filament-specific plugin).
    • You need self-hosted fonts (e.g., WOFF files stored in /public). Use a custom FontProvider instead.
    • Your team lacks Laravel/Filament familiarity—setup requires Spatie’s package and Filament configuration.
    • You prioritize minimal dependencies—this adds Spatie’s package as a hard dependency.
  • Look elsewhere if:
    • You need dynamic font loading (e.g., user-selected fonts). Consider a custom solution with @font-face.
    • Your stack uses non-Laravel backends (e.g., Node.js, Django). Use a frontend-only solution like next/font or google-fonts-helper.
    • You require advanced font subsetting—Spatie’s package is basic; evaluate alternatives like typekit or fontsource.

How to Pitch It (Stakeholders)

For Executives:

"This plugin lets us standardize typography across all admin panels using Google Fonts—without relying on external CDNs. It’s a low-effort way to improve UI consistency and performance, reducing load times by caching fonts locally. Think of it as ‘Netflix for fonts’: reliable, scalable, and managed for us. Setup takes <30 minutes, and it plays nicely with our existing Laravel stack."

For Engineers:

*"The filament/spatie-laravel-google-fonts-plugin bridges Spatie’s laravel-google-fonts with Filament’s panel system. Key benefits:

  • Zero CDN dependency: Fonts are cached via Spatie’s package (configurable in config/google-fonts.php).
  • Declarative setup: Add fonts in panel(Panel $panel) via ->font('Inter', provider: SpatieGoogleFontProvider::class).
  • Filament-native: Works seamlessly with Panel Builder, Widgets, and Resources.
  • Extensible: Override SpatieGoogleFontProvider for custom logic (e.g., subsetting).

Tradeoff: Adds Spatie’s package as a dependency. Worth it if you’re already using Filament and want to avoid manual font management.*"

For Designers:

"This tool lets you pick any Google Font (e.g., ‘Inter’, ‘Poppins’) and apply it globally to all admin panels—no CSS hacks or manual uploads. Fonts load faster because they’re cached on our servers, and the UI stays crisp across devices. You’ll configure it once in the backend, and it’ll apply everywhere."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle