-
Notifications
You must be signed in to change notification settings - Fork 867
Use Compass #29
Comments
One option is to install grunt-contrib-compass, and amend the
Then you can run |
Nice, @jmbarlow 👍 |
Hi, The problem is that once compass is installed and take over sass in Gruntfile.js, ['bower_components/foundation/scss'] doesn't load anymore. Get this error:
Tried add_import_path = "bower_components/foundation/scss" and extensionsDir = "bower_components/foundation/scss" in the config.rb, without success. Any hint? |
Ok forget the additionnal path in config.rb and add it in Gruntfile.js instead
Just need to @import compass files in app.scss then. |
Awesome, thanks! Ended up just running with grunt on this project but will try this out next time. |
For those of us command line-phobes using compass.app with FoundationPress you simply need to replace the @import commands in scss/app.scss and scss/config/_settings.scss with the absolute path to the files. So in app.scss replace In _settings.scss replace |
Hi, I don't know what I am getting wrong but trying to use this thread a s a tutorial to install compass resulted in errors and me having re-install the theme multiple times. I even tried the grunt-contrib-compass option but that resulted in the same. Is someone willing to give me an idiots guide on adding compass to a clean install of this theme? |
Front-end tooling for Foundation can be handled in two ways - with Compass or with lib-sass. FoundationPress uses the lib-sass approach, where the compilation of SCSS files into CSS is performed using a grunt task. To use Compass with FoundationPress, you need a 'config.rb' file. This provides configuration parameters for the compass command line tool. Optionally, you can also trigger Compass compilation via Grunt, which is the purpose of the code block right at the start of the thread [when added to Gruntfile.js]. Here's an example 'config.rb' that I use with FoundationPress. With this, you'll get the same output regardless of whether you use Grunt/lib-sass or Compass [or Grunt/Compass if you configure that]
|
👍 |
Hi. Can you simply use compass on this theme? I'm not having luck.
The text was updated successfully, but these errors were encountered: