injectIsDarkTheme Type documentation¶
TypeScript declaration¶
import { injectIsDarkTheme } from '@siemens/element-ng/theme';Returns a signal that reflects whether the current Element theme is dark (true) or light (false). The signal reacts to theme-switch events dispatched on window.
Returns: A boolean signal — true when the active theme is dark
Throws: When called outside of an Angular injection context
injectIsDarkTheme(): Signal<boolean>
Returns a signal that reflects whether the current Element theme is dark (true) or light (false). The signal reacts to theme-switch events dispatched on window.
Returns: A boolean signal — true when the active theme is dark
Throws: When called outside of an Angular injection context
Except where otherwise noted, content on this site is licensed under MIT License.