Skip to main content
Bulma provides a comprehensive set of color helper classes to quickly apply text and background colors to any element.

Text Colors

Use has-text-* classes to change the text color of an element.

Basic Colors

<p class="has-text-primary">Primary text</p>
<p class="has-text-link">Link text</p>
<p class="has-text-info">Info text</p>
<p class="has-text-success">Success text</p>
<p class="has-text-warning">Warning text</p>
<p class="has-text-danger">Danger text</p>
<p class="has-text-light">Light text</p>
<p class="has-text-dark">Dark text</p>
<p class="has-text-text">Text color</p>
<p class="has-text-white">White text</p>
<p class="has-text-black">Black text</p>

Available Text Colors

ClassDescription
has-text-primaryPrimary theme color
has-text-linkLink color (blue)
has-text-infoInfo color (cyan)
has-text-successSuccess color (green)
has-text-warningWarning color (yellow)
has-text-dangerDanger color (red)
has-text-lightLight color
has-text-darkDark color
has-text-textDefault text color
has-text-whiteWhite color
has-text-blackBlack color

Background Colors

Use has-background-* classes to change the background color of an element.
<div class="has-background-primary">Primary background</div>
<div class="has-background-link">Link background</div>
<div class="has-background-info">Info background</div>
<div class="has-background-success">Success background</div>
<div class="has-background-warning">Warning background</div>
<div class="has-background-danger">Danger background</div>
<div class="has-background-light">Light background</div>
<div class="has-background-dark">Dark background</div>

Available Background Colors

ClassDescription
has-background-primaryPrimary theme color
has-background-linkLink color (blue)
has-background-infoInfo color (cyan)
has-background-successSuccess color (green)
has-background-warningWarning color (yellow)
has-background-dangerDanger color (red)
has-background-lightLight color
has-background-darkDark color
has-background-whiteWhite color
has-background-blackBlack color
has-backgroundDefault background color

Shade Colors

Bulma includes grayscale shades for more subtle color variations.
<!-- Text shades -->
<p class="has-text-black-bis">Black bis text</p>
<p class="has-text-black-ter">Black ter text</p>
<p class="has-text-grey-darker">Grey darker text</p>
<p class="has-text-grey-dark">Grey dark text</p>
<p class="has-text-grey">Grey text</p>
<p class="has-text-grey-light">Grey light text</p>
<p class="has-text-grey-lighter">Grey lighter text</p>
<p class="has-text-white-ter">White ter text</p>
<p class="has-text-white-bis">White bis text</p>

<!-- Background shades -->
<div class="has-background-grey-darker">Grey darker background</div>
<div class="has-background-grey-lighter">Grey lighter background</div>

Available Shades

Text ClassBackground ClassDescription
has-text-black-bishas-background-black-bisSlightly lighter than black
has-text-black-terhas-background-black-terEven lighter than black-bis
has-text-grey-darkerhas-background-grey-darkerVery dark grey
has-text-grey-darkhas-background-grey-darkDark grey
has-text-greyhas-background-greyStandard grey
has-text-grey-lighthas-background-grey-lightLight grey
has-text-grey-lighterhas-background-grey-lighterVery light grey
has-text-white-terhas-background-white-terSlightly darker than white
has-text-white-bishas-background-white-bisEven darker than white-ter

Color Variants

Each color has several variants for different use cases.

Light Variants

<p class="has-text-primary-light">Light primary text</p>
<p class="has-text-info-light">Light info text</p>
<p class="has-text-success-light">Light success text</p>

<div class="has-background-primary-light">Light primary background</div>
<div class="has-background-info-light">Light info background</div>

Dark Variants

<p class="has-text-primary-dark">Dark primary text</p>
<p class="has-text-info-dark">Dark info text</p>
<p class="has-text-success-dark">Dark success text</p>

<div class="has-background-primary-dark">Dark primary background</div>
<div class="has-background-info-dark">Dark info background</div>

Soft and Bold Variants

<!-- Soft variants (more subtle) -->
<p class="has-text-primary-soft">Soft primary text</p>
<div class="has-background-danger-soft">Soft danger background</div>

<!-- Bold variants (more vibrant) -->
<p class="has-text-primary-bold">Bold primary text</p>
<div class="has-background-success-bold">Bold success background</div>

Invert Variants

<p class="has-text-primary-invert">Inverted primary text</p>
<p class="has-text-light-invert">Inverted light text</p>
<p class="has-text-dark-invert">Inverted dark text</p>

<div class="has-background-primary-invert">Inverted primary background</div>

On Scheme Variants

<p class="has-text-primary-on-scheme">Primary on scheme text</p>
<div class="has-background-info-on-scheme">Info on scheme background</div>

Lightness Scale

Each color supports a full lightness scale from 00 (darkest) to 100 (lightest) in increments of 5.
<!-- Text with lightness scale -->
<p class="has-text-primary-00">Primary at 0% lightness</p>
<p class="has-text-primary-25">Primary at 25% lightness</p>
<p class="has-text-primary-50">Primary at 50% lightness</p>
<p class="has-text-primary-75">Primary at 75% lightness</p>
<p class="has-text-primary-100">Primary at 100% lightness</p>

<!-- Background with lightness scale -->
<div class="has-background-info-20">Info at 20% lightness</div>
<div class="has-background-success-40">Success at 40% lightness</div>
<div class="has-background-danger-60">Danger at 60% lightness</div>

Available Lightness Values

You can use any of these lightness values: 00, 05, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100
<p class="has-text-primary-30-invert">Inverted text at 30% lightness</p>
<div class="has-background-danger-45-invert">Inverted background at 45% lightness</div>

Special Color Classes

Bulma includes special color utilities for common use cases.
<p class="has-text-current">Uses currentColor</p>
<p class="has-text-inherit">Inherits color from parent</p>

<div class="has-background-current">Uses currentColor as background</div>
<div class="has-background-inherit">Inherits background from parent</div>
ClassDescription
has-text-currentSets color to currentColor
has-text-inheritInherits color from parent
has-background-currentSets background to currentColor
has-background-inheritInherits background from parent

Hoverable Colors

Add the is-hoverable class to make colors interactive on hover and active states. This also works automatically on <a> and <button> elements.
<a class="has-text-primary">Link with hover effect</a>
<button class="has-background-info">Button with hover effect</button>

<div class="has-text-success is-hoverable">
  Div with hover effect
</div>

Color Palettes

Create CSS custom properties for a color palette with the is-palette-* class.
<div class="is-palette-primary">
  <!-- Access color variables -->
  <div style="color: var(--color)">Uses primary color</div>
  <div style="color: var(--color-30)">Uses primary at 30% lightness</div>
</div>
Color palettes set up CSS custom properties like --h, --s, --l, --color, and --color-{digit} for easy programmatic color manipulation.

Build docs developers (and LLMs) love