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-styleWith Git
git clone https://github.com/tachyons-css/tachyons-font-styleUsage
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.cssUsing 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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Authors
License
MIT