Skip to main content

Module branding

Module branding 

Source

Structs§

BrandingCtx
Projection of BrandingConfig into the flat context keys every pre-auth template reads directly (not via branding.* dotted access): app_name, logo_url, and the accent quad.
DefaultBranding
Embedder-provided fallback branding, attached to the router via Extension<Arc<DefaultBranding>> when the embedder calls AllRoutesBuilder::default_branding.

Constants§

DEFAULT_ACCENT_HEX
Default allowthem accent (white on dark; black on light).

Functions§

branding_context
Project branding into the flat template keys every pre-auth page reads: branding (raw, for dotted access to splash_*/forced_mode/font_*), app_name, logo_url, and the accent quad.
default_branding_ref
Flatten the embedder default-branding extension into the plain reference form handlers need to feed into resolve_branding.
derive_ink
Pick an AAA-safe text color to pair with an accent fill.
lookup_branding
Look up branding for an application by client_id.
resolve_accent
Resolve the accent quad (accent_dark, accent_ink_dark, accent_light, accent_ink_light) for template emission across both color modes.
resolve_branding
Resolve branding for a handler: per-client row if the lookup matches, else the embedder-supplied default, else None.