{"name":"postcss-responsive-type","version":"0.3.2","description":"PostCSS plugin that adds responsive magic to font-size","keywords":["postcss","css","postcss-plugin","typography"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/seaneking/postcss-responsive-type.git"},"author":{"name":"Sean King","email":"sean@simpla.io"},"maintainers":[{"name":"seaneking","email":"sean@simpla.io"}],"bugs":{"url":"https://github.com/seaneking/postcss-responsive-type/issues"},"homepage":"https://github.com/seaneking/postcss-responsive-type","dependencies":{"postcss":"^5.0.0"},"devDependencies":{"gulp-eslint":"^0.12.0","gulp-mocha":"^2.0.1","chai":"^2.3.0","gulp":"^3.8.11"},"scripts":{"test":"gulp check"},"gitHead":"19c04d705068d144a8e5b0d03f55a7b29580e927","_id":"postcss-responsive-type@0.3.2","_shasum":"4f4f5a100c1c8281f09ecbb13235af4f1551dfe1","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"seaneking","email":"sean@simpla.io"},"dist":{"shasum":"4f4f5a100c1c8281f09ecbb13235af4f1551dfe1","tarball":"http://registry-npm.ywwl.com/postcss-responsive-type/download/postcss-responsive-type-0.3.2.tgz","integrity":"sha512-Q6hrZHT/FGySkcKYDiIjOUioXt+3YODDpxqxy4RnFGY5XSBhyTthGk1iBv7uBwytXqnQhZ7b7KUS8sw/RrjBKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhKxFf79Nqn0HoczndQ/2zqoVemB/YQqTxRadpD7b9KAIgRSbPKKqFgaI0oYSHiNAwpgtyuJQIVLOXSuKpnbcFOUE="}],"size":3736,"noattachment":false,"key":"/postcss-responsive-type/-/postcss-responsive-type-0.3.2.tgz"},"directories":{},"readme":"# PostCSS Responsive Type\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]\n\n[PostCSS][PostCSS] plugin for automagical responsive typography. Adds a `responsive` property to `font-size`, `line-height` and `letter-spacing` that generates complex `calc` and `vw` based font sizes.\n\nInspired by [this post][post] from [@MikeRiethmuller][mike], and [Typographic][typographic].\n\nPart of [Rucksack - CSS Superpowers](http://simplaio.github.io/rucksack).\n\n![Responsive Type Demo][demo]\n\n##### Quick start:\n\n```css\nhtml {\n  font-size: responsive;\n}\n```\n\n##### Specify parameters:\n\nUnits can be in px, rem, or em. When using em units, be sure that the `font-range` is specified in em as well.\n\n```css\nhtml {\n  font-size: responsive 12px 21px; /* min-size, max-size */\n  font-range: 420px 1280px; /* viewport widths between which font-size is fluid */\n}\n```\n\n##### Expanded syntax:\n\n```css\nhtml {\n  font-size: responsive;\n  min-font-size: 12px;\n  max-font-size: 21px;\n  lower-font-range: 420px;\n  upper-font-range: 1280px;\n}\n```\n\n##### Responsive `line-height` and `letter-spacing`:\n\nPostCSS Responsive Type also allows you to set fluid sizes for the `line-height` and `letter-spacing` properties. They have the same syntax and work the same way as responsive font sizes.\n\n```css\nhtml {\n  line-height: responsive 1.2em 1.8em;\n  line-height-range: 420px 1280px;\n\n  /* or extended syntax: */\n  line-height: responsive;\n  min-line-height: 1.2em;\n  max-line-height: 1.8em;\n  lower-line-height-range: 420px;\n  upper-line-height-range: 1280px;\n}\n```\n\n```css\nhtml {\n  letter-spacing: responsive 0px 4px;\n  letter-spacing-range: 420px 1280px;\n\n  /* or extended syntax: */\n  letter-spacing: responsive;\n  min-letter-spacing: 0px;\n  max-letter-spacing: 4px;\n  lower-letter-spacing-range: 420px;\n  upper-letter-spacing-range: 1280px;\n}\n```\n\n**Note:** Unitless line heights are not supported.\n\n--\n\n### Defaults\nTo get started you only need to specify the `responsive` property, all other values have sane defaults.\n\n##### `font-size`\n\n- `min-font-size`: 14px\n\n- `max-font-size`: 21px\n\n- `lower-font-range`: 420px\n\n- `upper-font-range`: 1280px\n\n\n##### `line-height`\n\n- `min-line-height`: 1.2em\n\n- `max-line-height`: 1.8em\n\n- `lower-line-height-range`: 420px\n\n- `upper-line-height-range`: 1280px\n\n\n##### `letter-spacing`\n\n- `min-letter-spacing`: 0px\n\n- `max-letter-spacing`: 4px\n\n- `lower-letter-spacing-range`: 420px\n\n- `upper-letter-spacing-range`: 1280px\n\n--\n\n### Browser Support\n\n`postcss-responsive-type` just uses calc, vw units, and media queries behind the scenes, so it works on all modern browsers (IE9+). Although Opera Mini is not supported.\n\nLegacy browsers will ignore the output `responsive` font-size. You can easily provide a simple static fallback:\n\n```css\n.foo {\n  font-size: 16px;\n  font-size: responsive;\n}\n```\n\nAlternatively, if you feel the need to fully support legacy browsers or Opera Mini, there are polyfills that can help!\n\n- [respond][respond] for media query support.\n\n- [calc-polyfill][calc-polyfill] for `calc` support.\n\n- [vminpoly][vminpoly] for `vw` unit support.\n\n--\n\n### Usage\n\n```js\npostcss([ require('postcss-responsive-type')() ])\n```\n\nSee [PostCSS][PostCSS] docs for examples for your environment.\n\nYou can use `postcss-responsive-type` with Stylus through [PostStylus][poststylus].\n\n--\n\n### License\n\nMIT © [Sean King](https://twitter.com/seaneking)\n\n[npm-image]: https://badge.fury.io/js/postcss-responsive-type.svg\n[npm-url]: https://npmjs.org/package/postcss-responsive-type\n[travis-image]: https://travis-ci.org/seaneking/postcss-responsive-type.svg?branch=master\n[travis-url]: https://travis-ci.org/seaneking/postcss-responsive-type\n[daviddm-image]: https://david-dm.org/seaneking/postcss-responsive-type.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/seaneking/postcss-responsive-type\n[PostCSS]: https://github.com/postcss/postcss\n[demo]: /demo.gif?raw=true\n[typographic]: https://github.com/corysimmons/typographic\n[post]: http://madebymike.com.au/writing/precise-control-responsive-typography/\n[mike]: https://twitter.com/MikeRiethmuller\n[calc-polyfill]: https://github.com/closingtag/calc-polyfill\n[respond]: https://github.com/scottjehl/Respond\n[vminpoly]: https://github.com/saabi/vminpoly\n[poststylus]: https://github.com/seaneking/poststylus\n","publish_time":1449317640293,"_cnpm_publish_time":1449317640293,"dist-tags":{"latest":"1.0.0"}}