Angular Utility Library | ng-hub-ui-utils

Angular utility library with pipes, focus management, overlays, transitions and translation helpers shared across reusable UI components.

Styles

CSS variables

Theme every pixel with 22 CSS variables. Override them at :root or scope them to a wrapper.

Overlay & tooltip

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.

VariableDefaultTypeDescription
--hub-overlay-backdrop-zindexcalc(var(--hub-sys-zindex-dropdown, 1000) - 1)number Overlay backdrop z index
--hub-overlay-flip-duration140mstransition How long a connected panel takes to cross when it gives up the side it was asked for. Only the crossing is animated — the panel is re-placed on every scroll, and a blanket transition would leave it trailing its trigger. 0ms turns it off, and so does prefers-reduced-motion
--hub-overlay-bgvar(--hub-sys-surface-elevated, #f8f9fa)color Overlay bg
--hub-overlay-border-radiusvar(--hub-sys-radius-sm, 0.25rem)length Overlay border radius
--hub-overlay-shadowvar(--hub-sys-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15))shadow Overlay shadow
--hub-overlay-zindexvar(--hub-sys-zindex-dropdown, 1000)number Overlay z index
--hub-tooltip-bgvar(--hub-sys-color-ink, #212529)color Tooltip background colour.
--hub-tooltip-border-radiusvar(--hub-sys-radius-md, 0.375rem)length Corner radius of the tooltip.
--hub-tooltip-colorvar(--hub-sys-surface-page, #fff)color Tooltip text colour.
--hub-tooltip-font-familyvar(--hub-ref-font-family-base, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif)string Tooltip font family
--hub-tooltip-font-sizevar(--hub-ref-font-size-sm, 0.875rem)length Font size of the tooltip text.
--hub-tooltip-font-weightvar(--hub-ref-font-weight-base, 400)number Tooltip font weight
--hub-tooltip-line-heightvar(--hub-ref-line-height-base, 1.5)number Maximum width before the text wraps.
--hub-tooltip-max-width200pxlength Tooltip max width
--hub-tooltip-white-spacenormalstring How the label wraps. Forwarded from the host, so one tooltip can be told to keep its text on a single line without a global rule that changes every tooltip in the product
--hub-tooltip-text-aligncenterstring Alignment of the label. Forwarded the same way — a tooltip carrying a sentence or two usually wants to read left, while a short name reads better centred
--hub-tooltip-opacity0.9number Opacity of the shown tooltip.
--hub-tooltip-padding-xvar(--hub-ref-space-2, 0.5rem)length Horizontal padding inside the tooltip.
--hub-tooltip-padding-yvar(--hub-ref-space-1, 0.25rem)length Vertical padding inside the tooltip.
--hub-tooltip-shadownoneshadow Tooltip box shadow
--hub-tooltip-transition-duration0.15stransition Fade in/out duration.
--hub-tooltip-zindexvar(--hub-sys-zindex-tooltip, 1080)number Stacking order of the tooltip element.