--- title: Modifiers syntax layout: documentation doc-tab: overview doc-subtab: modifiers breadcrumb: - home - documentation - overview - overview-modifiers --- {% capture button_example %} Button {% endcapture %} {% capture button_primary_example %} Button {% endcapture %} {% capture button_colors %} Button Button Button Button Button Button {% endcapture %} {% capture button_sizes %} Button Button Button Button {% endcapture %} {% capture button_states %} Button Button Button {% endcapture %} {% capture button_combinations %} Button Button Button {% 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

Button

Button

Button

Button

Button

Button

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

You can also alter the size:

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

Button

Button

Button

Button

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

Or the style or state:

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

Button

Button

Button

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

Button

Button

Button

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