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
| Mixin | Parameters | Description |
|---|---|---|
| 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.
| Variable | Default | Type | Description |
|---|---|---|---|
--hub-icon-size | 1em | length | Icon size (font-size for glyphs; width/height for SVG). |
--hub-icon-color | currentColor | color | Icon color (color for glyphs; fill for SVG). |
--hub-icon-fill | 0 | color | Material Symbols FILL axis. |
--hub-icon-weight | 400 | string | Material Symbols wght axis. |
--hub-icon-grade | 0 | string | Material Symbols GRAD axis. |
--hub-icon-optical-size | 24 | length | Material Symbols opsz axis. |