--- title: Colors layout: documentation doc-tab: overview doc-subtab: colors colors: - id: "white" - id: "black" - id: "light" - id: "dark" - id: "primary" - id: "link" - id: "info" - id: "success" - id: "warning" - id: "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.variables.derived.colors | where: "id", color.id | first %} {% assign initialColor = site.data.variables.initial.colors | where: "id", derivedColor.valueId | first %} {% if derivedColor.invertValue %} {% elsif derivedColor.invertId %} {% assign invertColor = site.data.variables.initial.colors | 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 %}