Skip to content

Icon Module

The Icon module provides a flexible container for SVG or image-based icons, with support for sizes, colors, outline/fill, interactive (action) states, and loading/disabled variants.

Signature:

scss
@mixin use-icon($colors: (), $sizes: ());

Example:

scss
@include termeh.use-icon(("primary", "green"), ("small", "large"));
Dependencies

Icon module uses the following Termeh global var():

ComponentTypeUsageDefault
decoratorsizeColorLoading spinner thicknessnull

Icon module uses the following Termeh color() and variant():

Color / VariantUsageDefault
shadeDefault loading spinner colorerror
shademuteDefault action icon colornull
shadereadableDefault hover color for action iconsnull

Modifiers

  • .is-outline → applies color to stroke instead of fill
  • .is-action → makes icon clickable
  • .is-loading → applies loading state
  • .is-disabled → applies disabled state
  • .is-<size> → applies a registered size as icon size
  • .is-<color> → applies a registered color as accent color