Skip to content

@bynary.composables.observer.Function.usePreferredColorScheme

github-actions[bot] edited this page Jul 11, 2024 · 3 revisions

@bynary/composables / @bynary/composables/observer / usePreferredColorScheme

Function: usePreferredColorScheme()

usePreferredColorScheme(): Signal<null | ColorScheme>

Returns

Signal<null | ColorScheme>

A signal holding the preferred color scheme of the browser

Defined in

observer/src/color-scheme.composable.ts:62

Clone this wiki locally