Foundation is a Responsive Front-End Framework that gives you a base for building responsive websites.
- Using the builder to download...
- Pure CSS (also comes with a boilerplate)
- Get it in Sass (uses grunt / bower / libsass) or (use compass)
- Responsive Grid
- Responsive Navigation
- Typography
- Button Styles
- Prebuilt Plugins
We’ll choose to build our Foundation project using the Sass way.
[sudo] npm install -g bower grunt-cli
gem install foundation
cd path/to/sites
foundation new project_name --libsass
- Look in Gruntfile.js
- The "Default" task runs a
buildand starts towatchyour sass files. - For deployment you can just run the "Build" task using
grunt build.
- The "Default" task runs a
- Look at
_settings.scssandapp.scssunder the Sass folder.- Notice that Foundation lets you include everything or just bits to help control file size.
- Notice you that almost all settings and variables can be overwritten.
- Look at the
bower.jsonfile- Look at
bower_components, notice Foundation has a dependency of jQuery and Modernizr - Look at how scripts are linked on the page using
bower_components.
- Look at
- Add navigation
- Use the off-canvas nav
- Make a linked menu item
- Make some content and add a Responsive Grid
- Add Orbit
- Add a second page
With all the flexibility of using Node, Grunt, and Bower there are so many directions you could quickly take your project. Do you want to build out a template setup for your html files? Look at assemble or grunt html build or many more. Do you want to add support for minifying JS or building out responsive images? Do you want to add Live Reload? All of this can be done using Grunt plugins.
