Angular-Icon-Bibliothek (set-agnostisch) | ng-hub-ui-icons

Set-agnostische Angular-Icons: rendere Font Awesome, Bootstrap Icons, Material Symbols, Solar oder eigene SVGs über eine <hub-icon> / [hubIcon]-API, thematisiert mit CSS-Variablen.

Stile

Mixins und Stile

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
MixinParameterBeschreibung
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-Variablen

Gestalte jedes Pixel mit 6 CSS-Variablen. Überschreibe sie auf :root oder begrenze sie auf einen 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.

VariableStandardTypBeschreibung
--hub-icon-size1emlength Icon-Größe (font-size für Glyphen; Breite/Höhe für SVG).
--hub-icon-colorcurrentColorcolor Icon-Farbe (color für Glyphen; fill für SVG).
--hub-icon-fill0color Material-Symbols-Achse FILL.
--hub-icon-weight400string Material-Symbols-Achse wght.
--hub-icon-grade0string Material-Symbols-Achse GRAD.
--hub-icon-optical-size24length Material-Symbols-Achse opsz.