By default, a tag is a 1.5rem high label.
Tag label
Colors
#
Like with buttons, there are 10 different colors available.
Black
Dark
Light
White
Primary
Link
Info
Success
Warning
Danger
Sizes
#
The tag comes in 3 different sizes.
While the default size is the normal one, the is-normal
modifier exists in case you need to reset the tag to its normal size.
New!
0.7.4
You can change the size of all tags at once:
You can however keep the original size of a subset of tags, simply by applying one of its modifier class:
Medium
Normal
Medium
Large
Medium
Modifiers
#
You can add the is-rounded
modifier to make a rounded tag.
Rounded
You can add the is-delete
modifier to turn the tag into a delete button.
Combinations
#
You can append a delete button.
You can now create a list of tags with the .tags
container.
If the list is very long, it will automatically wrap on multiple lines, while keeping all tags evenly spaced.
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
Thirteen
Fourteen
Fifteen
Sixteen
Seventeen
Eighteen
Nineteen
Twenty
You can attach tags together with the .has-addons
modifier.
You can attach a text tag with a delete tag together.
If you want to attach .tags
containers together, simply use the .field
element with the .is-grouped
and .is-grouped-multiline
modifiers.
This can be useful for a long list of blog tags.
Variables
#
You can use
these variables
to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how.
Name |
Type |
Default value |
Computed value |
Name |
Type |
Default value |
Computed value |
$tag-background-color
|
color
|
$background
|
hsl(0, 0%, 96%)
|
$tag-color
|
color
|
$text
|
hsl(0, 0%, 29%)
|
$tag-radius
|
size
|
$radius
|
4px
|
$tag-delete-margin
|
size
|
1px
|
|