A Foundation 5.4.7 Meteor package with sass support.
Why use this package?
- You can use _settings.scss and override Foundation defaults
- You can use Foundation Javascript plugins easily
- You can have a zero-effort and lightweight styleguide with the Foundation Kitchensink
- Committed to tracking closely with the latest version of Foundation
Please use v0.0.15 or above with Meteor 0.9.0. For those stuck in earlier version of Meteor, get v0.0.13.
Add @import ".meteor/local/build/programs/server/assets/packages/matthew_foundation5-sass/foundation";
to your main .scss file. This will be relative to where you keep your sass files
If you want to configure Foundation, copy the _settings.scss
from the root of this project into your app and add @import "/path/to/settings";
before @import ".meteor/local/build/programs/server/assets/packages/matthew_foundation5-sass/foundation";
.
add {{initFoundation}}
at the very end of the body tag of your page or at the end of your layout template.
This package makes the Foundation Kitchen Sink available so you can have a straightforward styleguide. Just add {{> kitchensink}}
to a template or layout and you will have everything.
This is an option if you are running into problems.
First, checkout this package from github using clone to desktop, etc.
Then, from your meteor project directory:
mkdir -p packages
mrt link-package /path/to/meteor-foundation5-sass
meteor add meteor-foundation5-sass
That should do it. When you add the Sass files you will add it relative to it like this: @import "/path/to/packages/meteor-foundation5-sass/foundation";
You can test this package with meteor test-packages. Currently it checks the following items:
- Are base foundation styles applied?
- Can it find the kitchen sink template?
- Is the $.fn.foundation global object loaded?