Note
Read-only mirror. See CONTRIBUTING.md for how to propose changes.
- Multiple Providers - Google Fonts, Bunny Fonts, Fontsource, and Local Fonts
- Privacy-Friendly - GDPR-compliant options (Bunny Fonts, Fontsource)
- Development Mode - CDN with inline styles
- Production Mode - Lock fonts locally for better performance and privacy
- Multi-Format Export - Export fonts in 12+ formats (CSS, SCSS, Tailwind, TypeScript, Design Tokens, and more)
- Build Tool Support - AssetMapper, Webpack, and Vite auto-detection
- Framework Integration - Bootstrap SCSS variables, Tailwind config, CSS custom properties
- Design System Ready - W3C Design Tokens, Figma Tokens, Style Dictionary
- Smart CSS - Automatic font styling for body, headings, and bold text
- CLI Tools - Search, lock, validate, prune, and export commands
- Custom Fonts - Support for self-hosted brand fonts
- Type-Safe - PHP 8.1 enums and TypeScript definitions
| Provider | Fonts | Privacy | API Key | CDN |
|---|---|---|---|---|
| Google Fonts | 1,500+ | Tracks | Optional | Yes |
| Bunny Fonts | 1,500+ | GDPR | No | Yes |
| Fontsource | 1,500+ | Good | No | Yes |
| Local Fonts | Custom | Perfect | No | No |
Recommended for privacy: Use Bunny Fonts (GDPR-compliant, zero tracking)
Add the symfinity/recipes Flex endpoint to your project's composer.json (see recipes README) — recipes are not in Symfony's official recipe repository yet.
composer require symfinity/font-managerThe Flex recipe registers the bundle for dev and test only. Enable prod manually before locking fonts — see Installation.
- Quickstart - Get started in 5 minutes
- Installation - Flex, manual setup, production
- Export Formats - Multi-format export guide (CSS, SCSS, Tailwind, TypeScript, Design Tokens)
- Usage Guide - Function parameters and examples
- Providers - Provider comparison and setup
- Commands - CLI command reference
- Configuration - All configuration options
- Local Fonts - Custom font setup
- Migration Guide - Migrating from google-fonts
- PHP 8.1 or higher
- Symfony 6.4, 7.x, or 8.x
- Twig 3.0 or higher