Foundation (framework)

{{Short description|Web design front-end framework}}

{{About|the CSS framework|the Objective-C framework|Foundation Kit}}

{{Infobox software

| name = ZURB Foundation

| logo =

| screenshot =

| caption =

| developer = ZURB

| released = {{start date and age|2011|09}}

| latest release version = {{wikidata|property|preferred|references|edit|Q5474308|P348|P548=Q2804309}}

| latest release date = {{wikidata|qualifier|preferred|single|Q5474308|P348|P548=Q2804309|P577}}

| latest preview version =

| latest preview date =

| platform =

| repo = {{URL|https://github.com/zurb/foundation-sites|Foundation Repository}}

| programming language = HTML, CSS, Sass and JavaScript

| genre = Web development

| license = MIT License

| website = {{url|https://get.foundation/}}

}}

Foundation is a free responsive front-end framework, providing a responsive grid and HTML and CSS UI components, templates, and code snippets, including typography, forms, buttons, navigation and other interface elements, as well as optional functionality provided by JavaScript extensions. Foundation is an open source project, and was formerly maintained by ZURB. Since 2019, Foundation has been maintained by volunteers.{{cite web|url=https://github.com/foundation/foundation-sites/issues/11767|title=Is Zurb Foundation in active development?|website=GitHub |accessdate=21 Nov 2019}}

Origin

Foundation emerged as a ZURB project to develop front-end code more efficiently. In October 2011, ZURB released Foundation 2.0 as open source under the MIT License.{{cite web|url=http://www.zurb.com/article/805/start-here-build-everywhere-announcing-fo|title=Announcing Foundation by ZURB|accessdate=22 Aug 2012}} ZURB released Foundation 3.0 in June 2012,{{cite web|url=https://techcrunch.com/2012/06/29/zurb-launches-foundation-3-to-take-on-twitters-bootstrap-framework/|title=ZURB Launches Foundation 3 To Take On Twitter's Bootstrap Framework|date=29 June 2012 |accessdate=22 Aug 2012}} 4.0 in February 2013,{{cite web|url=https://techcrunch.com/2013/02/28/responsive-design-framework-foundation-4-launches/|title=Responsive Design Framework Foundation 4 Goes Mobile-First, Switches From jQuery To Zepto|date=28 February 2013 |accessdate=28 Feb 2013}} 5.0 in November 2013, and 6.0 in November 2015. The team started working on the next version of Foundation for Sites 7 which most likely will drop support for older browsers and implement newer technologies like flexbox or maybe calculated grid system.

Foundation for Emails, formerly known as ZURB Ink, was released in September 2013.

Foundation for Apps was released in December 2014.

Features

Foundation was designed for and tested on numerous browsers and devices. It is a responsive framework built with Sass/SCSS. The framework includes most common patterns needed to prototype a responsive site.

Since version 2.0 it also supports responsive design.{{cite web|url=http://www.alistapart.com/articles/dive-into-responsive-prototyping-with-foundation/|title=A List Apart: Dive into Responsive Prototyping with Foundation|date=10 April 2012|accessdate=22 Aug 2012}} This means the graphic design of web pages adjusts dynamically, taking into account the characteristics of the device used (PC, tablet, mobile phone). Version 4.0 has taken a mobile-first approach, designing and developing for mobile devices first, and enhancing the web pages and applications for larger screens.{{cite web|url=https://venturebeat.com/2013/02/28/zurb-foundation-4/|title=Zurb releases Foundation 4, a mobile-first, 'forward-thinking dev/designer's dream'|date=28 February 2013|accessdate=28 Feb 2013}}

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

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.

=Grid system and responsive design=

Foundation comes standard with a 940 pixel wide, flexible Grid (graphic design) 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=

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.{{Cite web |title=CSS Introduction |url=https://www.w3schools.com/css/css_intro.asp |access-date=2023-03-14 |website=www.w3schools.com |language=en-US}}

=Reusable components=

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 components and plug-ins=

The JavaScript components of Foundation 4 were moved from jQuery JavaScript library to Zepto, on a presumption that the physically smaller, but API-compatible alternative to JQuery would prove faster for the user. However, Foundation 5 moved back to the newer release JQuery-2. "jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8." the official ZURB blog explains,{{cite web|url=http://zurb.com/article/1293/why-we-dropped-zepto|title=Why we dropped Zepto}} and the unsigned writer claims that the switch back was due to issues of compatibility with customized efforts; and that performance was found to be not as good, on use testing with the newer jQuery-2.

Use

There are three levels of integration for Foundation: CSS, SASS, and Ruby on Rails with the Foundation Rails Gem.[http://foundation.zurb.com/docs/index.html Foundation Documentation] {{Webarchive|url=https://web.archive.org/web/20151028235812/http://foundation.zurb.com/docs/index.html |date=2015-10-28 }} on Thursday, April 30, 2015

=CSS=

To use Foundation CSS, default or custom CSS packages can be downloaded from the download page and installed into the appropriate web server folders. Foundation is then integrated into HTML page markup.[http://foundation.zurb.com/docs/css.html Foundation Getting Started] {{Webarchive|url=https://web.archive.org/web/20151029043400/http://foundation.zurb.com/docs/css.html |date=2015-10-29 }} on Thursday, April 30, 2015

=Sass=

The Foundation Sass install uses Ruby, Node.js, and Git to install Foundation sources. Foundation then provides a command line interface to modify and compile source to CSS for use in HTML page markup.[https://get.foundation/sites/docs/sass.html Foundation Getting Started] on Thursday, April 30, 2015

=Foundation Rails gem=

The Foundation Rails gem can be installed by adding "gem 'foundation-rails'" to the Rails Application Gemfile.[https://get.foundation/sites/docs-v5/applications.html Foundation Getting Started] on Thursday, April 30, 2015

References

{{Reflist|30em}}