> ## Documentation Index
> Fetch the complete documentation index at: https://dotnetdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CodeblocksConfig

> Represents code block theming for Mintlify.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Models.CodeblocksConfig
```

## 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](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/CodeblocksConfig.md#theme) / [CodeblocksConfig.ThemePair](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/CodeblocksConfig.md#themepair) and optional [CodeblocksConfig.Languages](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/CodeblocksConfig.md#languages).
See [https://www.mintlify.com/docs/organize/settings-appearance](https://www.mintlify.com/docs/organize/settings-appearance).

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public CodeblocksConfig()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;Languages

Gets or sets custom language grammars.

#### Syntax

```csharp theme={"dark"}
public Mintlify.Core.Models.CodeblockLanguagesConfig Languages { get; set; }
```

#### Property Value

Type: `Mintlify.Core.Models.CodeblockLanguagesConfig?`

### &#x20;Theme

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

#### Syntax

```csharp theme={"dark"}
public string Theme { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

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

### &#x20;ThemePair

Gets or sets separate light and dark Shiki themes.

#### Syntax

```csharp theme={"dark"}
public Mintlify.Core.Models.ThemePairConfig ThemePair { get; set; }
```

#### Property Value

Type: `Mintlify.Core.Models.ThemePairConfig?`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Override

Returns the theme name or an empty string.

#### Syntax

```csharp theme={"dark"}
public override string ToString()
```

#### Returns

Type: `string`
The theme name or an empty string.

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.