Skip to content

A module to add and remove custom fonts within the site config

Notifications You must be signed in to change notification settings

toastnz/theme-fonts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation


The easiest way is to use composer:

composer require toastnz/theme-fonts

Run dev/build afterwards.

Configuration


Add the following to your config.yml (optional) to generate default fonts on dev/build Fonts with a value will be locked and not editable in the CMS Fonts with null value will be editable in the CMS

Toast\ThemeFonts\Models:
  default_fonts:
    - body: null
    - headings: null
    - comic-sans: 'comic-sans'

Usage


Colour functions

getFontFamilyClassName() returns f- + getFontCustomID() so the css class is unique. f- is there to represent font and to ensure the class does not start with a number.

About

A module to add and remove custom fonts within the site config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages