--- layout: documentation doc-tab: modifiers doc-subtab: syntax --- {% include subnav-modifiers.html %}

Modifiers syntax

Most Bulma elements have alternative styles. To apply them, you only need to append one of the modifier classes.
They all start with is- or has-.


Let's start with a simple button that uses the "button" CSS class:

{% capture button_example %} Button {% endcapture %}

{{button_example}}

{% highlight html %} {{button_example}} {% endhighlight %}

By adding the "is-primary" CSS class, you can modify the color:

{% capture button_primary_example %} Button {% endcapture %}

{{button_primary_example}}

{% highlight html %} {{button_primary_example}} {% endhighlight %}

You can use one of the 5 main colors:

  • is-primary
  • is-info
  • is-success
  • is-warning
  • is-danger
{% highlight html %} Button Button Button Button Button {% endhighlight %}

You can also alter the size:

  • is-small
  • is-medium
  • is-large
{% highlight html %} Button Button Button Button {% endhighlight %}

Or the style or state:

  • is-outlined
  • is-loading
  • is-disabled
{% highlight html %} Button Button Button {% endhighlight %}