Socket
Book a DemoInstallSign in
Socket

postcss-google-font

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-google-font

PostCSS plugin for import Google fonts

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
4
-73.33%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

postcss

FAQs

Package last updated on 05 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.