Librería de iconos para Angular (agnóstica) | ng-hub-ui-icons
Iconos para Angular agnósticos al set: renderiza Font Awesome, Bootstrap Icons, Material Symbols, Solar o tus propios SVG con una sola API <hub-icon> / [hubIcon], tematizados con variables CSS.
Estilos
Mixins y estilos
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 | Parámetros | Descripción |
|---|---|---|
| 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
Personaliza cada detalle con 6 variables CSS. Sobrescríbelas en :root o acótalas a un contenedor.
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 | Por defecto | Tipo | Descripción |
|---|---|---|---|
--hub-icon-size | 1em | length | Tamaño del icono (font-size en glyphs; ancho/alto en SVG). |
--hub-icon-color | currentColor | color | Color del icono (color en glyphs; fill en SVG). |
--hub-icon-fill | 0 | color | Eje FILL de Material Symbols. |
--hub-icon-weight | 400 | string | Eje wght de Material Symbols. |
--hub-icon-grade | 0 | string | Eje GRAD de Material Symbols. |
--hub-icon-optical-size | 24 | length | Eje opsz de Material Symbols. |