Function: usePrefersColorScheme()
usePrefersColorScheme():
boolean
Defined in: src/infrastructure/theme/theme.service.ts:186
Checks whether the user's OS is set to prefer a dark color scheme.
Returns
boolean
true if the system prefers dark mode.
Example
if (usePrefersColorScheme()) {
// user prefers dark
}