JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q72194F
  • License MIT

Performance based css module.

Package Exports

  • tachyons-font-style/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tachyons-font-style) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tachyons-font-style 2.1.0

Performance based css module.

Stats

162 8 8
bytes selectors declarations

Installation

With npm

npm install --save-dev tachyons-font-style

With Git

git clone https://github.com/tachyons-css/tachyons-font-style

Usage

Using with PostCSS

Import the css module

@import "tachyons-font-style";

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/tachyons-font-style">

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

/*

   FONT STYLE

*/
.i { font-style: italic; }
.fsn { font-style: normal; }
@media screen and (min-width: 48em) {
 .i-ns { font-style: italic; }
 .fsn-ns { font-style: normal; }
}
@media screen and (min-width: 48em) and (max-width: 64em) {
 .i-m { font-style: italic; }
 .fsn-m { font-style: normal; }
}
@media screen and (min-width: 64em) {
 .i-l { font-style: italic; }
 .fsn-l { font-style: normal; }
}

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