Color
Use is-primary, is-tertiary, is-link, is-info, is-success, is-warning, or is-danger only on components that document role support.
Semantic text roles
These follow the surrounding section palette, including tinted and dark sections:
has-text-default
has-text-muted
has-text-subtle
Exact palette values
Choose a family and step when the precise token matters. Families are primary, tertiary, link, info, success, warning, danger, and neutral. Steps are 100, 300, 400, 500, 700, and 900. The 400 shade mixes 70% of the base color with white, midway between 300 and 500.
has-text-primary-500
has-text-neutral-700
has-background-info-100
has-background-danger-900
Exact background steps do not set a foreground color. Pair them with a deliberate text utility and check contrast.
Solid role backgrounds
The existing solid helpers choose their matching on-color automatically:
has-text-primary has-background-primary
has-text-tertiary has-background-tertiary
has-text-link has-background-link
has-text-info has-background-info
has-text-success has-background-success
has-text-warning has-background-warning
has-text-danger has-background-danger