---
title: Form Control Mixins
layout: documentation
doc-tab: utilities
doc-subtab: control-mixins
breadcrumb:
- home
- documentation
- utilities
- utilities-control-mixins
---
In Bulma, the form controls are an essential part of the framework. They comprise the following elements:
-
.button
-
.input
-
.select
-
.file-cta
.file-name
-
.pagination-previous
.pagination-next
.pagination-link
.pagination-ellipsis
The control()
mixin ensures consistency by providing a set of styles that are shared between all these form controls. You can use it to create additional controls:
{% highlight sass %}.bulma-control-mixin {
@include control;
background: deeppink;
color: white;
}{% endhighlight %}
{% capture control-mixin %}
Controls have a default font size of $size-normal
and also come in 3 additional sizes, which can be accessed via 3 additional mixins:
-
{% include elements/snippet-inline.html content="@include control-small;" %} with a font size
$size-small
-
{% include elements/snippet-inline.html content="@include control-medium;" %} with a font size
$size-medium
-
{% include elements/snippet-inline.html content="@include control-large;" %} with a font size
$size-large
{% highlight sass %}.bulma-control-mixin {
&.is-small {
@include control-small;
}
&.is-medium {
@include control-medium;
}
&.is-large {
@include control-large;
}
}{% endhighlight %}
{% capture control-mixin-sizes %}
The control()
mixin also exists as Sass placeholder %control
{% highlight sass %}.bulma-control-extend {
@extend %control;
background: mediumblue;
color: white;
}{% endhighlight %}
{% capture control-extend %}