Open In App

Bulma Font family

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

Bulma font family class is used to set the font family. There is 5 font family class in Bulma. You can change the font family with the use of one of 5 font family helpers.

Font family Classes:

  • is-family-sans-serif: This class is used to set the font family of family-sans-serif.
  • is-family-monospace: This class is used to set the font family of family-monospace.
  • is-family-primary: This class is used to set the font family of family-primary.
  • is-family-secondary: This class is used to set the font family of family-secondary.
  • is-family-code: This class is used to set the font family of family-code.

Example: Below example illustrate the font family 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 Font family</b>
    <br>
    <div class="container">
        <p class="is-size-5 is-family-sans-serif">GeeksforGeeks</p>
  
        <p class="is-size-5 is-family-monospace">GeeksforGeeks</p>
  
        <p class="is-size-5 is-family-primary">GeeksforGeeks</p>
  
        <p class="is-size-5 is-family-secondary">GeeksforGeeks</p>
  
        <p class="is-size-5 is-family-code">GeeksforGeeks</p>
  
    </div>
</body>
</html>


Output:

Bulma Font family

Reference: https://bulma.io/documentation/helpers/typography-helpers/#font-family



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

Similar Reads