vira - v31.31.7
    Preparing search index...

    Class ViraThemeClient

    Tracks the user's ViraThemeSelection and bridges it to a consumer-supplied applyTheme callback. Persists the selection in LocalStorage via an internal LocalStorageClient, and listens for system color-scheme changes to re-apply the theme in auto mode without persisting.

    The initial theme is applied during construction.

    Index
    applyThemeCallback: ApplyThemeCallback = defaultApplyThemeCallback

    The callback that will be called to apply a new theme.

    localStorageClient: LocalStorageClient<
        {
            selectedTheme: Shape<
                {
                    theme: Shape<
                        TUnion<(TLiteral<Light> | TLiteral<Dark> | TLiteral<Auto>)[]>,
                    >;
                },
            >;
        },
    >

    Contains the user's last selected theme, saving and loading it to disk for persistence.

    removeThemePreferenceListener: () => void = ...

    A callback to remove the global theme preference listener.