Open In App

Bulma Text weight

Last Updated : 08 Dec, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

Bulma text weight class is used to set the text into bold text. There are 5 text weights and you can transform the text weight with the use of one of 5 text weight helpers.

Text weight classes:

  • has-text-weight-light: This class is used to transform text weight to light.
  • has-text-weight-normal: This class is used to transform text weight to normal.
  • has-text-weight-medium: This class is used to transform text weight to medium.
  • has-text-weight-semibold: This class is used to transform text weight to semi-bold.
  • has-text-weight-bold: This class is used to transform text weight to bold.

Example: Below example illustrate the text size class in Bulma.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Typography</title>
    <link rel='stylesheet'
          href=
</head>
  
<body class="has-text-centered">
    <h1 class="is-size-2 has-text-success">
        GeeksforGeeks
    </h1>
    <b>Bulma Text weight</b>
    <br>
    <div class="container">
        <p class="is-size-5 has-text-weight-light">GeeksforGeeks</p>
  
        <p class="is-size-5 has-text-weight-normal">GeeksforGeeks</p>
  
        <p class="is-size-5 has-text-weight-medium">GeeksforGeeks</p>
  
        <p class="is-size-5 has-text-weight-semibold">GeeksforGeeks</p>
  
        <p class="is-size-5 has-text-weight-bold">GeeksforGeeks</p>
  
    </div>
</body>
</html>


Output: 

Bulma Text weight 

Reference: https://bulma.io/documentation/helpers/typography-helpers/#text-weight



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads