Skip to main content
Bulma provides powerful typography helper classes to control text appearance without writing custom CSS.

Text Size

Use is-size-* classes to change the font size. Bulma provides 7 sizes from largest (1) to smallest (7).
<p class="is-size-1">Size 1 (3rem)</p>
<p class="is-size-2">Size 2 (2.5rem)</p>
<p class="is-size-3">Size 3 (2rem)</p>
<p class="is-size-4">Size 4 (1.5rem)</p>
<p class="is-size-5">Size 5 (1.25rem)</p>
<p class="is-size-6">Size 6 (1rem)</p>
<p class="is-size-7">Size 7 (0.75rem)</p>

Size Classes

ClassSizeUse Case
is-size-13remPage titles
is-size-22.5remSection titles
is-size-32remSubsection titles
is-size-41.5remArticle titles
is-size-51.25remLarge text
is-size-61remNormal text
is-size-70.75remSmall text

Responsive Text Sizes

You can change text size based on viewport width.
<p class="is-size-1-mobile is-size-3-tablet is-size-5-desktop">
  Large on mobile, medium on tablet, smaller on desktop
</p>

<p class="is-size-4-touch is-size-2-desktop">
  Size 4 on touch devices, size 2 on desktop
</p>

Available Responsive Modifiers

  • is-size-{1-7}-mobile - Up to 768px
  • is-size-{1-7}-tablet - 769px and above
  • is-size-{1-7}-touch - Up to 1023px
  • is-size-{1-7}-desktop - 1024px and above
  • is-size-{1-7}-widescreen - 1216px and above
  • is-size-{1-7}-fullhd - 1408px and above

Text Alignment

Control text alignment with has-text-* classes.
<p class="has-text-centered">Centered text</p>
<p class="has-text-left">Left aligned text</p>
<p class="has-text-right">Right aligned text</p>
<p class="has-text-justified">Justified text that will stretch to fill the full width of its container with equal spacing between words.</p>

Alignment Classes

ClassAlignment
has-text-centeredCenter aligned
has-text-leftLeft aligned
has-text-rightRight aligned
has-text-justifiedJustified

Responsive Text Alignment

Align text differently based on viewport size.
<p class="has-text-left-mobile has-text-centered-tablet">
  Left on mobile, centered on tablet+
</p>

<p class="has-text-centered-touch has-text-right-desktop">
  Centered on touch, right on desktop
</p>

Available Responsive Alignment Modifiers

  • has-text-{alignment}-mobile
  • has-text-{alignment}-tablet
  • has-text-{alignment}-tablet-only
  • has-text-{alignment}-touch
  • has-text-{alignment}-desktop
  • has-text-{alignment}-desktop-only
  • has-text-{alignment}-widescreen
  • has-text-{alignment}-widescreen-only
  • has-text-{alignment}-fullhd
Where {alignment} can be: centered, left, right, or justified

Text Weight

Control font weight with has-text-weight-* classes.
<p class="has-text-weight-light">Light text (300)</p>
<p class="has-text-weight-normal">Normal text (400)</p>
<p class="has-text-weight-medium">Medium text (500)</p>
<p class="has-text-weight-semibold">Semibold text (600)</p>
<p class="has-text-weight-bold">Bold text (700)</p>
<p class="has-text-weight-extrabold">Extrabold text (800)</p>

Weight Classes

ClassFont WeightNumeric Value
has-text-weight-lightLight300
has-text-weight-normalNormal400
has-text-weight-mediumMedium500
has-text-weight-semiboldSemibold600
has-text-weight-boldBold700
has-text-weight-extraboldExtrabold800

Text Transformation

Transform text with capitalization, uppercase, and lowercase classes.
<p class="is-capitalized">capitalized text</p>
<p class="is-lowercase">LOWERCASE TEXT</p>
<p class="is-uppercase">uppercase text</p>

Transformation Classes

ClassTransformationExample
is-capitalizedCapitalize each word”Hello World”
is-lowercaseAll lowercase”hello world”
is-uppercaseAll uppercase”HELLO WORLD”

Text Style

Add italic or underlined text styling.
<p class="is-italic">Italic text</p>
<p class="is-underlined">Underlined text</p>

Style Classes

ClassStyle
is-italicItalic font style
is-underlinedUnderlined text

Font Family

Change the font family of text.
<p class="is-family-primary">Primary font family</p>
<p class="is-family-secondary">Secondary font family</p>
<p class="is-family-sans-serif">Sans-serif font</p>
<p class="is-family-monospace">Monospace font for code</p>
<p class="is-family-code">Code font family</p>

Font Family Classes

ClassFont FamilyUse Case
is-family-primaryPrimary theme fontBody text
is-family-secondarySecondary theme fontHeadings
is-family-sans-serifSans-serif system fontClean, modern text
is-family-monospaceMonospace system fontCode, technical content
is-family-codeCode fontCode snippets

Combining Typography Helpers

You can combine multiple typography helpers for precise control.
<h1 class="is-size-2 has-text-centered has-text-weight-bold is-uppercase">
  Large Centered Bold Title
</h1>

<p class="is-size-5 has-text-justified has-text-weight-light is-family-serif">
  Light justified paragraph with serif font
</p>

<code class="is-size-6 is-family-monospace has-text-weight-semibold">
  Semibold monospace code
</code>

Practical Examples

Article Header

<header>
  <h1 class="is-size-1 has-text-centered has-text-weight-bold">
    Article Title
  </h1>
  <p class="is-size-6 has-text-centered has-text-weight-light is-uppercase">
    By Author Name
  </p>
</header>

Responsive Typography

<h1 class="is-size-3-mobile is-size-2-tablet is-size-1-desktop 
           has-text-centered-mobile has-text-left-desktop">
  Responsive Heading
</h1>

Code Block

<pre class="is-family-code is-size-7 has-text-left">
  <code>const greeting = 'Hello World';</code>
</pre>
Typography helpers use !important to ensure they override other styles. Combine them freely to achieve your desired text appearance.

Build docs developers (and LLMs) love