PHPackages                             silverstripe/theme-fontpicker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. silverstripe/theme-fontpicker

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

silverstripe/theme-fontpicker
=============================

Customise site fonts from the admin settings

21.1k1PHPCI failing

Since Jul 31Pushed 6y ago6 watchersCompare

[ Source](https://github.com/silverstripe/silverstripe-theme-fontpicker)[ Packagist](https://packagist.org/packages/silverstripe/theme-fontpicker)[ RSS](/packages/silverstripe-theme-fontpicker/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Fontpicker Module
=================

[](#fontpicker-module)

[![Build Status](https://camo.githubusercontent.com/c4ee9edde44fcfd316477c02b36491661ba47790b757ef04eca8563002a1ad27/68747470733a2f2f7472617669732d63692e6f72672f73696c7665727374726970652f73696c7665727374726970652d7468656d652d666f6e747069636b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/silverstripe/silverstripe-theme-fontpicker)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b0d8f7d4459d99bcb3f76db1ddb144af146d9ddc7beddb58cb12346baeaed992/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696c7665727374726970652f73696c7665727374726970652d7468656d652d666f6e747069636b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-theme-fontpicker/?branch=master)[![codecov](https://camo.githubusercontent.com/1fb06ee33fff4bd46009ad3c4e3083d27f74051786480ef7ca825f65d7cad980/68747470733a2f2f636f6465636f762e696f2f67682f73696c7665727374726970652f73696c7665727374726970652d7468656d652d666f6e747069636b65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/silverstripe/silverstripe-theme-fontpicker)

This module adds a font picker under the admin settings, under a `Theme Options` tab. It comes with 3 fonts out of the box, provided by Google Fonts, but more fonts can be added.

Usage
-----

[](#usage)

### Adding extra fonts

[](#adding-extra-fonts)

To add extra fonts, simply set the `theme_fonts` field under `SiteConfig` as follows:

```
SilverStripe\SiteConfig\SiteConfig:
  theme_fonts:
    metropolis: Metropolis
    nunito-sans: Nunito Sans
    fira-sans: Fira Sans
    merriweather: Merriweather
```

> Note that any font which is unavailable at Google Fonts will not be displayed in preview in the font selector.

### Changing the default font

[](#changing-the-default-font)

To set the default font, simply set the `default_font` field under `SiteConfig` as follows:

```
SilverStripe\Fontpicker\Forms\FontPickerField:
  default_font: metropolis
```

Using in your own theme
-----------------------

[](#using-in-your-own-theme)

First, ensure that there is a HTML `class` present in your template which indicates the theme variation to the CSS. Below is the default implementation which you'll also find in the Bambusa and Watea theme.

```

```

You can now either manually generated the colour variations in your CSS (class name suffixes), or you can trawl through the `src/scss` folder in either the Bambusa or Watea theme to find out how to use `@mixin` in SCSS to achieve that automatically.

Versioning
----------

[](#versioning)

This library follows [Semver](http://semver.org). According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.

All methods, with `public` visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep `protected` methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/654636?v=4)[Aaron Carlino](/maintainers/unclecheese)[@unclecheese](https://github.com/unclecheese)

![](https://www.gravatar.com/avatar/b0cba8b534e20e6ab4fff555a97b237a18436ebca1446fc0b29c8a8b504038b9?d=identicon)[GuySartorelli](/maintainers/GuySartorelli)

![](https://avatars.githubusercontent.com/u/111025?v=4)[Ingo Schommer](/maintainers/chillu)[@chillu](https://github.com/chillu)

![](https://www.gravatar.com/avatar/a25bc04c5720a36869d5a39c6449dde7eb43e19b7c8e666d5f632d6a9ab440b1?d=identicon)[emteknetnz](/maintainers/emteknetnz)

![](https://www.gravatar.com/avatar/afbb3dcc9ef29c1a6eedd6addcae5fce9ab1271915a85a4c349301b71237368d?d=identicon)[silverstripe-machine01](/maintainers/silverstripe-machine01)

![](https://avatars.githubusercontent.com/u/1168676?v=4)[Maxime Rainville](/maintainers/maxime-rainville)[@maxime-rainville](https://github.com/maxime-rainville)

---

Top Contributors

[![chillu](https://avatars.githubusercontent.com/u/111025?v=4)](https://github.com/chillu "chillu (9 commits)")[![bergice](https://avatars.githubusercontent.com/u/541886?v=4)](https://github.com/bergice "bergice (2 commits)")

### Embed Badge

![Health badge](/badges/silverstripe-theme-fontpicker/health.svg)

```
[![Health](https://phpackages.com/badges/silverstripe-theme-fontpicker/health.svg)](https://phpackages.com/packages/silverstripe-theme-fontpicker)
```

###  Alternatives

[catchamonkey/phighcharts

A PHP library for the Highcharts JavaScript charting library

263.3k](/packages/catchamonkey-phighcharts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
