1.0.1 • Published 4 years ago

@cloudsuite/postcss-google-font v1.0.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

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.

1.0.1

4 years ago