dulce / statamic-adobe-fonts
Manage self-hosted Adobe Typekit Fonts in Statamic
Installs: 462
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Type:statamic-addon
Requires
- php: ^8.1
- illuminate/contracts: ^12.0
- illuminate/support: ^12.0
- spatie/laravel-package-tools: ^1.16.0
- statamic/cms: ^5.0
This package is auto-updated.
Last update: 2025-06-25 20:51:47 UTC
README
Statamic Adobe Fonts is a Statamic addon that makes self-hosting Adobe Typekit Fonts as frictionless as possible for Statamic users.
Features
This addon provides:
- Self-hosting of Adobe Typekit Fonts on your own server.
- Ability to customize which Adobe Typekit Fonts are hosted.
Installation
You can install this addon from the Tools > Addons
section of the Statamic control panel by searching for "Adobe Fonts" and clicking install. Alternatively, you can run the following command from your project root:
composer require dulce/statamic-adobe-fonts
After the package is installed, you can publish the configuration file with:
php artisan vendor:publish --provider="Dulce\StatamicAdobeFonts\ServiceProvider"
This will create a statamic-adobe-fonts.php
config file in your config
directory.
Configuration
To load fonts in your application, register an Adobe Typekit Fonts embed URL in the statamic-adobe-fonts.php
config file:
// config/adobe.typekit.php return [ 'fonts' => [ 'default' => 'https://use.typekit.net/[project-id].css', ], ];
Replace [project-id]
with your actual project ID from Adobe Typekit.
Usage
Once the addon is installed, you can configure which Adobe Fonts you want to use by editing the statamic-adobe-fonts.php
config file in your config
directory.
In your Antlers templates, you can use the provided Antlers tag to include the necessary CSS for the Adobe Fonts:
{{ typekit }}
This tag will output the necessary CSS link to include the Adobe Fonts in your website.
To use an Adobe Font in your website, simply use the font's name in your CSS. For example:
body { font-family: 'Adobe Caslon Pro', serif; }
Please refer to the Adobe Fonts documentation for a complete list of available fonts and their corresponding CSS classes.