obelix-plugin-typography

    1.0.2 • Public • Published

    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.

    Keywords

    none

    Install

    npm i obelix-plugin-typography

    DownloadsWeekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.68 kB

    Total Files

    3

    Last publish

    Collaborators

    • jdormit