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.3.1 / July 17, 2014 (2014-07-17) [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

ZURB Foundation is a free collection of tools for creating websites and web applications. It contains HTML and CSS-based design templates for typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions.

It is used by Dictionary.com, ZURB's web applications, and others.[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.

Features[edit]

Foundation has relatively incomplete support for HTML 5 and CSS 3, but it is compatible with all major browsers. Basic information of compatibility of websites or applications is available for all devices and browsers. There is a concept of partial compatibility that makes the basic information of a website available for all devices and browsers. For example, the properties introduced in CSS3 for rounded corners, gradients and shadows are used by Foundation despite lack of support by older web browsers. These extend the functionality of the toolkit, but are not required for its use.

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 to a limited extent 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]