1.23.0 • Published 2 months ago

web-fonts v1.23.0

Weekly downloads
1
License
ISC
Repository
github
Last release
2 months ago

web-fonts

PostCSS web font injector (PostCSS plugin)

Installation

npm i web-fonts

Usage

const postcss = require('postcss');
const webfonts = require('web-fonts');

const specification = {
  import: "url('https://fonts.googleapis.com/css?family=Roboto')",
  family: "'Roboto', sans-serif",
  selector: 'html, input, button',
};

postcss([ precss, webfonts(specification) ]).process...

Developers

Options object example.

{
  import: "url('https://fonts.googleapis.com/css?family=Roboto')",
  family: "'Roboto', sans-serif",
  selector: 'html, input, button',
}
1.23.0

2 months ago

1.22.0

3 months ago

1.21.0

6 months ago

1.19.0

11 months ago

1.20.0

8 months ago

1.18.0

1 year ago

1.17.0

1 year ago

1.16.0

1 year ago

1.15.0

1 year ago

1.14.0

1 year ago

1.13.0

2 years ago

1.12.0

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.9.0

3 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.2

7 years ago

1.0.1

7 years ago