Angular Icon Library (set-agnostic) | ng-hub-ui-icons

Icon-set-agnostic Angular icons: render Font Awesome, Bootstrap Icons, Material Symbols, Solar or your own SVGs through one <hub-icon> / [hubIcon] API, themed with CSS variables.

Styles

Mixins and styles

Override the `--hub-icon-*` design tokens in a single include. Every parameter is OPTIONAL and defaults to `null`: only the parameters you pass are emitted, so the rest keep the defaults. `color` defaults to `currentColor`, so an icon inherits its surrounding text colour unless themed. Token-based and self-contained.

Theming with hub-icon-theme
MixinParametersDescription
Theming
hub-icon-theme()
$color--hub-icon-color
$size--hub-icon-size
$weight--hub-icon-weight
$fill--hub-icon-fill
$grade--hub-icon-grade
$optical-size--hub-icon-optical-size
One-call token theming for `<hub-icon>` / `[hubIcon]`

CSS variables

Theme every pixel with 6 CSS variables. Override them at :root or scope them to a wrapper.

Icon

Design tokens read by this component. Override them on the host element (or any ancestor) to customize; every default falls back to the ng-hub-ui-ds layer.

VariableDefaultTypeDescription
--hub-icon-size1emlength Icon size (font-size for glyphs; width/height for SVG).
--hub-icon-colorcurrentColorcolor Icon color (color for glyphs; fill for SVG).
--hub-icon-fill0color Material Symbols FILL axis.
--hub-icon-weight400string Material Symbols wght axis.
--hub-icon-grade0string Material Symbols GRAD axis.
--hub-icon-optical-size24length Material Symbols opsz axis.