Open In App

Primer CSS Small Progress

Last Updated : 21 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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 offers various progress bars such as large, small, and inline. In this article, we will discuss small progress. The small progress bar is a little smaller than the default progress bar.

Primer CSS Small Progress Class:

  • Progress–small: This class is used to create a small progress bar than the default one.

Syntax:

<span class="Progress Progress--small">
  <span class="Progress-item 
      color-bg-color-name-emphasis" >
      ...
  </span>
</span>

Note: color-name can be primary, success, alert, warning, etc.

Example 1: This example demonstrates the use of the Primer CSS Small progress using Progress–small and color-bg-success-emphasis classes.

HTML




<!DOCTYPE html>
<html>
  
<head>
  <title> Primer CSS Small Progress </title>
  <link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css" />
</head>
  
<body style="margin-inline: 10rem;">
  <div class="text-center">
    <h1 class="color-fg-success"> GeeksforGeeks </h1>
    <h3> Primer CSS Small Progress </h3>
  </div>
  
  <span class="mt-5 Progress Progress--small">
    <span class="Progress-item color-bg-success-emphasis" 
      style="width: 30%;">
    </span>
  </span>
</body>
  
</html>


Output:


Primer CSS Small Progress

Example 2: This is another example that demonstrates the use of the Primer CSS Small progress using Progress–small and color-bg-danger-emphasis classes.

HTML




<!DOCTYPE html>
<html>
  
<head>
  <title> Primer CSS Small Progress </title>
  <link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css" />
</head>
  
<body style="margin-inline: 10rem;">
  <div class="text-center">
    <h1 class="color-fg-success"> GeeksforGeeks </h1>
    <h3> Primer CSS Small Progress </h3>
  </div>
  
  <span class="mt-5 Progress Progress--small">
    <span class="Progress-item color-bg-danger-emphasis" 
      style="width: 70%;">
    </span>
  </span>
</body>
  
</html>


Output:

Primer CSS Small Progress

Reference: https://primer.style/css/components/progress#small-progress 



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads