Function leptos_use::use_preferred_dark

source ·
pub fn use_preferred_dark() -> Signal<bool>
Expand description

Reactive dark theme preference.

§Usage

let is_dark_preferred = use_preferred_dark();

§Server-Side Rendering

On the server this functions returns a Signal that is always false.

§See also

  • [use_media_query]
  • [use_preferred_contrast]