obelix-plugin-typography
v1.0.2
Published
A typography.js plugin for the Obelix static site generator
Downloads
3
Readme
obelix-plugin-typography
A Typography.js plugin for Obelix
This Obelix plugin generates a stylesheet based on a Typography.js configuration or theme.
Usage
Install into your project (or globally if you prefer):
npm install --save obelix-plugin-typography
If you plan on using a Typography.js theme, install that too.
Then in your obelix.edn
file, configure the plugin:
{:plugins
{:obelix-plugin-typography
{:fileName "typography.css" ;; The name of the generated CSS file, defaults to typography.css
:theme "typography-theme-fairy-gates" ;; Optional, the Typography.js theme to use
;; In addition or instead of a theme, specify any Typography.js
;; options you want. These will override the theme settings.
:baseFontSize 16
:baseLineHeight 1.5
;; etc.
}}}
Important: This plugin only generates the typography stylesheet. You still need to add a <link>
to it in the layouts or pages you want it to be applied to.