Enum
public enum MokaJsonTheme

Namespace: Moka.Blazor.Json.Models

Specifies the theme mode for the JSON viewer.

Fields

NameDescription
Auto static Automatically matches the user's system preference via prefers-color-scheme.
Dark static Forces the dark color scheme.
Inherit static Applies no theme attributes — the component fully inherits parent CSS custom properties.
Light static Forces the light color scheme.

Auto

Auto = 0

Automatically matches the user's system preference via prefers-color-scheme.

Dark

Dark = 2

Forces the dark color scheme.

Inherit

Inherit = 3

Applies no theme attributes — the component fully inherits parent CSS custom properties.

Light

Light = 1

Forces the light color scheme.

View Source
/// <summary>
///     Specifies the theme mode for the JSON viewer.
/// </summary>
public enum MokaJsonTheme
{
    /// <summary>
    ///     Automatically matches the user's system preference via <c>prefers-color-scheme</c>.
    /// </summary>
    Auto,
    /// <summary>
    ///     Forces the light color scheme.
    /// </summary>
    Light,
    /// <summary>
    ///     Forces the dark color scheme.
    /// </summary>
    Dark,
    /// <summary>
    ///     Applies no theme attributes — the component fully inherits parent CSS custom properties.
    /// </summary>
    Inherit
}
Was this page helpful?