![]() |
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.
Primer CSS Subhead is a container that has a light gray bottom border. We can use Subhead-heading class to create the heading of Subhead. We can use other classes like Subhead-description, Subhead-actions, Subhead--spacious, etc.
Primer CSS Subhead Classes:
Syntax:
<div class="Subhead">
<h2 class="Subhead-heading">
...
</h2>
...
</div>
Example 1: This example demonstrates the implementation of the Primer CSS Subhead using Subhead, Subhead-heading, and Subhead-description classes.
Output:
Example 2: This example demonstrates the implementation of the Primer CSS Subhead using Subhead--spacious, Subhead-actions, and Subhead-heading--danger classes.
Output: