Have ideas to improve npm?Join in the discussion! »

    @cloudsuite/postcss-google-font

    1.0.1 • Public • Published

    PostCSS Google Font

    Improves the fork from https://github.com/yordis/postcss-google-font

    PostCSS plugin for import Google fonts.

    Syntax: @google-font font-family styles [args]

    • font-family: The name of the font. Compound family names should be wrapped out inside quotes or double quotes
    • styles: The styles of the font. Use the comma for separated multiples styles: 400,500,700italic
    • args (optional): The dislpay and subset of the font: display=swap,subset=latin|latin-ext
    @google-font Lato 400 subset=latin;
    @google-font Lato 400 display=swap,subset=latin|latin-ext;
    @import url(https://fonts.googleapis.com/css?family=Lato:400?subset=latin);
    @import url(https://fonts.googleapis.com/css?family=Lato:400?display=swap&subset=latin,latin-ext);

    Usage

    postcss([ require('postcss-google-font') ])

    See PostCSS docs for examples for your environment.

    Install

    npm i @cloudsuite/postcss-google-font

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    6.09 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar