ss
sans-serif
npm i sans-serif
ss

sans-serif

A css module for utilizing system fonts across platforms

by Adam Morse

1.0.0 (see all)License:MITTypeScript:Not Found
npm i sans-serif
Readme

sans-serif 1.0.0

CSS module for utilizing system fonts

Stats

29611
bytesselectorsdeclarations

Installation

With npm

npm install --save-dev sans-serif

With Git

git clone https://github.com/tachyons-css/sans-serif

Usage

Using with PostCSS

Import the css module

@import "sans-serif";

Then process the CSS using the tachyons-cli

$ npm i -g tachyons-cli
$ tachyons-cli path/to/css-file.css > dist/t.css

Using the CSS

The built CSS is located in the css directory. It contains an unminified and minified version. You can either cut and paste that css or link to it directly in your html.

<link rel="stylesheet" href="path/to/module/css/sans-serif">

Development

The source CSS files can be found in the src directory. Running $ npm start will process the source CSS and place the built CSS in the css directory.

The CSS

/*

  SYSTEM FONTS

*/
.sans-serif { font-family: -apple-system, 'avenir next', avenir, roboto, noto, 'helvetica neue', helvetica, ubuntu, 'franklin gothic medium', 'century gothic', sans-serif; }
/*
  Reference:

  https://webkit.org/blog/3709/using-the-system-font-in-web-content/
  https://en.wikipedia.org/wiki/Avenir_(typeface)
  https://www.google.com/design/spec/style/typography.html#typography-typeface

*/

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors

License

MIT

Downloads/wk

41

GitHub Stars

82

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.0
latest
6yrs ago
No alternatives found
No tutorials found
Add a tutorial