# GridTheme

Fields, allowed values, and APIs that use GridTheme.

Canonical: https://grid.syidax.com/docs/types/GridTheme/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export type GridTheme = GridThemePresetName | GridThemeObject | null | undefined;
```

<a id="used-by"></a>

## APIs using this type

- [theme](https://grid.syidax.com/docs/options/theme.md) — Sets Grid colors and appearance with a light/dark preset or a token object extending a preset.

<a id="parents"></a>

## Contracts containing this type

- [GridThemeChangedDetail](https://grid.syidax.com/docs/types/GridThemeChangedDetail.md)
- [GridThemeObject](https://grid.syidax.com/docs/types/GridThemeObject.md)
- [SyGridEventMap](https://grid.syidax.com/docs/types/SyGridEventMap.md)

<a id="related"></a>

## Related types

- [GridThemePresetName](https://grid.syidax.com/docs/types/GridThemePresetName.md)
- [GridThemeObject](https://grid.syidax.com/docs/types/GridThemeObject.md)
