![]() |
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 about Primer CSS Alerts Color. Primer CSS Alerts Color is used to add colors to the alerts like blue, red, green and yellow.
Classes:
Syntax:
<div class="flash flash-*"> Flash message goes here. </div>
Note: * represent a class that is used to provide color. We will discuss these classes below
Example 1: In this example, we will display Alerts using classes flash and flash-warn
Output:
Example 2: In this example, we will learn about classes flash-error and flash-success to show red and green color alerts respectively
Output:
Reference: https://primer.style/#colors