Foundation’s grid system is based on a 12-column flexbox grid.
.grid-container- Creates a container that centers the grid..grid-x- Row container, direct child of.grid-container..cell- Individual grid cell, direct child of.grid-x.
A comprehensive cheat sheet for the Foundation framework, covering essential UI components, utilities, and best practices for building responsive websites.
|
Foundation’s grid system is based on a 12-column flexbox grid.
|
|
|
Defines column size for different screen sizes (where # is a number from 1-12). Example: |
|
|
Automatically sizes the column based on its content. |
|
|
Column takes up only the space it needs. |
|
Vertical Alignment |
Use classes like |
|
Horizontal Alignment |
Use classes like |
|
Distribution Alignment |
Use classes like |
|
Foundation provides default typography styles. Common elements:
|
|
Helper Classes:
|
|
Primary Color |
Used for main actions and branding. Class: |
|
Secondary Color |
Used for less important actions. Class: |
|
Success Color |
Used for positive feedback. Class: |
|
Warning Color |
Used to indicate caution. Class: |
|
Alert Color |
Used for error messages. Class: |
|
Background Colors |
Use |
|
Text Colors |
Use |
|
Basic Button: |
|
Button Sizes:
|
|
Button Colors:
|
|
Basic Form Input: |
|
Form with Help Text: |
|
Error State: |
|
Basic Navigation Menu:
|
|
Vertical Menu:
|
|
Accordion Menu:
|
|
Dynamically loads content based on media queries.
|
|
Creates a modal window.
|
|
Creates an off-canvas menu.
|