VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-alerts-default/

โ‡ฑ Primer CSS Alerts Default - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Alerts Default

Last Updated : 23 Jul, 2025

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 Alerts are alerts or flash messages to inform us about the status of the actions. Primer CSS Alerts Default is used to create the rounded rectangular alert in light blue color. In this article, we will discuss Primer CSS Alerts Default.

Primer CSS Alerts Default Classes:

  • flash: This class is used to create the flash message.
  • flash-messages: This class is used to add the space on the top and bottom to the flash message.

Syntax:

<div class="flash">
 ....
</div>

Example 1: This example demonstrates the use of the Primer CSS Alerts Default.


Output:

๐Ÿ‘ Image
Primer CSS Alerts Default


Example 2: This example demonstrates the use of the Primer CSS Alerts Default.


Output:

๐Ÿ‘ Image
Primer CSS Alerts Default


Reference: https://primer.style/#default

Comment