Skip to main content

Definition

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

Syntax

Summary

Represents a color configuration for Mintlify. Can be a simple hex color string or a complex color pair configuration with light and dark modes.

Constructors

.ctor

Initializes a new instance of the ColorConfig class.

Syntax

.ctor

Initializes a new instance of the ColorConfig class with a single color.

Syntax

Parameters

.ctor

Initializes a new instance of the ColorConfig class with separate light and dark colors.

Syntax

Parameters

.ctor Inherited

Inherited from Mintlify.Core.Models.ThemePairConfig

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Dark Inherited Virtual

Inherited from Mintlify.Core.Models.ThemePairConfig
Gets or sets the value for dark mode.

Syntax

Property Value

Type: string?

Light Inherited Virtual

Inherited from Mintlify.Core.Models.ThemePairConfig
Gets or sets the value for light mode.

Syntax

Property Value

Type: string?

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

Inherited from Mintlify.Core.Models.ThemePairConfig
Returns the string representation of the theme pair configuration.

Syntax

Returns

Type: string The light value, dark value, or empty string.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?