# AdaptableTheme

Canonical page: https://www.adaptabletools.com/docs/reference/adaptabletheme

Used for creating Custom Themes (deprecated)

```ts title="TypeScript"
export interface AdaptableTheme extends AdaptableObject 
```

###### Extends

[`AdaptableObject`](https://www.adaptabletools.com/docs/reference/adaptableobject.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [AgThemeMode](https://www.adaptabletools.com/docs/reference/adaptabletheme.md#agthememode) | `TypeHint<string, 'light' \| 'dark' \| 'dark-blue'>` | AG Grid theme mode applied with this theme: `light`, `dark`, `dark-blue`, or a custom mode defined in AG Grid. |
| [CSSVariables](https://www.adaptabletools.com/docs/reference/adaptabletheme.md#cssvariables) | `Record<string, string>` | CSS variables this theme sets, keyed by variable name (for example `--ab-color-primary`). |
| [Description](https://www.adaptabletools.com/docs/reference/adaptabletheme.md#description) | `string` | Text shown for this theme in the theme list. |
| [Name](https://www.adaptabletools.com/docs/reference/adaptabletheme.md#name) | `string` | Theme name. For a shipped theme this is `light`, `dark` or `os`. |
| [Variant](https://www.adaptabletools.com/docs/reference/adaptabletheme.md#variant) | `'light' \| 'dark'` | Whether the theme is a light or dark palette. Used when AdapTable picks contrasting UI colours. |
| [IsReadOnly](https://www.adaptabletools.com/docs/reference/adaptabletheme.md#isreadonly) | `boolean` | Sets Entity to ReadOnly (overwriting a Strategy Entitlement of &#39;Full&#39;) |

## Property Details

### AgGridClassName

CSS class of a legacy AG Grid theme.

```ts title="TypeScript"
AgGridClassName?: string;
```

###### Deprecated

Unused with the AG Grid Theming API. Pair a shipped theme with an AG Grid mode via .

###### Property Value

`string`

### AgThemeMode

AG Grid theme mode applied with this theme: `light`, `dark`, `dark-blue`, or a custom mode defined in AG Grid.

```ts title="TypeScript"
AgThemeMode?: TypeHint<string, 'light' | 'dark' | 'dark-blue'>;
```

###### Property Value

`TypeHint<string, 'light' | 'dark' | 'dark-blue'>`

### CSSVariables

CSS variables this theme sets, keyed by variable name (for example `--ab-color-primary`).

```ts title="TypeScript"
CSSVariables?: Record<string, string>;
```

###### Property Value

`Record<string, string>`

### Description

Text shown for this theme in the theme list.

```ts title="TypeScript"
Description: string;
```

###### Property Value

`string`

### Name

Theme name. For a shipped theme this is `light`, `dark` or `os`.

```ts title="TypeScript"
Name: string;
```

###### Property Value

`string`

### Variant

Whether the theme is a light or dark palette. Used when AdapTable picks contrasting UI colours.

```ts title="TypeScript"
Variant?: 'light' | 'dark';
```

###### Property Value

`'light' | 'dark'`

### IsReadOnly

> *Inherited from [AdaptableObject](https://www.adaptabletools.com/docs/reference/adaptableobject.md)*

Sets Entity to ReadOnly (overwriting a Strategy Entitlement of &#39;Full&#39;)

```ts title="TypeScript"
IsReadOnly?: boolean;
```

###### Property Value

`boolean`
