Open In App

Foundation CSS Prototyping Utilities

Last Updated : 18 Oct, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Foundation CSS is an open-source and responsive front-end framework built by the ZURB foundation in September 2011, that makes it easy to layout stunning responsive websites, apps, and emails that appear amazing and can be accessible to any device.

The Prototyping Utilities facilitate the building of the prototype layouts and UI i.e. helps to build the coded prototypes that will be developed from the beginning. Every Utility has a mixin, along with the custom classes or swap classes for mixins, in order to produce a cleaner markup.

Enabling Prototype Mode: For enabling prototype mode just pass $prototype: true in the foundation-everything() mixin in your main Sass file.

Responsive breakpoints: Responsive breakpoints are disabled by default.

Component Styling: Components styling is used to give style to the components by adding radius, border, and shadow, to it. It is mainly used with cards, tables, buttons, images, etc.

Arrow Utility: The prototyping arrow utility is a visual representation or icon that helps to navigate to different pages on a website. It is generally used as the dropdown arrow for navigation.

Separator: The prototyping utility separator helps to create the line gap ie., the tiny separator below the heading of an element, and is generally used inside the head section.

Font Styling: This utility helps to provide some styling to the text.

List Styling: This utility helps to provide some styling to the lists.

Text Transformation: The Prototyping utilities text transformation helps to handle the case of the text i.e we can convert the case to lowercase, uppercase, and capitalized case.

Margin Helpers: Prototyping utilities margin helpers are used to creating spacing all around the elements using various margin classes. 

Padding Helpers: Prototyping utilities padding helpers are used to creating some space around the content of the element.

Sizing: Prototyping utility sizing is used to give width and height to an element.

Border box: The prototyping utility border-box is used to add the content, padding, and border to the element. It will not give the margin within the width and height properties of CSS.

Border none: Prototyping utilities border none are used to sets the border property of any element to none.

Positioning:  It is used to change an element’s position value.

Overflow: The overflow class can be used for clipping the content or managing the content, which will be rendering the scrollbar to display the content while the content overflows from the block-level container.

Example 1: Below is the example that illustrates the use of Prototyping Utilities Components Styles.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Foundation CSS Prototyping Utilities Component Styling</title>
  
    <!-- foundation-float.min.css: Compressed CSS with legacy Float Grid -->
    <link rel="stylesheet" href=
        crossorigin="anonymous">
  
    <!-- foundation-prototype.min.css: Compressed CSS with prototyping classes -->
    <link rel="stylesheet" href=
        crossorigin="anonymous">
  
    <!-- foundation-rtl.min.css: Compressed CSS with right-to-left reading direction -->
    <link rel="stylesheet" href=
         crossorigin="anonymous"></head>
  
<body style="margin:10rem;">
    <center>
        <h2 style="color: green;">
            GeeksforGeeks
        </h2>
        <h3>Foundation CSS Component Styling</h3>
  
        <button type="button" 
                class="button radius bordered shadow primary">
            GFG
        </button>
        <button type="button" 
                class="button rounded bordered shadow secondary">
            GFG
        </button>
        <button type="button" 
                class="button radius bordered shadow success">
            GFG
        </button>
        <button type="button" 
                class="button rounded bordered shadow alert">
            GFG
        </button>
        <button type="button" 
                class="button radius bordered shadow warning">
            GFG
        </button>
    </center>
</body>
</html>


Output:

 

Example 2: The following code demonstrates the Foundation CSS Prototyping Utility Border box.

HTML




<!DOCTYPE html>
<html>
    
<head>
    <title> Foundation CSS Prototyping Utilities Border box </title>
    <link rel="stylesheet" href=
        crossorigin="anonymous">
    <link rel="stylesheet" href=
        crossorigin="anonymous">
    <link rel="stylesheet" href=
        crossorigin="anonymous">
</head>
    
<body style="margin-inline:10rem;">
    <center>
        <h2 style="color:green;"> GeeksforGeeks </h2>
        <h3> Foundation CSS Prototyping Utilities Border box </h3>
        
        <div class="callout border-box"> geekforgeeks.org</div>
    </center>
</body>
</html>


Output: 

 

Reference: https://get.foundation/sites/docs/prototyping-utilities.html#positioning



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads