0.8.0 • Published 9 years ago

o- v0.8.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

o-

pronounced "Oh Dash"

A collection of functions, mixins, and placeholders for sass

Install

via npm

npm install o- --save-dev

or through bower

bower install o-dash --save

Usage

Import o- into your sass/scss

@import 'node_modules/o-';

As of node-sass >= v3.0.0, js functions can be registered at configuration time, which is needed for o-md-color and o-closest-md-color functions. You will need node-sass, gulp-sass, or grunt-sass depending on your build setup.

Grunt:

// ...
sass: {
  options: {
    functions: require('o-')
  },
  build: {
    files: {
      'style.css': 'style.scss'
    }
  }
}
// ...

Gulp:

// ...
gulp.task('sass', () => {
  return gulp.src('style.scss')
    .pipe(sass({
      functions: require('o-')
    }))
    .pipe(gulp.src('style.css'))
})
// ...

Node:

// ...
sass.render({
  data: `
    body {
      color: o-closest-md-color(o-random-color())
    }
  `,
  functions: require('o-')
}, (err, result) => {/*...*/})
// ...

API

You can refer to the documentation online at lokua.github.io/o-, or internally by opening doc/index.html.

Dev

NODE_ENV=development && npm install

If adding a new file, run npm run gen afterword to repopulate the lib/_index.scss imports file.

Documentation is generated with the much awesome sassdoc. npm run doc

License

MIT

0.8.0

9 years ago

0.7.1

10 years ago

0.7.0

10 years ago

0.6.1

10 years ago

0.4.3

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.3

10 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago