Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

postcss-font-variant

Package Overview
Dependencies
0
Maintainers
3
Versions
11
Issues
File Explorer

Advanced tools

postcss-font-variant

PostCSS plugin to transform W3C font-variant properties to more compatible CSS (font-feature-settings)

    5.0.0latest

Version published
Maintainers
3
Weekly downloads
6,736,087
decreased by-14.67%

Weekly downloads

Readme

Source

PostCSS Font-Variant PostCSS Logo

CSS Status Build Status

PostCSS Font-Variant lets you use font-variant in CSS, following the CSS Fonts specification.

Installation

$ npm install postcss-font-variant

Usage

// dependencies var postcss = require("postcss") var fontVariant = require("postcss-font-variant") // css to be processed var css = fs.readFileSync("input.css", "utf8") // process css using postcss-font-variant var out = postcss() .use(fontVariant()) .process(css) .css

Using this input.css:

h2 { font-variant-caps: small-caps; } table { font-variant-numeric: lining-nums; }

you will get:

h2 { font-feature-settings: "smcp"; font-variant-caps: small-caps; } table { font-feature-settings: "lnum"; font-variant-numeric: lining-nums; }

Checkout tests for more examples.


Contributing

Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.

$ git clone https://github.com/postcss/postcss-font-variant.git $ git checkout -b patch-1 $ npm install $ npm test

Changelog

License

Keywords

FAQs

What is postcss-font-variant?

PostCSS plugin to transform W3C font-variant properties to more compatible CSS (font-feature-settings)

Is postcss-font-variant popular?

The npm package postcss-font-variant receives a total of 5,409,536 weekly downloads. As such, postcss-font-variant popularity was classified as popular.

Is postcss-font-variant well maintained?

We found that postcss-font-variant demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 3 open source maintainers collaborating on the project.

Last updated on 12 Jan 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc