Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Object

Syntax

Mintlify.Core.Models.AppearanceConfig

Summary

Represents the appearance configuration for light and dark mode settings in Mintlify.

Remarks

This configuration controls the default appearance mode and whether users can toggle between light and dark modes in the documentation site.

Constructors

.ctor

Syntax

public AppearanceConfig()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Default

Gets or sets the default light/dark mode for the documentation site.

Syntax

public string Default { get; set; }

Property Value

Type: string?

Remarks

Valid values are “system” (follows user’s system preference), “light”, or “dark”. Defaults to “system” if not specified.

Strict

Gets or sets whether to hide the light/dark mode toggle from users.

Syntax

public System.Nullable<bool> Strict { get; set; }

Property Value

Type: System.Nullable<bool>?

Remarks

When set to true, users will not be able to switch between light and dark modes, and the site will use only the default mode specified. Defaults to false.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?