SchemeEvents
SchemeEvents
Theme coordination events.
Published by <esp-root> and subscribed to by every
EspalierElementBase descendant so that scheme, seed,
and full-theme changes propagate to variant-aware children.
Properties
SchemeEvents has the following properties:
"seed-color-changed"
"seed-color-changed" has a type of { seedColor: string; correlationId: string; }.
Fired when the effective seed color changes.
"scheme-changed"
"scheme-changed" has a type of { scheme: "light" | "dark"; correlationId: string; }.
Fired when the active scheme flips between light and dark.
"theme-changed"
"theme-changed" has a type of { correlationId: string; }.
Fired when either resolved theme object changes (e.g. a new
light-theme or dark-theme attribute is set). Variant-aware
children re-apply their tokens in response.