--- title: Installation description: There are many ways to install Foundation, but if you're just getting started, we have a few suggestions. video: '6KwsGcEHVTE' --- ## Install with Package Managers Foundation is available on npm, Bower, Meteor, and Composer. The package includes all of the source Sass and JavaScript files, as well as compiled CSS and JavaScript, in uncompressed and compressed flavors.
NPM
npm install foundation-sites
PNPM
pnpm install foundation-sites
Yarn
yarn add foundation-sites
Bower
bower install foundation-sites
Ruby Gems
gem install foundation-rails
Meteor
meteor add zurb:foundation-sites
Composer
php composer.phar require zurb/foundation
NuGet
Install-Package foundation-sites
Here's what comes in the package. ``` ├─ scss Source Sass files. Use this folder as a load path in Sass. ├─ js Source JavaScript files. If you're using a build system, make sure `foundation.core.js` is loaded first. └─ dist Compiled files: ├─ css * Compiled CSS files. Includes minified and unminified files. ├─ js * Concatenated JavaScript files. Includes minified and unminified files. └─ plugins * Standalone JavaScript plugins. ``` --- ## Install with Foundation CLI Not a fan of GUIs? The Node-powered Foundation CLI can install the same template projects for you. Install Foundation CLI: ```bash npm install --global foundation-cli # or sudo npm install --global foundation-cli ```
Depending on how your machine is configured, the command may fail with an `EACCESS` error. To get around this, run the commands with `sudo` at the beginning.
Then use to create a new Foundation project: ```bash foundation new ``` After you selected "Foundation for Sites", Foundation CLI will ask you which template you want to use. You can choose between:

Basic template

Recommended for beginners
A basic template to begin to use Foundation. It includes:

ZURB template

Recommended for experienced (or curious) users
A more advanced project including Foundation and a build process with:

See advanced Template installations

Foundation 5 users: if you already have the Foundation 5 CLI on your machine, you will only be able to access one of the commands, depending on how your command line environment is configured.

To remove the Foundation 5 CLI, run gem uninstall foundation. After testing the Foundation 6 CLI, if you want to remove it to go back to the old CLI, run npm uninstall foundation-cli --global.

Windows users: make sure you've python v2.7 available in your node environment since it's required by the node-gyp tool. There are two way to achieve this

  1. Install the windows-build-tools (recommended) and make python afterwards accessible via npm config set python "%USERPROFILE%\.windows-build-tools\python27\python.exe"
  2. Install python (not recommended) and add it to your system environment variables

The first way is recommended if you've not installed pythong v2.7 yet as it doesn't affect your machine outside the node environment. In case you've already installed python v2.7 you may of course skip both ways and start using foundationc-cli immediately.

--- ## Download

If you aren't into Sass, we have a starter template with compiled CSS and JavaScript, as well as a starting `index.html` file for you to hack on. Just unzip and get coding!

Download Foundation

--- ## CDN Links The folks at [jsDelivr](https://www.jsdelivr.com) host the compressed Foundation CSS and JavaScript for us. Just drop one of these ` ``` From Foundation 6.4, flex is enabled by default and **only the new XY Grid is availaible**. However, others CSS versions are availaible for backward compatibility and the most common usage cases. For others uses and advanced customization, we recommand to build Foundation with custom settings (see others installation methods). ```html ```
See all CDN files and versions
--- ## HTML Starter Template Start with this HTML template and adapt it to your needs. Be sure to include the `.no-js` class on the `html` tag of your template. Adding this class prevents [flash of unstyled content](https://en.wikipedia.org/wiki/Flash_of_unstyled_content) for a number of foundation components. ```html Foundation Starter Template

Hello, world!

``` --- ## Other Integrations The Foundation community has helped us integrate the framework into Rails, WordPress, Django, and more. Head to our [resources page](http://foundation.zurb.com/sites/resources) to find even more ways to use Foundation.