Definition
Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: Mintlify.Core.Models.ThemePairConfigSyntax
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
| Name | Type | Description |
|---|---|---|
color | string? | The hex color string for both light and dark modes. |
.ctor
Initializes a new instance of the ColorConfig class with separate light and dark colors.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
light | string? | The hex color string for light mode. |
dark | string? | The hex color string for dark mode. |
.ctor Inherited
Inherited from
Mintlify.Core.Models.ThemePairConfigSyntax
.ctor Inherited
Inherited from
objectSyntax
Properties
Dark Inherited Virtual
Inherited from
Mintlify.Core.Models.ThemePairConfigSyntax
Property Value
Type:string?
Light Inherited Virtual
Inherited from
Mintlify.Core.Models.ThemePairConfigSyntax
Property Value
Type:string?
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Override
Inherited from
Mintlify.Core.Models.ThemePairConfigSyntax
Returns
Type:string
The light value, dark value, or empty string.
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?