Foundation (framework)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
ZURB Foundation
Developer(s) ZURB
Initial release September 2011; 3 years ago (2011-09)
Stable release 5.5.1 / January 29, 2015 (2015-01-29) [1]
Development status Active
Written in HTML, CSS, Sass and JavaScript
Operating system Cross-platform
Type HTML and CSS-based design templates
License MIT License
Website foundation.zurb.com

Foundation is the most advanced responsive front-end framework in the world. Foundation comes in three versions to tackle different project types: [for Emails], [for Sites], [for Apps]. Regardless which one you use, you get a responsive grid and plenty of HTML and CSS UI components, templates, and code snippets. This includes typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions. Foundation is maintained by zurb.com and is an open source project.

Foundation is used by [[1]], [[2]], [[3]] https://www.openstandard.org/, Cisco, Ebay, and Citrix to name a few. ZURB also used Foundation on all their client and [projects].[2]

Origin[edit]

Foundation emerged as a ZURB project to develop front-end code faster and better. In October 2011, ZURB released Foundation 2.0 as open-source under the MIT License.[2] In June 2012 ZURB released a major update, Foundation 3.0.[3] In February 2013 ZURB released another major update, Foundation 4.0.[4]In November 2013 ZURB released another major update, Foundation 5.0. The team is working on the next version of Foundation for Sites which should be release in Spring 2015.

Foundation for Email was released in September 2013

Foundation for Apps was released in December 2014

Features[edit]

Foundation was designed for and tested on numerous browsers and devices. It is a mobile first responsive framework built with Sass/SCSS giving designers best practices for rapid development. The framework includes most common patterns needed to rapidly prototype a responsive site. Through the use of Sass mixins, Foundation components are easily styled and simple to extend.

Since version 2.0 it also supports responsive design.[5] This means the graphic design of web pages adjusts dynamically, taking into account the characteristics of the device used (PC, tablet, mobile phone). Additionally, since 4.0 it has taken a mobile-first approach, designing and developing for mobile devices first, and enhancing the web pages and applications for larger screens.[6]

Foundation is open source and available on Github. Developers are encouraged to participate in the project and make their own contributions to the platform.

Structure and function[edit]

Foundation is modular and consists essentially of a series of Sass stylesheets that implement the various components of the toolkit. Component stylesheets can be included via Sass or by customizing the initial Foundation download. Developers can adapt the Foundation file itself, selecting the components they wish to use in their project.

Adjustments are possible through a central configuration stylesheet. More profound changes are possible by changing the Sass variables.

The use of Sass stylesheet language allows the use of variables, functions and operators, nested selectors, as well as so-called mixins.

Since version 3.0, the configuration of Foundation also has a special "Customize" option in the documentation. Moreover, developers use on a form to chose the desired components and adjust, if necessary, the values of various options to their needs. The subsequently generated package already includes the pre-built CSS style sheet.

Grid system and responsive design[edit]

Foundation comes standard with a 940 pixel wide, flexible grid layout. The toolkit is fully responsive to make use of different resolutions and types of devices: mobile phones, portrait and landscape format, tablets and PCs with a low and high resolution (widescreen). This adjusts the width of the columns automatically.

Understanding CSS stylesheet[edit]

Foundation provides a set of stylesheets that provide basic style definitions for all key HTML components. These provide a browser and system-wide uniform, modern appearance for formatting text, tables and form elements.

Re-usable components[edit]

In addition to the regular HTML elements, Foundation contains other commonly used interface elements. These include buttons with advanced features (for example, grouping of buttons or buttons with drop-down option, make and navigation lists, horizontal and vertical tabs, navigation, breadcrumb navigation, pagination, etc.), labels, advanced typographic capabilities, and formatting for messages such as warnings.

JavaScript plug-ins[edit]

The JavaScript components of Foundation are based on Zepto.js, a lighter but API-compatible alternative to the jQuery JavaScript framework. They provide additional user-interface elements such as dialog, tooltips and carousels. They also extend the functionality of some existing interface elements, including for example a split drop-down button. In version 4.0 the following JavaScript plugins are supported: alerts, clearing, cookie, dropdown, forms, joyride, magellan, orbit, placeholder, reveal, section, tooltips, and topbar.

Use[edit]

To use Foundation in an HTML page developers must first compile one CSS file from the downloaded Sass stylesheets. This can be done with a special compiler. Alternatively, developers can download a pre-compiled CSS file.

Then they must integrate the generated CSS file in the HTML file. If JavaScript components are selected, they must be referenced along with the Zepto.js or jQuery library in the HTML document.

See also[edit]

References[edit]

External links[edit]