CSS manipulations built on css, allowing you to automate vendor prefixing, create your own properties, inline images, anything you can imagine!
$ npm install rework
- styl - CSS preprocessor built on Rework
- rework-pure-css - bleeding-edge, spec-compliant CSS
- rework-suit - CSS preprocessor for SUIT
- resin - Opinionated CSS preprocessor for Topcoat
- [Myth] (https://github.com/segmentio/myth) - CSS preprocessor built using Rework
Return a new Rework
instance for the given string of css
.
Use the given plugin fn
. A rework "plugin" is simply a function accepting
the stylesheet object and Rework
instance.
Return the string representation of the manipulated css. Optionally you may
compress the output with .toString({ compress: true })
and/or generate an
inline source map with .toString({ sourcemap: true })
External modules:
- extend — add
extend: selector
support - ease — several additional easing functions
- at2x — serve high resolution images
- prefixSelectors — add prefixes to selectors
- colors — add colour helpers like
rgba(#fc0, .5)
- mixin — add custom property logic with mixing
- function — Add user-defined CSS functions
- references — add property references support
height: @width
etc - significant whitespace - nested and indented syntax like Stylus and SASS
- url - rewrite
url()
s with a given function - variables - W3C-style variables
- more third-party plugins and utilities
(The MIT License)
Copyright (c) 2012 - 2013 TJ Holowaychuk [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.