rework-font-variant

1.0.1 • Public • Published

rework-font-variant

Adds support for the nice font-variant CSS properties that are shorthand for the really awkward font-feature-settings values.

This is part of the CSS spec, but no browser supports the shorthands yet.

Installation

$ npm install rework-font-variant

Example

var variant = require('rework-font-variant');
 
rework(css)
  .use(variant)
  .toString();

API

In your CSS, use the font-variant properties like the spec tells you to:

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

Or use the font-variant shorthand:

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

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    391
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    391
  • 1.0.0
    0
  • 0.0.3
    19
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i rework-font-variant

Weekly Downloads

410

Version

1.0.1

License

MIT

Last publish

Collaborators

  • ianstormtaylor
  • moox