Sam Rueby
Sam Rueby

Reputation: 6129

How to use compass mixins in a project using Sass

ColorZilla's gradient editor says

// needs latest Compass, add '@import "compass"' to your scss

Well I've found that's not so easy. Obviously if you just throw @import "compass"; at the top of your .scss file, Sass won't compile because _compass.scss can't be found.

I expected this to work like bourbon, though I know this isn't compass's primary goal.

What am I missing?

Upvotes: 0

Views: 6753

Answers (1)

Andrey Stehno
Andrey Stehno

Reputation: 386

  1. Install the library

    bower install compass-sass-mixins

  2. Import the compass into your SASS file

    @import "bower_components/compass-sass-mixins/lib/compass"

  3. Checkout SASS function list:

    https://github.com/askucher/compass-sass-mixins

Upvotes: 7

Related Questions