Skip to content

Latest commit

 

History

History
 
 

typey-chroma-kss

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fork-able normalize-scss
for Typey, Chroma and KSS

Using with node-sass

  1. Copy these files to your Sass project.
  2. This fork-able version requires:

Add them to your package.json with:

npm install --save-dev typey chroma-sass
  1. Add the dependencies' directories to your nodeSass' includePaths option.
var sass = require('node-sass'),
 path = require('path');

sass.render({
 file: scss_filename,
 includePaths: [
   path.dirname(require.resolve('chroma-sass')),
   path.dirname(require.resolve('typey'))
 ]
}, function(err, result) { /*...*/ });

Using with libSass

If you are not using node-sass with libSass, you probably already know how to include 3rd party libraries into your Sass project.

  1. Copy these files to your Sass project.
  2. This fork-able version requires the chroma Sass module and the typey Sass module. Add chroma's sass directory and typey's stylesheets directory to your libSass include paths in the "usual way".

Using with Ruby Sass

In addition to copying these files to your Sass project, you'll also need to:

  1. Edit your Gemfile file to add:
gem 'chroma-sass', '~> 1.0'
gem 'typey', '~> 1.0.0'
  1. Optionally, edit your config.rb file to add:
require 'chroma-sass'
require 'typey'
  1. Update your local Gems with:
bundle install