--- title: Bulma's Modifiers Syntax layout: docs theme: start doc-tab: start doc-subtab: syntax breadcrumb: - home - documentation - start - start-syntax --- {% capture button_example %} {% endcapture %} {% capture button_primary_example %} {% endcapture %} {% capture button_colors %} {% endcapture %} {% capture button_sizes %} {% endcapture %} {% capture button_states %} {% endcapture %} {% capture button_combinations %} {% endcapture %}

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

{{button_example}}

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

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

{{button_primary_example}}

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

You can use one of the 6 main colors:

  • is-primary
  • is-link
  • is-info
  • is-success
  • is-warning
  • is-danger

{% highlight html %}{{ button_colors }}{% endhighlight %}

You can also alter the size:

  • is-small
  • is-medium
  • is-large

{% highlight html %}{{ button_sizes }}{% endhighlight %}

Or the style or state:

  • is-outlined
  • is-loading
  • [disabled]

{% highlight html %}{{ button_states }}{% endhighlight %}
As a result, it's very easy to combine modifiers:

{% highlight html %}{{ button_combinations }}{% endhighlight %}