Angular Timeline & Progress Steps | ng-hub-ui-milestones
Angular timeline and progress-steps component: vertical or horizontal, fully customizable nodes, content inside and beside each step, themed with CSS variables.
Styles
Mixins and styles
Override the `--hub-milestone-*` 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 their defaults. Token-based and self-contained.
Theming with hub-milestones-theme
Kickoff
Project scoped and approved.
Build
The current step, in progress.
Launch
Not started yet.
| Mixin | Parameters | Description |
|---|---|---|
| Theming | ||
hub-milestones-theme() | $node-color--hub-milestone-node-color$node-text--hub-milestone-node-text$node-size--hub-milestone-node-size$node-font-size--hub-milestone-node-font-size$connector-bg--hub-milestone-connector-bg$connector-pending-bg--hub-milestone-connector-pending-bg$connector-thickness--hub-milestone-connector-thickness$pending-bg--hub-milestone-pending-bg$pending-border--hub-milestone-pending-border$pending-color--hub-milestone-pending-color$error-bg--hub-milestone-error-bg$body-color--hub-milestone-body-color$body-muted--hub-milestone-body-muted$gap--hub-milestone-gap$spacing--hub-milestone-spacing | One-call token theming for `<hub-milestones>` |
CSS variables
Theme every pixel with 20 CSS variables. Override them at :root or scope them to a wrapper.
Milestones
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-milestone-body-color | var(--hub-sys-text-primary, #212529) | color | Primary body text color. |
--hub-milestone-body-muted | var(--hub-sys-text-muted, #6c757d) | string | Muted / secondary body text color. |
--hub-milestone-connector-bg | var(--hub-milestone-node-color) | color | Fill of the connector between completed / active nodes. |
--hub-milestone-connector-pending-bg | var(--hub-sys-border-color-default, #dee2e6) | color | Connector fill leading into a pending node. |
--hub-milestone-connector-thickness | 3px | length | Thickness of the connecting rail. |
--hub-milestone-error-bg | var(--hub-sys-color-danger, #dc3545) | color | Error node background. |
--hub-milestone-gap | 1rem | length | Gap between the node rail and the body content. |
--hub-milestone-node-color | var(--hub-sys-color-primary, #0d6efd) | color | Node background for complete / active states. Per-node `color` overrides this. |
--hub-milestone-node-font-size | 1.05rem | length | Font size of the node content (number / label). |
--hub-milestone-node-size | 2.75rem | length | Diameter of the node circle. |
--hub-milestone-node-text | var(--hub-ref-color-white, #ffffff) | color | Node content color on colored nodes. |
--hub-milestone-pending-bg | var(--hub-sys-surface-elevated, #f8f9fa) | color | Pending node background. |
--hub-milestone-pending-border | var(--hub-sys-border-color-default, #dee2e6) | border | Pending node border color. |
--hub-milestone-pending-color | var(--hub-sys-text-muted, #6c757d) | color | Pending node content color. |
--hub-milestone-spacing | 1.75rem | length | Spacing between consecutive steps. |
--hub-milestone-pulse-color | var(--hub-milestone-node-color) | color | Colour of the active-node pulse wave. Defaults to the node accent, so it follows any per-node `color` override. |
--hub-milestone-pulse-duration | 1.6s | transition | Duration of one pulse cycle. |
--hub-milestone-pulse-spread | 0.75rem | length | How far the pulse wave expands outward from the node. |
--hub-milestone-reveal-duration | 0.5s | transition | Duration of each connector's fill during the viewport reveal. |
--hub-milestone-reveal-stagger | 0.14s | string | Delay between consecutive connectors filling, creating the cascading reveal. |