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 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 discuss large progress. Large progress is a little taller than the default.
Primer CSS Large Progress Class:
- Progress–large: This class is used to create a large progress bar than the default one.
Syntax:
<span class="Progress Progress--large"> <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 Large progress using Progress–large and color-bg-success-emphasis classes.
HTML
<!DOCTYPE html> < html > < head > < title > Primer CSS Large 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" > w3wiki </ h1 > < h3 > Primer CSS Large Progress </ h3 > </ div > < span class = "mt-5 Progress Progress--large" > < span class = "Progress-item color-bg-success-emphasis" style = "width: 30%;" > </ span > </ span > </ body > </ html > |
Output:
Example 2: This is another example that demonstrates the use of the Primer CSS Large progress using Progress–large color-bg-danger-emphasis class.
HTML
<!DOCTYPE html> < html > < head > < title > Primer CSS Large 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" > w3wiki </ h1 > < h3 > Primer CSS Large Progress </ h3 > </ div > < span class = "mt-5 Progress Progress--large" > < span class = "Progress-item color-bg-danger-emphasis" style = "width: 50%;" > </ span > </ span > </ body > </ html > |
Output:
Reference: https://primer.style/css/components/progress#large-progress
Contact Us