This is a sass library of useful mixins maintained by Incuna. It is compatible with ruby Sass and node-sass/libsass, the latter being the preferred option
node >= 0.12
node-sass >= 3.4.1
grunt >= 0.4.5
###Ruby sass
sass >= 3.3.0.rc.1
(Compass dependency was removed in 5.0.0 - use release 4.3.0 for Compass projects)compass >= 1.0.0.alpha.17
Incuna sass can be installed via npm or bower
bower install incuna-sass --save
or
npm install --save-dev incuna/incuna-sass
To use incuna-sass with tools like gulp.js, Grunt, or directly with node-sass, provide the path to incuna-sass in your Sass config. There are a couple of convenience methods for this, depending on whether you want Sass to include additional directories or not.
The includePaths
property returns an array of incuna-sass paths to use in your config.
var incunaSass = require('incuna-sass');
incunaSass.includePaths // Array of folder paths
The grunt-sass task uses node-sass (LibSass) underneath, and is the recommended way to use Grunt with incuna-sass.
Example config:
grunt.initConfig({
sass: {
dist: {
options: {
includePaths: require('incuna-sass').includePaths
},
files: {
'path/to/output.css': 'path/to/input.scss'
}
}
}
});
If you are using the Ruby version of Sass with node-bourbon, then you will need to use the grunt-contrib-sass task instead.
Example config:
grunt.initConfig({
sass: {
dist: {
options: {
loadPath: require('incuna-sass').includePaths
},
files: {
'path/to/output.css': 'path/to/input.scss'
}
}
}
});
Once you have declared your import paths correctly, incuna-sass will be available to import in your sass files like this:
@import "incuna-sass";
All development on incuna-sass should be made via github bug reports and pull requests.
To make updates and develop on incuna-sass you'll likely want to link a checked out version of the git repoistory into your own project, rather than use the standard installation. This is easy to do via bower or npm.
git clone -p incuna/incuna-sass
cd incuna-sass
bower link
ornpm link
cd project_dir
bower uninstall incuna-sass && bower link incuna-sass
ornpm uninstall incuna-sass && npm link incuna-sass
This creates a symlink in your bower/npm packages folder to the folder containing your git reposioroy, allowing you to edit the incuna-sass source and see changes reflected in your project.
When you've done some development, you'll need to release a new version of incuna-sass.
Follow these steps to release a new version
- Increment the version in
package.json
- Edit
CHANGELOG.md
with changes since last release - Tag the repository with the version number: e.g.
git tag 2.1.4
- Remember to push the tags:
git push --tags
Incuna-sass is getting a bit of an overhaul.
Incuna-sass 5.0.0 removes compass dependent code from the Incuna-sass library. This means the following files have been removed and will not be supported:
browsers.sass
inline-block.sass
placeholders.sass
sprites.sass
svg-background.sass
- This was replaced by two new svg mixins insvg.sass
To replace some of the Compass mixins and helpers are now using Bourbon. This library includes mixins and helpers for things that are included in Incuna-sass so we have moved those files, and any others that are only needed to support legacy browsers into a legacy
folder that can be added to projects separately when needed. All of these mixins and helpers have been renamed so that they are now prefaced with legacy-
to avoid overwriting / conflicts with Bourbon code
box-sizing.sass
clearfix.sass
font-face.sass
icomoon.sass
pseudo-elements.sass