The Foundation Framework is one of the most popular web development frameworks available. It’s responsive, easily customized, and is very well documented by both Zurb and the community. This makes it one of the most powerful frameworks. The best way to take advantage of Foundation is by leveraging SCSS (Sassy Cascading Style Sheet). I’ll go over what’s required within Windows to begin your first web development project using Foundation.
Foundation is an amazing responsive framework built on HTML, CSS, and jQuery for developing websites, applications, and marketing material. It allows you to quickly and easily develop a mobile-first template which includes predefined content and navigation components. One of the best features of Foundation is the ability to use SaSS to easily make customizations to CSS. SCSS (commonly referred to as SaSS) provides the ability to use variables within CSS. One variable defines a value for multiple CSS properties. If you’ve never used SCSS before, don’t worry – I’ll cover it all and it will make more sense once you dive in.
I highly recommend checking out the Foundation Kitchen Sink for a quick look at Foundation’s default but easily customized styling. You can find out more about Foundation by visiting Zurb’s website. I highly recommend reading a quick write-up on Sass Basics from sass-lang.com. It explains Sass in plain English. It should make sense as long as you know the basics of CSS and a little markup.
A few console-based tools can get you started in just a few minutes. I’ll cover where to download the following tools.
The following steps assume you will be using Git from the Windows Command Prompt. Don’t worry if you’re not sure what this means.
The foundation-cli is a set of command-line tools for creating, watching, and building foundation projects.
At this point you can now manually browse to your project’s directory. Open the example index.html file and begin playing around. I highly suggest start by changing some of the colour pallet, such as primary and secondary colours, in /scss/_settings.scss. Watch the command prompt pick up the changes, write those changes to your CSS files, and then re-load the index.html file.
Some people prefer to use their own style sheet to override a framework’s default styles. However this can be frustrating when some Foundation styles can be deeper than ones you specify in your own style sheets causing the Foundation styles to take precedence. Remember, the last style applied is not always the style to take precedence. If it’s a global change, make the change to the SCSS and avoid the frustration.