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
| Mixin | Parameter | Beschreibung |
|---|---|---|
| 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.
| Variable | Standard | Typ | Beschreibung |
|---|---|---|---|
--hub-icon-size | 1em | length | Icon-Größe (font-size für Glyphen; Breite/Höhe für SVG). |
--hub-icon-color | currentColor | color | Icon-Farbe (color für Glyphen; fill für SVG). |
--hub-icon-fill | 0 | color | Material-Symbols-Achse FILL. |
--hub-icon-weight | 400 | string | Material-Symbols-Achse wght. |
--hub-icon-grade | 0 | string | Material-Symbols-Achse GRAD. |
--hub-icon-optical-size | 24 | length | Material-Symbols-Achse opsz. |