Open In App

Bulma Message Colors

Improve
Improve
Like Article
Like
Save
Share
Report

Bulma is a free, open-source CSS framework based on Flexbox. It is component-rich, compatible, and well documented. It is highly responsive in nature. It uses classes to implement its design.

The Bulma Message component is used to provide the colored message blocks to emphasize part of the page. It is a multipart component. 

It contains mainly three parts that are –

  • message container
  • message header
  • message body

Bulma Message Color Feature is used to add the different colors to the message component. The classes used for color features are given below:

  • is-dark: This class used to set the color of the message container to dark brown.
  • is-primary: This class is used to set the color of the message container to light cyan.
  • is-link: This class is used to set the color of the message container to blue.
  • is-info: This class is used to set the color of the message container to light blue.
  • is-success: This class is used to set the color of the message container to green.
  • is-warning: This class is used to set the color of the message container to yellow.
  • is-danger: This class is used to set the color of the message container to red.

Syntax:

<article class="message is-dark">
  <div class="message-header">
    <!-- Message header content -->
  </div>
  <div class="message-body">
      <!-- Message body content -->  
  </div>
</article>

Example:

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Message Colors</title>
  
    <!-- Include Bulma CSS -->
    <link rel='stylesheet' href=
</head>
  
<body>
    <div class='content container has-text-justified'>
        <div class='columns is-mobile is-centered'>
            <div class='column is-8'>
                <h1 class="has-text-success 
                    has-text-centered">GeeksforGeeks
                </h1>
  
                <h3 class="has-text-centered">
                    Bulma Message Colors
                </h3>
  
                <article class="message is-dark">
                    <div class="message-header">
                        <p>GeeksforGeeks - Dark Message Color</p>
                        <button class="delete" aria-label="delete">
                        </button>
                    </div>
                    <div class="message-body">
                        <strong>'GeeksforGeeks'</strong> is
                        a computer science portal.it was
                        created with a goal in mind to
                        provide well written, well thought
                        and well explained solutions for
                        selected questions. The core team
                        of five super geeks constituting
                        of technology lovers and computer
                        science enthusiasts have been
                        constantly working in this direction.
                    </div>
                </article>
  
                <article class="message is-primary">
                    <div class="message-header">
                        <p>GeeksforGeeks - Primary Message Color</p>
                        <button class="delete" aria-label="delete">
                        </button>
                    </div>
                    <div class="message-body">
                        <strong>'GeeksforGeeks'</strong> is
                        a computer science portal.it was
                        created with a goal in mind to
                        provide well written, well thought
                        and well explained solutions for
                        selected questions. The core team
                        of five super geeks constituting
                        of technology lovers and computer
                        science enthusiasts have been
                        constantly working in this direction.
                    </div>
                </article>
  
                <article class="message is-link">
                    <div class="message-header">
                        <p>GeeksforGeeks - Link Message Color</p>
                        <button class="delete" aria-label="delete">
                        </button>
                    </div>
                    <div class="message-body">
                        <strong>'GeeksforGeeks'</strong> is
                        a computer science portal.it was
                        created with a goal in mind to
                        provide well written, well thought
                        and well explained solutions for
                        selected questions. The core team
                        of five super geeks constituting
                        of technology lovers and computer
                        science enthusiasts have been
                        constantly working in this direction.
                    </div>
                </article>
  
                <article class="message is-info">
                    <div class="message-header">
                        <p>GeeksforGeeks - Info Message Color</p>
                        <button class="delete" aria-label="delete">
                        </button>
                    </div>
                    <div class="message-body">
                        <strong>'GeeksforGeeks'</strong> is
                        a computer science portal.it was
                        created with a goal in mind to
                        provide well written, well thought
                        and well explained solutions for
                        selected questions. The core team
                        of five super geeks constituting
                        of technology lovers and computer
                        science enthusiasts have been
                        constantly working in this direction.
                    </div>
                </article>
  
                <article class="message is-success">
                    <div class="message-header">
                        <p>GeeksforGeeks - Success Message Color</p>
                        <button class="delete" aria-label="delete">
                        </button>
                    </div>
                    <div class="message-body">
                        <strong>'GeeksforGeeks'</strong> is
                        a computer science portal.it was
                        created with a goal in mind to
                        provide well written, well thought
                        and well explained solutions for
                        selected questions. The core team
                        of five super geeks constituting
                        of technology lovers and computer
                        science enthusiasts have been
                        constantly working in this direction.
                    </div>
                </article>
  
                <article class="message is-warning">
                    <div class="message-header">
                        <p>GeeksforGeeks - Warning Message Color</p>
                        <button class="delete" aria-label="delete">
                        </button>
                    </div>
                    <div class="message-body">
                        <strong>'GeeksforGeeks'</strong> is
                        a computer science portal.it was
                        created with a goal in mind to
                        provide well written, well thought
                        and well explained solutions for
                        selected questions. The core team
                        of five super geeks constituting
                        of technology lovers and computer
                        science enthusiasts have been
                        constantly working in this direction.
                    </div>
                </article>
  
                <article class="message is-danger">
                    <div class="message-header">
                        <p>GeeksforGeeks - Danger Message Color</p>
                        <button class="delete" aria-label="delete">
                        </button>
                    </div>
                    <div class="message-body">
                        <strong>'GeeksforGeeks'</strong> is
                        a computer science portal.it was
                        created with a goal in mind to
                        provide well written, well thought
                        and well explained solutions for
                        selected questions. The core team
                        of five super geeks constituting
                        of technology lovers and computer
                        science enthusiasts have been
                        constantly working in this direction.
                    </div>
                </article>
            </div>
        </div>
    </div>
</body>
  
</html>


Output:

Reference: https://bulma.io/documentation/components/message/#colors



Last Updated : 07 Feb, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads