-
Notifications
You must be signed in to change notification settings - Fork 0
@bynary.composables.observer.Function.useColorScheme
github-actions[bot] edited this page Jul 11, 2024
·
3 revisions
@bynary/composables / @bynary/composables/observer / useColorScheme
useColorScheme<
CustomColorScheme
>(options
?):object
• CustomColorScheme extends ColorScheme
= ColorScheme
• options?: IUseColorSchemeOptions
<CustomColorScheme
>
Options for the composable
object
A set of signals to handle the color scheme
- preferred: The preferred color scheme of the user based on the browser settings
- store: A signal to override the preferred color scheme
- resolved: The resolved color scheme, based on the preferred color scheme and the override. The override will be used if defined, otherwise the preferred color scheme.
preferred:
Signal
<null
|ColorScheme
>
resolved:
Signal
<null
|ColorScheme
>
store:
WritableSignal
<null
|CustomColorScheme
>