![]() |
VOOZH | about |
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.
In this article, we will learn various Primer CSS Labels Elements. Primer CSS offers Labels that provide some metadata to the user or indicates the status of an item. There are 3 types of labels, Labels to indicate metadata, States to show the status, and Counters to indicate the count of a number of items.
Primer CSS Labels elements:
Note: Please refer to the links of Primer CSS Labels elements mentioned above for the respective type of Label element followed by the codes for better understanding. A few sample programs are given below.
Syntax:
<span class="<label-element-classes> ..."> .... </span>
Example 1: The following code demonstrates the issue labels and diffstat labels.
Output:
Example 2: The following code demonstrates the counter and state labels.
Output:
Reference: https://primer.style/