Skip to content

kstiehl/postcss-google-font

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostCSS Google Font

PostCSS plugin for import Google fonts.

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

  • 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
  • subset (optional): The subset of the font. Use the comma for separated multiples styles: latin,latin-ext
@google-font Lato 400 latin;
@import url(https://fonts.googleapis.com/css?family=Lato:400?subset=latin);

Usage

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

See PostCSS docs for examples for your environment.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%