sass / libsass

A C/C++ implementation of a Sass compiler
https://sass-lang.com/libsass
Other
4.33k stars 463 forks source link

Use with compass? #82

Closed jleppert closed 10 years ago

jleppert commented 11 years ago

Is it possible (now or in the future) to use libsass with Compass? Compass does add a bunch of custom sass functions, and I'm wondering if it would be possible to call back into Ruby (using Ruby C API) for those functions (in lieu of writing all those functions in C)?

lamosty commented 10 years ago

this would be really helpful. Can't work without compass

frewsxcv commented 10 years ago

@chriseppstein Do you need any help with making Compass compatible with libsass?

chriseppstein commented 10 years ago

@frewsxcv I need libsass to support Sass 3.3 features. That's the biggest blocker.

ronilaukkarinen commented 10 years ago

I also would like to libsass (to go with gulp) to support Sass 3.3 and preferably Compass. Would make my life so much easier. Because of so many caveats using with libsass only I'm now using gulp-ruby-sass.

twhitbeck commented 10 years ago

@chriseppstein am I right in thinking the latest version of libsass (3.0) which targets Sass 3.4 should be sufficient for making Compass compatible?

stffndtz commented 10 years ago

+1

ChrissiQ commented 10 years ago

How's this doing? I'd be very excited to use libsass with compass. Compile times with ruby are killing me on Windows.

tommmyy commented 9 years ago

+1

sheadawson commented 9 years ago

+1

callaars commented 9 years ago

+1

JingleChannel commented 9 years ago

+1

mikeya commented 9 years ago

+1

amcc commented 9 years ago

using grunt-sass with compass-mixins as a Bower package worked well for me. See this how to, then look at comment #27 on this page: http://benfrain.com/lightning-fast-sass-compiling-with-libsass-node-sass-and-grunt-sass/ Seems to work fine as far as i can tell

chriseppstein commented 9 years ago

FYI: https://github.com/Compass/compass/issues/1916

drewwells commented 9 years ago

Check out Wellington, it is a drop in replacement for Compass but is built with libsass. There's benchmarks comparing it to Compass and https://github.com/wellington/grunt-wellington for integrating Wellington with Grunt.

On OS X, install it with brew

brew install wellington
wt -h
Zauberfisch commented 9 years ago

wow, that looks really interesting as a temporarily solution until compass has been ported over. thanks for sharing @drewwells

jeromecovington commented 9 years ago

+1 for this issue in general. But in the specific, I am looking for drop in replacements for these:

@import "compass/css3";
@import "compass/css3/user-interface";
@import "compass/css3/transform";
@import "compass/utilities/general/clearfix";

Does anybody know about compass support in general, to date? Is there support for the above?

drewwells commented 9 years ago

I created Wellington as a libsass powered replacement for the spriting aspects of compass. You can install it with brew, more info here: https://github.com/wellington/wellington

For the compass mixins, there are sass libraries that emulate those ie. https://github.com/Igosuki/compass-mixins On Tue, May 5, 2015 at 2:35 PM Jerome Covington notifications@github.com wrote:

+1 for this issue in general. But in the specific, I am looking for drop in replacements for these:

@import "breakpoint"; @import "compass/css3"; @import "compass/css3/user-interface"; @import "compass/css3/transform"; @import "compass/utilities/general/clearfix";

Does anybody know about compass support in general, to date? Is there support for the above?

— Reply to this email directly or view it on GitHub https://github.com/sass/libsass/issues/82#issuecomment-99172341.

Snugug commented 9 years ago

The official direction of the Libcompass project is a pivot from C to a Node Sass compatible core called Eyeglass

Most of the most popular Compass extensions will likely be ported to Eyeglass. Breakpoint will be (and is available now as a Bower install). With the Node pipeline, CSS3 mixins are generally handled through Autoprefixer. There are other Clearfix mixins, like the one provided by Toolkit (likewise Bower available, will be Eyeglass available).

xzyfer commented 9 years ago

Compass will never be compatible with Libsass. Compass pokes around in the Ruby Sass internals for some things which simply isn't possible with Libsass.

If you're just using the css3 and/or utility mixins then you can bower install compass and use the mixins directly. Alternatively I would recommend:

As @Snugug points out, over time more and more Compass functionality will be made available in node-sass via Eyeglass which is run by the author of Compass. More information in https://github.com/Compass/compass/issues/1916#issuecomment-95646204.