مكتبة أيقونات Angular (محايدة للمجموعة) | ng-hub-ui-icons
أيقونات Angular محايدة للمجموعة: اعرض Font Awesome وBootstrap Icons وMaterial Symbols وSolar أو SVG الخاصة بك عبر واجهة <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. |