Angular Skeleton Loader Component | ng-hub-ui-skeleton

Angular skeleton loading placeholders with reusable presets, inline DSL templates, responsive values and CSS variables for shimmer states.

Styles

Mixins and styles

Override the `--hub-skeleton-*` 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 component's defaults. Token-based and self-contained (no Bootstrap dependencies).

Theming with hub-skeleton-theme
MixinParametersDescription
Theming
hub-skeleton-theme()
$bg--hub-skeleton-bg
$highlight--hub-skeleton-highlight
$radius--hub-skeleton-radius
$gap--hub-skeleton-gap
$animation-duration--hub-skeleton-animation-duration
One-call theming for `<hub-skeleton>`

CSS variables

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

Skeleton

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-skeleton-bgrgba(148, 163, 184, 0.18)color Base placeholder colour used for visible skeleton surfaces.
--hub-skeleton-highlightrgba(255, 255, 255, 0.52)color Highlight colour used by the shimmer gradient.
--hub-skeleton-radius12pxlength Default border radius for block and line nodes.
--hub-skeleton-gap12pxlength Default gap used by stack and grid nodes when not overridden by modifiers.
--hub-skeleton-animation-duration1.35stransition Duration of the shimmer animation cycle.