Skip to content
Related Articles

Related Articles

Primer CSS Body Content Utilities

View Discussion
Improve Article
Save Article
  • Last Updated : 25 Apr, 2022
View Discussion
Improve Article
Save Article

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHub’s design system.

Primer CSS Body Content Utilities is used to change the font size, and font-weight of the element’s body on the marketing pages. We can use classes from f0-mktgf6-mktg. In this article, we will discuss Primer CSS Body Content Utilities.

Primer CSS Body Content Utilities Classes:

  • f*-mktg: The classes vary from f0 to f6 to change the font size and weight.

Syntax:

<p class="f*-mktg">
       ...
</p>

Example 1: The following example demonstrates the Primer CSS Body Content Utilities using f0-mktg, f1-mktg, and f2-mktg classes.

HTML




<!DOCTYPE html>
<html>
      
<head>
    <title> Primer CSS Body Content Utilities </title>
    <link rel="stylesheet" 
          href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css"/>
</head>
  
<body>
    <div class="text-center">
        <h1 class="color-fg-success"> GeeksforGeeks </h1>
        <h3> Primer CSS Body Content Utilities </h3> <br>
          
        <p class="f0-mktg mb-3">
            A Computer Science portal for geeks. 
        </p>
  
        <p class="f1-mktg mb-3">
            It contains well written, well thought
            and well explained computer science and
            programming articles.
        </p>
  
        <p class="f2-mktg">
            A Computer Science portal for geeks.
        </p>
    </div>
</body>
  
</html>

Output:

Primer CSS Body Content Utilities

Example 2: The following example demonstrates the Primer CSS Body Content Utilities using f3-mktg, f4-mktg,  f5-mktg, and f6-mktg classes.

HTML




<!DOCTYPE html>
<html>
      
<head>
    <title> Primer CSS Body Content Utilities </title>
    <link rel="stylesheet" 
          href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css"/>
</head>
  
<body>
    <div class="text-center">
        <h1 class="color-fg-success"> GeeksforGeeks </h1>
        <h3> Primer CSS Body Content Utilities </h3> <br>
          
        <p class="f3-mktg mb-3">
            A Computer Science portal for geeks. 
        </p>
  
        <p class="f4-mktg mb-3">
            It contains well written, well thought
            and well explained computer science and
            programming articles.
        </p>
  
        <p class="f5-mktg">
            A Computer Science portal for geeks.
        </p>
  
        <p class="f6-mktg">
            It contains well written, well thought
            and well explained computer science and
            programming articles.
        </p>
    </div>
</body>
  
</html>

Output:

Primer CSS Body Content Utilities

Reference: https://primer.style/css/utilities/marketing-type#body-content-utilities


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!