Bibliothèque d'icônes Angular (agnostique) | ng-hub-ui-icons

Icônes Angular indépendantes du jeu : affichez Font Awesome, Bootstrap Icons, Material Symbols, Solar ou vos propres SVG via une seule API <hub-icon> / [hubIcon], thématisées par variables CSS.

Styles

Mixins et 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
MixinParamètresDescription
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]`

Variables CSS

Personnalisez chaque pixel avec 6 variables CSS. Remplacez-les au niveau de :root ou limitez-les à un conteneur.

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.

VariablePar défautTypeDescription
--hub-icon-size1emlength Taille de l'icône (font-size pour les glyphes ; largeur/hauteur pour le SVG).
--hub-icon-colorcurrentColorcolor Couleur de l'icône (color pour les glyphes ; fill pour le SVG).
--hub-icon-fill0color Axe FILL de Material Symbols.
--hub-icon-weight400string Axe wght de Material Symbols.
--hub-icon-grade0string Axe GRAD de Material Symbols.
--hub-icon-optical-size24length Axe opsz de Material Symbols.