Open In App

Bulma Tags Colors

Bulma tags are very useful to attach information to a block or other component. Tags are small in comparison to buttons which makes it more appropriate for a long list of items and display numbers. 

In this article, we will learn about the different colors of tags.



Bulma Tags Colors Classes:

Syntax:



<li class="tag is-white">...</li>

Example 1: The below example shows the use of tag color classes in Bulma




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Tag Colors</title>
    <link rel='stylesheet' href=
</head>
<body>
    <li class="tag is-black">GeeksforGeeks</li>
    <li class="tag is-dark">GeeksforGeeks</li>
    <li class="tag is-light">GeeksforGeeks</li>
    <li class="tag is-white">GeeksforGeeks</li>
</body>
  
</html>

Output:

Bulma Tags Colors

Example 2: The following demonstrates the other tag colors.




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Tag color</title>
    <link rel='stylesheet' href=
</head>
  
<body class="has-text-centered">    
    <h2 class="is-size-2 has-text-success">
      GeeksforGeeks
    </h2>
    <b>Bulma Tags Colors</b><br/>
    <div class="container">
        <li class="tag is-primary">GeeksforGeeks</li>
        <li class="tag is-link">GeeksforGeeks</li>
        <li class="tag is-info">GeeksforGeeks</li>
        <li class="tag is-success">GeeksforGeeks</li>
        <li class="tag is-warning">GeeksforGeeks</li>
        <li class="tag is-danger">GeeksforGeeks</li>
    </div>
</body>
</html>

Output:

Bulma Tags Colors

Example 3:  We can also add a light version to the tag’s color using is-light to the color modifier.




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Tag color</title>
    <link rel='stylesheet' href=
</head>
  
<body class="has-text-centered">
      
    <h2 class="is-size-2 has-text-success">
      GeeksforGeeks
    </h2>
    <b>Bulma Tags Colors</b><br/>
    <div class="container">
        <li class="tag is-primary is-light">GeeksforGeeks</li>
        <li class="tag is-link is-light">GeeksforGeeks</li>
        <li class="tag is-info is-light">GeeksforGeeks</li>
        <li class="tag is-success is-light">GeeksforGeeks</li>
        <li class="tag is-warning is-light">GeeksforGeeks</li>
        <li class="tag is-danger is-light">GeeksforGeeks</li>
    </div>
</body>
</html>

Output:

Bulma Tags Colors

Reference Link: https://bulma.io/documentation/elements/tag/#colors


Article Tags :