medienbaecker/kirby-autofavicon

1.0.3 2025-06-28 09:22 UTC

This package is auto-updated.

Last update: 2025-06-28 09:22:30 UTC


README

Automatically generates an SVG favicon.

Usage

Insert <?php snippet('autofavicon') ?> in your <head> and the plugin will add link tags for modern browsers and Safari.

Preview

Options

By default, the plugin will use the first letter of your site title and a black or white background color — depending on the system's prefers-color-scheme setting. You can customize the text and colors in your config.php file:

# site/config/config.php
return [
	'medienbaecker.autofavicon.text' => 'A',
	'medienbaecker.autofavicon.color' => '#000000',
	'medienbaecker.autofavicon.color_dark' => '#ffffff',
	'medienbaecker.autofavicon.text_color' => '#ffffff',
	'medienbaecker.autofavicon.text_color_dark' => '#000000',
]

Contributors

Thanks to sixtyeight for adding the text_color and text_color_dark options.