Branding & Layout
All branding, layout, and UI configuration is fetched as part of the remote SDK config during initialization. These values are cached in context and accessible synchronously through dedicated hooks — no additional API calls needed.Quick Reference
| Hook | Returns | Source |
|---|---|---|
useBranding() | Colors, fonts, logos | config.branding |
useFeatureFlags() | Binary feature toggles | config.featureFlags |
useBanners() | Carousel banners | config.banners |
usePopups() | Popup/overlay definitions | config.activePopups |
useAnnouncements() | Announcement bar messages | config.activeAnnouncements |
How It Works
WhenStackfrontProvider mounts, the ConfigService fetches a single SdkConfigResponse containing all UI configuration. This is stored in context and the hooks above simply read from it: