nfo

npm-font-open-sans

npm package of Open Sans (incl. CSS/LESS/SCSS)

Showing:

Popularity

Downloads/wk

7.2K

GitHub Stars

6

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

Apache-2.0

Type Definitions

Tree-Shakeable

No?

Categories

Readme

github tag npm version npm downloads License


npm package of Open Sans

Open Sans is a humanist sans serif typeface designed by Steve Matteson.

Installation

Install with npm

$ npm i npm-font-open-sans --save

Usage

This a sample for usage in a LESS file:

# part of your LESS file
@import '../../../node_modules/npm-font-open-sans/open-sans';
@FontPathOpenSans: "../fonts/open-sans";

First import the LESS file of the font and after this overwrite the default path. That's it ...

You can do the same with SCSS/SASS too ...

# part of your SCSS file
$FontPathOpenSans: "../fonts/open-sans";
@import '../../../node_modules/npm-font-open-sans/open-sans';

You can do the same with Stylus too ...

# part of your SCSS file
$FontPathOpenSans = "../fonts/open-sans";
@import '../../../node_modules/npm-font-open-sans/open-sans.styl';

Source of font files

Open Sans at FontFaceKit

License

Fonts: Licensed under Apache 2.0


Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100