Axis is a terse, feature-rich css library built on top of stylus. It is built on top of nib, providing a number of additional useful tools and mixins.
You can install axis through npm, as such
npm install axis
Axis is a stylus plugin, and can be integrated in any way that stylus plugins normally are. If you are curious how to use stylus plugins, feel free to check out this guide.
By default, axis' mixins will be included automatically into all parsed stylesheets when included as above. If you'd like to import axis manually in stylus when you want to use it, you can pass { implicit: false }
to the axis call, as such:
axis({ implicit: false })
If you do it this way, you'll need to @import
axis manually wherever you'd like access to the mixins, as such:
@import 'axis'
normalize-css()
base()
...etc...
We are working on an official documentation site for axis at the moment. In the meantime, you might be able to find what you need in the thoroughly commented source, or in this outdated documentation for an older version. Really sorry about this transitional period, real documentation will be online soon!
- Details on the license can be found here
- Details on running tests and contributing can be found here