--- title: Colors layout: documentation doc-tab: overview doc-subtab: colors colors: - white - black - light - dark - primary - link - info - success - warning - danger --- {% include subnav-overview.html %}

Colors

The colors that style most Bulma elements and components


Most elements and components have color variations thanks to modifiers with syntax .is-$color, like is-primary or is-dark.

This is thanks to the $colors Sass map, through which Bulma cycles to grab all the colors and their inverts.

{% for color in page.colors %} {% assign derivedColor = site.data.colors.derived | where: "id", color | first %} {% assign initialColor = site.data.colors.initial | where: "id", derivedColor.valueId | first %} {% if derivedColor.invertValue %} {% elsif derivedColor.invertId %} {% assign invertColor = site.data.colors.initial | where: "id", derivedColor.invertId | first %} {% endif %} {% endfor %}
Color Variable Value Computed value Invert value Computed invert value
{{ derivedColor.id | capitalize }} ${{ derivedColor.id }} ${{ initialColor.id }} {% include elements/color-square.html value=initialColor.value %} {{ derivedColor.invertValue }} {% include elements/color-square.html value=derivedColor.invertValue %} ${{ derivedColor.invertId }} {% include elements/color-square.html value=invertColor.value %}