Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models

Syntax

Summary

Represents code block theming for Mintlify.

Remarks

May be a string (system, dark, or a Shiki theme name) or an object with CodeblocksConfig.Theme / CodeblocksConfig.ThemePair and optional CodeblocksConfig.Languages. See https://www.mintlify.com/docs/organize/settings-appearance.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Languages

Gets or sets custom language grammars.

Syntax

Property Value

Type: Mintlify.Core.Models.CodeblockLanguagesConfig?

Theme

Gets or sets the theme name when a single string is used.

Syntax

Property Value

Type: string?

Remarks

system and dark match docs appearance. Any other string is a Shiki theme name.

ThemePair

Gets or sets separate light and dark Shiki themes.

Syntax

Property Value

Type: Mintlify.Core.Models.ThemePairConfig?

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Override

Returns the theme name or an empty string.

Syntax

Returns

Type: string The theme name or an empty string.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?