LynxTheme
The device's light or dark appearance as a signal. import { LynxTheme } from '@blotch/angular-lynx';
Usage
src/app/app.ts
API
LynxTheme
Reads the theme value that the host app sets in its global data. The host usually sets it from the operating system's appearance setting.
LynxTheme.theme
The current theme. 'Light' when the host sets none.
LynxTheme.isDarkMode
true when theme() is 'Dark'.
Types
None of its own.
Related
- Dark mode: switch your styles with the theme.
- Host data:
LynxGlobalData, where the value comes from. - System info
