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
| Mixin | Parameters | Description |
|---|---|---|
| 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.
| Variable | Default | Type | Description |
|---|---|---|---|
--hub-skeleton-bg | rgba(148, 163, 184, 0.18) | color | Base placeholder colour used for visible skeleton surfaces. |
--hub-skeleton-highlight | rgba(255, 255, 255, 0.52) | color | Highlight colour used by the shimmer gradient. |
--hub-skeleton-radius | 12px | length | Default border radius for block and line nodes. |
--hub-skeleton-gap | 12px | length | Default gap used by stack and grid nodes when not overridden by modifiers. |
--hub-skeleton-animation-duration | 1.35s | transition | Duration of the shimmer animation cycle. |