Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-font-family-system-ui

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-font-family-system-ui

PostCSS plugin to transform W3C CSS font-family: system-ui to a practical font-family list

  • 2.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
120K
decreased by-10.98%
Maintainers
1
Weekly downloads
 
Created
Source

postcss-font-family-system-ui

CSS Standard Status npm version Build Status Coverage Status Greenkeeper badge

PostCSS plugin to transform W3C CSS generic font-family system-ui to a practical font-family list

Installation

yarn add postcss-font-family-system-ui --dev

Version

postcsspostcss-font-family-system-ui
5.x1.x
6.x2.x

Usage

// dependencies
import postcss from 'postcss'
import fontFamilySystemUI from 'postcss-font-family-system-ui'

// css to be processed
const css = fs.readFileSync('input.css', 'utf8')

// process css using postcss-font-family-system-ui
const out = postcss()
  .use(fontFamilySystemUI())
  .process(css)
  .css

Using this input.css:

body {
  font-family: system-ui;
}

you will get:

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue;
}

Checkout tests for examples.

FAQ

Can I use require('postcss-font-family-system-ui')?

Yes

Keywords

FAQs

Package last updated on 17 Jan 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc