Библиотека иконок для Angular (агностичная) | ng-hub-ui-icons
Иконки Angular, не зависящие от набора: отрисовка Font Awesome, Bootstrap Icons, Material Symbols, Solar или собственных SVG через единый API <hub-icon> / [hubIcon] с темизацией CSS-переменными.
Стили
Миксины и стили
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
| Миксин | Параметры | Описание |
|---|---|---|
| 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-переменные
Тематизируйте каждый пиксель с помощью 6 CSS-переменных. Переопределите их в :root или ограничьте их областью обёртки.
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.
| Переменная | По умолчанию | Тип | Описание |
|---|---|---|---|
--hub-icon-size | 1em | length | Размер иконки (font-size для глифов; ширина/высота для SVG). |
--hub-icon-color | currentColor | color | Цвет иконки (color для глифов; fill для SVG). |
--hub-icon-fill | 0 | color | Ось FILL Material Symbols. |
--hub-icon-weight | 400 | string | Ось wght Material Symbols. |
--hub-icon-grade | 0 | string | Ось GRAD Material Symbols. |
--hub-icon-optical-size | 24 | length | Ось opsz Material Symbols. |