### Install Foundation Sites Basics Template with Git and Yarn
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/installation.md
Clones the Foundation Sites basics template repository, navigates into the project directory, installs dependencies, and starts the development server using Yarn.
```bash
git clone https://github.com/foundation/foundation-sites-template basic-project
cd basic-project
yarn install
yarn start
```
--------------------------------
### Manually Install Foundation Sites Basic Template
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/starter-projects.md
This snippet provides the commands to manually download, install dependencies, and start the build process for the Foundation Sites Basic template. This template is ideal for simple projects that primarily require Sass compilation.
```bash
# Download the template with Git
git clone https://github.com/foundation/foundation-sites-template projectname
# Move to the project folder, and install dependencies
cd projectname
yarn
# Build the Sass files
yarn start
```
--------------------------------
### Install Foundation Sites Experienced Template with Yarn
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/installation.md
This snippet provides the command-line steps to clone, install dependencies, and start the Foundation Sites experienced template project. It's recommended for users familiar with build processes and includes Handlebars, Sass, Webpack, and BrowserSync.
```bash
git clone https://github.com/foundation/foundation-zurb-template f6-project
cd f6-project
yarn install
yarn start
```
--------------------------------
### Manually Install Foundation ZURB Template
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/starter-projects.md
This snippet outlines the steps to manually download, install dependencies, and start the build process for the Foundation ZURB template. This comprehensive template supports Sass and JavaScript processing, Handlebars templating, and image compression, making it suitable for complex client projects.
```bash
# Download the ZURB template with Git
git clone https://github.com/foundation/foundation-zurb-template projectname
# Move to the project folder, and install dependencies
cd projectname
yarn
# Build the project
yarn start
```
--------------------------------
### Set up and run Foundation Sites documentation locally
Source: https://github.com/foundation/foundation-sites/blob/develop/README.md
Instructions to clone the Foundation Sites repository, install dependencies using Yarn, and start the local documentation server. Requires Node.js version 18 or higher.
```bash
# Install
git clone https://github.com/foundation/foundation-sites
cd foundation-sites
yarn
# Start the documentation
yarn start
```
--------------------------------
### Install Foundation Sites with npm
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/installation.md
Installs the Foundation Sites framework using the npm package manager. This command downloads all necessary source and compiled files.
```bash
npm install foundation-sites
```
--------------------------------
### Install Foundation Sites with Yarn
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/installation.md
Installs the Foundation Sites framework using the Yarn package manager. This command downloads all necessary source and compiled files.
```bash
yarn add foundation-sites
```
--------------------------------
### Set up Basic Equalizer Group in HTML
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/equalizer.md
This HTML snippet demonstrates the fundamental setup for Foundation Equalizer. It shows how to apply `data-equalizer` to a container and `data-equalizer-watch` to its child elements, ensuring they maintain equal height. The example also includes `data-equalize-on="medium"` to activate equalization only on medium screen sizes and above.
```HTML
Pellentesque habitant morbi tristique senectus et netus et, ante.
```
--------------------------------
### Complete Foundation Top Bar with Stacking Example
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/top-bar.md
A comprehensive example of a Foundation top bar, showcasing the `.stacked-for-medium` class in action. This snippet includes a left section with a dropdown menu and a right section with a search input and button, illustrating a typical navigation setup that maintains its horizontal layout on medium screens and larger.
```html
```
--------------------------------
### Include all Foundation SCSS components
Source: https://github.com/foundation/foundation-sites/blob/develop/meteor-README.md
Demonstrates how to include all Foundation SCSS components with a single mixin call, providing a quick way to get started with all features.
```SCSS
@include foundation-everything;
```
--------------------------------
### Understand Foundation Sites Package Structure
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/installation.md
Describes the directory structure and contents of the Foundation Sites package after installation, including source Sass/JS, compiled CSS/JS, and standalone plugins.
```plaintext
├─ 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.
```
--------------------------------
### Configure Python for Node-Gyp on Windows
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/installation.md
Commands to configure the Node.js environment on Windows to ensure Python v2.7 is accessible for node-gyp, either by installing build tools or setting the Python path. This is crucial for successful installation of Foundation CLI on Windows.
```bash
npm config set python "%USERPROFILE%\.windows-build-tools\python27\python.exe"
```
--------------------------------
### Full Orbit Slider with Animation and Navigation
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/orbit.md
This comprehensive HTML example demonstrates a complete Orbit slider setup, including slides with images and captions, navigation controls (previous/next buttons), and bullet pagination. It also applies animation options using "data-options" for fade effects.
```html
Space, the final frontier.
Lets Rocket!
Encapsulating
Outta This World
```
--------------------------------
### Basic XY Grid Structure and Sizing
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/xy-grid.md
This HTML example illustrates the fundamental usage of the XY Grid. It shows how to define grid rows with `.grid-x` and individual columns with `.cell`. The example also demonstrates responsive sizing using classes like `small-6`, `medium-6`, and `large-4` to control cell width across different screen sizes.
```html
full width cell
full width cell
6 cells
6 cells
12/6/4 cells
12/6/8 cells
```
--------------------------------
### Initialize Foundation Sites JavaScript
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/xy-grid/combo-grids.html
Initializes the Foundation JavaScript components on document ready. This is a standard practice to enable interactive features of Foundation.
```javascript
$(document).foundation();
```
--------------------------------
### Global CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/basic-menu-flex.html
This CSS provides basic styling for headings, borders, and example containers within the Foundation menu documentation. It ensures visual separation and consistent presentation of the menu examples.
```css
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; }
h3 { width: 100%; }
.example { padding: 2rem; border: 1px solid #ddd; width: 100%; }
.example + h1 { margin-top: 5rem; }
.example + h3 { margin-top: 3rem; }
```
--------------------------------
### Responsive Embed HTML Example
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/kitchen-sink.md
Provides an example of how to make embedded media, such as YouTube videos, responsive using Foundation's `responsive-embed` class. This ensures that the embedded content scales proportionally to fit its container.
```html
```
--------------------------------
### Basic CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/responsive-menu-flex.html
This CSS provides foundational styling for headings and example containers within the Foundation menu demonstrations. It defines borders, margins, and padding to structure the layout and visually separate content sections.
```CSS
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; }
h3 { width: 100%; }
.example { padding: 2rem; border: 1px solid #ddd; width: 100%; }
.example + h1 { margin-top: 5rem; }
.example + h3 { margin-top: 3rem; }
```
--------------------------------
### Install Foundation Sites with npm
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/sass.md
This command demonstrates how to install the Foundation for Sites framework files using npm, a popular package manager. The `--save` flag adds the package as a dependency in your project's `package.json` file.
```bash
npm install foundation-sites --save
```
--------------------------------
### Install Motion UI with npm or Yarn
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/motion-ui.md
This snippet demonstrates how to install the Motion UI library using either npm or Yarn package managers. It adds Motion UI as a development dependency to your project, making it available for use in your build process.
```bash
npm install motion-ui --save-dev
yarn add motion-ui
```
--------------------------------
### HTML Examples for Native Meter Element Usage
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/progress-bar.md
Demonstrates various configurations of the HTML element with different `value` attributes. These examples illustrate how the element automatically colors itself based on `min`, `low`, `high`, `optimum`, and `max` ranges.
```html
```
--------------------------------
### Complete HTML Example for Foundation Tabs
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/tabs.md
This comprehensive HTML example demonstrates a fully functional tabbed interface using Foundation's `.tabs` and `.tabs-content` components. It combines the tab navigation and corresponding content panels, showing how they link together via IDs and `href` attributes to create an interactive multi-document container.
```html
Check me out! I'm a super cool Tab panel with text content!
four
five
Check me out! I'm a super cool Tab panel with text content!
six
```
--------------------------------
### Demonstrating Configuration Precedence with HTML Data Attributes
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/javascript.md
An example showing how options passed via data-options or individual data- attributes are processed, highlighting that data-options can override individual data- attributes if they specify the same setting.
```html
...
```
--------------------------------
### CSS Styling for Foundation Documentation Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/active-menu-flex.html
Provides basic CSS rules for styling the documentation page elements, including headings and example containers, to improve readability and presentation. These styles are for the documentation itself, not core Foundation components.
```css
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### Initialize Foundation for Sites
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/reveal/close-on-click.html
Initializes all Foundation components on the document, including Reveal modals, after the DOM is ready. This is a standard setup step for Foundation projects.
```JavaScript
$(document).foundation();
```
--------------------------------
### Basic CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/menu-icons-float.html
Provides foundational CSS rules for headings and example containers, ensuring consistent presentation and spacing for the menu demonstrations within the Foundation framework.
```CSS
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### Basic CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/horizontal-menu-alignment-flex.html
Provides basic CSS rules for headings, example containers, and borders to style the Foundation menu demonstration page.
```CSS
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### HTML Progress Bar Examples with Status
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/kitchen-sink.md
This snippet showcases various progress bar implementations using Foundation Sites. It includes examples with different progress percentages and semantic colors (primary, warning, alert, success) to indicate status, along with accessibility attributes.
```HTML
25%
50%
75%
100%
```
--------------------------------
### Basic CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/nested-menu-flex.html
Provides foundational CSS rules for headings and example containers, ensuring visual clarity and proper spacing within the Foundation menu demonstrations.
```CSS
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/simple-menu-float.html
This CSS provides basic styling for headings and example containers, ensuring proper spacing and visual separation within the Foundation menu documentation. It defines borders, margins, padding, and width for `h1`, `h3`, and `.example` classes.
```CSS
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### Initialize Foundation JavaScript Library
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/flex-grid/button-group.html
Initializes the Foundation JavaScript library on document ready. This is a common practice to ensure all Foundation components are properly activated after the DOM is loaded.
```javascript
$(document).foundation();
```
--------------------------------
### Create Basic and Hoverable Dropdowns (HTML)
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/dropdown.md
Demonstrates how to set up basic dropdown panes and their triggers using `data-toggle` and `data-dropdown` attributes. Includes an example of a dropdown with a form and another configured for hover activation using `data-hover` and `data-hover-pane`.
```html
Example form in a dropdown.
Just some junk that needs to be said. Or not. Your choice.
```
--------------------------------
### Foundation Sites HTML Starter Template
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/installation.md
This comprehensive HTML5 starter template provides a basic structure for a Foundation Sites project. It includes essential meta tags, links to Foundation CSS, and scripts for jQuery, what-input, and Foundation JavaScript, along with an initialization script. The .no-js class on the html tag helps prevent a flash of unstyled content (FOUC).
```html
Foundation Starter Template
Hello, world!
```
--------------------------------
### Initialize Foundation JavaScript Components
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/prototype/border-box.html
This JavaScript snippet initializes all Foundation components on the page. It ensures that interactive elements like accordions, reveal modals, and dropdowns function correctly after the DOM is loaded.
```javascript
$(document).foundation();
```
--------------------------------
### Implement Small Grids in Foundation Sites HTML
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/grid.md
This snippet demonstrates how to create responsive grid layouts for small screens using Foundation Sites' `.small-*` classes. It shows examples of 2/10 and 3/9 column divisions within a row.
```html
2
10
3
9
```
--------------------------------
### Build Foundation ZURB Template for Production
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/starter-projects.md
This command is used to compile the Foundation ZURB template into a production-ready build, optimizing all assets for deployment.
```bash
yarn build
```
--------------------------------
### Include All Foundation Components CSS
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/sass.md
This SCSS mixin includes all default CSS output for every Foundation component, providing a quick way to get started with the framework without needing to specify individual components.
```scss
@include foundation-everything;
```
--------------------------------
### Connect Slider to Input Field with Step Size (HTML)
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/slider.md
This example extends the data binding setup by adding a 'data-step' attribute to the slider. This allows the slider to move in specified increments, providing more controlled value adjustments while still linking to an external input field.
```HTML
```
--------------------------------
### Selectively include Foundation SCSS components
Source: https://github.com/foundation/foundation-sites/blob/develop/meteor-README.md
Provides an example of how to import individual Foundation SCSS components using their respective mixins, allowing for a more modular and optimized build by commenting out unneeded parts.
```SCSS
@import 'foundation';
// Global styles
@include foundation-global-styles;
@include foundation-forms;
@include foundation-typography;
// Grids (choose one)
@include foundation-xy-grid-classes;
// @include foundation-grid;
// @include foundation-flex-grid;
// Generic components
@include foundation-button;
@include foundation-button-group;
@include foundation-close-button;
@include foundation-label;
@include foundation-progress-bar;
@include foundation-slider;
@include foundation-switch;
@include foundation-table;
// Basic components
@include foundation-badge;
@include foundation-breadcrumbs;
@include foundation-callout;
@include foundation-card;
@include foundation-dropdown;
@include foundation-pagination;
@include foundation-tooltip;
// Containers
@include foundation-accordion;
@include foundation-media-object;
@include foundation-orbit;
@include foundation-responsive-embed;
@include foundation-tabs;
@include foundation-thumbnail;
// Menu-based containers
@include foundation-menu;
@include foundation-menu-icon;
@include foundation-accordion-menu;
@include foundation-drilldown-menu;
@include foundation-dropdown-menu;
// Layout components
@include foundation-off-canvas;
@include foundation-reveal;
@include foundation-sticky;
@include foundation-title-bar;
@include foundation-top-bar;
// Helpers
@include foundation-float-classes;
// @include foundation-flex-classes;
@include foundation-visibility-classes;
// @include foundation-prototype-classes;
```
--------------------------------
### Implement Responsive Grid Layouts with Foundation Sites
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/kitchen-sink.md
This example illustrates the Foundation Sites responsive grid system, demonstrating how to define column widths for different screen sizes (small, medium, large) using `row` and `columns` classes. It shows various column combinations to achieve flexible layouts.
```html
2/3/4 columns
4/3/4 columns
6/6/4 columns
12/12/3 columns
12/12/6 columns
12/12/3 columns
6/6/2 columns
6/6/8 columns
12/12/2 columns
3 columns
9 columns
12/8/4 columns
12/4/8 columns
```
--------------------------------
### Dropdown Pane HTML Example
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/kitchen-sink.md
Demonstrates how to create a simple dropdown pane using Foundation's `data-toggle` attribute on a button and `data-dropdown` on the pane itself. This allows for toggling the visibility of the associated content.
```html
Just some junk that needs to be said. Or not. Your choice.
```
--------------------------------
### Disable Motion UI Animation for Foundation Orbit Component
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/orbit.md
To disable Motion UI animations for a Foundation Orbit component, set the `data-use-m-u-i` attribute to `false` on the main Orbit container. This prevents the component from using Motion UI for its transitions and effects. The first example shows a minimal setup, while the second provides a complete Orbit component structure.
```html
```
```html
Space, the final frontier.
Lets Rocket!
Encapsulating
Outta This World
```
--------------------------------
### Initialize Foundation JavaScript Components
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/xy-grid/block-grid.html
This JavaScript snippet ensures that all Foundation components are properly initialized once the DOM is ready. It's a standard practice to enable interactive features and plugins provided by the Foundation framework.
```JavaScript
$(document).foundation();
```
--------------------------------
### Initialize Foundation Sites with jQuery
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/sticky/simple-menu.html
This snippet initializes the Foundation Sites JavaScript framework on the document ready event. It ensures that all Foundation components are properly set up and ready for use after the DOM is fully loaded. This is a common practice for single-page applications or pages that rely heavily on JavaScript-driven UI components.
```JavaScript
$(document).foundation();
```
--------------------------------
### Implement Accordion Menu with Separate Submenu Toggle in HTML
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/accordion-menu.md
This HTML example shows how to configure an accordion menu to have a separate toggle for sub-menus, allowing the parent link to be clickable independently. It requires adding the `data-submenu-toggle="true"` attribute to the main `
` element, alongside `data-accordion-menu` and `.vertical` classes. This setup enables a distinct interaction for expanding/collapsing nested menus.
```HTML
```
--------------------------------
### Flex Grid Layout HTML Example
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/kitchen-sink.md
Shows how to implement responsive grid layouts using Foundation's Flex Grid system. It demonstrates the use of `row` and `columns` classes, along with breakpoint prefixes like `small-`, `medium-`, and `large-` to define column widths across different screen sizes.
```html
6 columns
6 columns
12/6/4 columns
12/6/8 columns
```
--------------------------------
### CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/menu-centered-flex.html
Defines basic CSS rules for headings, borders, margins, and padding to style the examples on the page, including a bottom border for h1 and spacing for example blocks.
```css
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### Initializing All Foundation Plugins with jQuery
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/javascript.md
Illustrates how to initialize all Foundation plugins on the page by calling the .foundation() function on the jQuery document object.
```js
$(document).foundation();
```
--------------------------------
### Styling for Drilldown Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/vertical-drilldownmenu-alignment-float.html
Provides basic CSS styling for headings, borders, margins, and example containers to visually separate and highlight drilldown menu examples within the documentation. This CSS helps in presenting the menu structures clearly.
```CSS
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### Display Live HTML Demos with `html_example` in Markdown
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/style-sherpa.md
Explains how to use the `html_example` language specifier in Markdown fenced code blocks to automatically render both the HTML code sample and a live interactive demo in the Style Sherpa output.
```markdown
```html_example
```
```
--------------------------------
### Initialize Foundation for Sites
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/prototype/image-replacement.html
This JavaScript snippet initializes the Foundation framework on page load, enabling its components and plugins.
```javascript
$(document).foundation();
```
--------------------------------
### Basic CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/basic-menu-float.html
This CSS snippet provides foundational styling for the menu examples, including borders, margins, and width definitions for headings and example containers. It helps structure the visual presentation of the menu components.
```css
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; }
h3 { width: 100%; }
.example { padding: 2rem; border: 1px solid #ddd; width: 100%; }
.example + h1 { margin-top: 5rem; }
.example + h3 { margin-top: 3rem; }
```
--------------------------------
### Define CSS Styles for Example Boxes and Debugging
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/prototype/border-box.html
This CSS snippet defines base styles for example boxes, including fixed dimensions and `content-box` sizing, along with utility classes for adding colored borders for debugging purposes. These styles are used to visually demonstrate the effects of the CSS box model.
```css
.example-box { width: 300px; height: 200px; margin-bottom: 10px; box-sizing: content-box; } .debug-red { border: 1px solid #ff0000; } .debug-blue { border: 1px solid #0000ff; }
```
--------------------------------
### Initialize Foundation for Sites
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/prototype/list-styling-unordered.html
This JavaScript snippet initializes the Foundation framework on the document ready event, enabling all Foundation components and plugins to function correctly.
```JavaScript
$(document).foundation();
```
--------------------------------
### Initialize Foundation Sites JavaScript
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/xy-grid/containers.html
Initializes all Foundation Sites JavaScript components on page load. This is a standard practice to ensure interactive elements like dropdowns, accordions, and other plugins function correctly after the DOM is ready.
```javascript
$(document).foundation();
```
--------------------------------
### Basic CSS Styling for Foundation Menu Examples
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/menu/horizontal-menu-alignment-float.html
Provides general CSS rules for headings and example containers to structure the demonstration of Foundation menus.
```CSS
h1 { border-bottom: 1px solid #ddd; margin-bottom: 2rem; width: 100%; } h3 { width: 100%; } .example { padding: 2rem; border: 1px solid #ddd; width: 100%; } .example + h1 { margin-top: 5rem; } .example + h3 { margin-top: 3rem; }
```
--------------------------------
### Initialize Foundation for Sites Components
Source: https://github.com/foundation/foundation-sites/blob/develop/test/visual/slider/nonzero-start.html
This JavaScript snippet initializes all Foundation for Sites components on the page once the DOM is fully loaded. It's a standard call required to activate Foundation's plugins and interactive elements.
```JavaScript
$(document).foundation();
```
--------------------------------
### Separate Style Guide Sections in Markdown
Source: https://github.com/foundation/foundation-sites/blob/develop/docs/pages/style-sherpa.md
Demonstrates how to add multiple distinct sections to a Style Sherpa guide by inserting four line breaks between Markdown headings.
```markdown
# Buttons
Lorem ipsum dolor sit amet, **consectetur adipisicing** elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
# Forms
Lorem ipsum dolor sit amet, `