Constructors

Methods

  • Runs InitializeTheme with the media query changes [ matching: (prefers-color-scheme: dark) ]

    Returns (() => void)

    a cleanup function to remove the event listener

      • (): void
      • Returns void

  • Set the theme to light, dark, or system in local storage and on the html element class list

    Parameters

    • choice: null | "dark" | "light"

      light, dark, or null (which will use system)

    Returns void

  • Runs InitializeTheme with the local storage changes

    Returns (() => void)

    a cleanup function to remove the event listener

      • (): void
      • Returns void