Open In App

Bulma Font family

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:



Example: Below example illustrate the font family class in Bulma.




<!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


Article Tags :