Skip to content

Webfonts

Kompass supports self-hosting Google Fonts locally via the optional log1x/laravel-webfonts package. This eliminates external font requests, improves page load performance, and keeps your app GDPR-compliant.

Adding Fonts

Run the interactive Artisan command to search, select, and download fonts:

bash
php artisan webfonts:add

The command lets you search for a font by name (e.g. "Inter", "Roboto"), choose the variants you need, and download the font files to resources/fonts. Kompass generates a fonts.css file automatically.

Integration

Import the generated stylesheet into your main CSS entry point:

css
/* resources/css/app.css */
@import './fonts.css';

Add more fonts anytime

Run php artisan webfonts:add again at any time to add more fonts or variants. The fonts.css file updates automatically.

Released under the MIT License.