Middleman using Foundation 6

I want to use Middleman with the wonderful Foundation 6. Here is the repo I found on the Middleman website.

I have Middleman installed, as well as tools for Xcode developers. When I run middleman init -T james-weaver/middleman-foundation-6 portfolio in my terminal, I get an Unknown Project Template error.

What am I doing wrong here?

+1
middleman zurb-foundation-6 middleman-4
source share
1 answer

Try installing the foundation sites (v6) at the root of your Middleman project using NPM:

 cd middleman-project npm init -y npm install foundation-sites --save 

Then in the file source/stylesheets/site.css.scss add:

 @import '../../node_modules/foundation-sites/scss/foundation'; @include foundation-everything; 

It works! Finally, you can look at the foundation.scss file and configure what foundation-everything loaded.

0
source share

All Articles