Needlessly Promiscuous, Modularize!
    Wondering what’s next for npm?Check out our public roadmap! »

    postcss-google-font

    1.1.0 • Public • Published

    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 postcss-google-font

    DownloadsWeekly Downloads

    39

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    6.93 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar