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()

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.