Book Image

Learning Zurb Foundation

By : Kevin Horek
Book Image

Learning Zurb Foundation

By: Kevin Horek

Overview of this book

<p>Responsive web design is the next big thing in web design right now. It allows you to control and adapt to the user experience across a variety of devices, screens, and resolutions. Foundation is one of the most well-known responsive frameworks available, and allows you to speed up the prototyping, designing, and theming of your web project; as well as allowing you to create your own custom themes to suit your needs. It makes your life easier by giving you a grid, elements, and JavaScript functions that are responsive and easily customized to work with any web or mobile project that arises.</p> <p>This book starts off with teaching you the basics, and gradually moves on to cover the most advanced parts of this amazing framework. You will learn how to use Foundation to prototype, design, and theme your projects as well as discover how to use the framework with any programming language or content management system.</p>
Table of Contents (17 chapters)
Learning Zurb Foundation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

What is Grunt?


At the time of writing this book, there are over 2,000 tasks or plugins that Grunt can do for you and are listed at http://gruntjs.com/plugins. Let's open the Gruntfile.js file in the root of our project directory just so you understand better what is happening. This is also where you can add other tasks or plugins you get from the previous link.

So, in Gruntfile.js, on line 7, it is calling to Foundation that was installed through Bower earlier. This is the core of Foundation and you should never modify the files in any of the folders under bower_components. Then, you will see that it compresses elements present on line 5, and on line 26, it includes the SCSS app.scss file, the one we are making theming changes in, and then outputs it into css/app.css. The following is the code:

sass: {
      options: {
        includePaths: ['bower_components/foundation/scss']
      },
      dist: {
        options: {
          outputStyle: 'compressed'
        },
        files: {
       ...