Primer CSS Small Progress
Last Updated :
21 Apr, 2022
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
Similar Reads
Primer CSS Progress Primer CSS is a free open-source CSS framework that is built upon the GitHub design system to provide support to the broad spectrum of Github websites. It creates the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are ste
4 min read
Primer CSS Large Progress 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
2 min read
Primer CSS Inline Progress 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
2 min read
Primer CSS Typography Primer CSS is a free open-source CSS framework that is built upon a GitHub design system to provide support to the broad spectrum of GitHub websites. It creates the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are stead
5 min read
Primer CSS Small Box Shadow Primer CSS is a free open-source CSS framework that is built upon systems that create 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 CS
2 min read