# GradientStyle

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

Used to display Gradient Styles

```ts title="TypeScript"
export interface GradientStyle extends NumericStyledColumn 
```

###### Extends

[`NumericStyledColumn`](https://www.adaptabletools.com/docs/reference/numericstyledcolumn.md)

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [AutoContrastText](https://www.adaptabletools.com/docs/reference/gradientstyle.md#autocontrasttext) | `boolean` | When true, sets cell `color` from tinted background so text stays readable |   |
| [Font](https://www.adaptabletools.com/docs/reference/gradientstyle.md#font) | [`CellFontStyle`](https://www.adaptabletools.com/docs/reference/cellfontstyle.md) | Optional cell-text styling applied by Gradient renderer **on top of** gradient background tint |   |
| [MaxAlpha](https://www.adaptabletools.com/docs/reference/gradientstyle.md#maxalpha) | `number` | Alpha (0–1) at **high** end of the matched range’s scale | 1 (fully opaque at range max) |
| [MinAlpha](https://www.adaptabletools.com/docs/reference/gradientstyle.md#minalpha) | `number` | Alpha (0–1) at **low** end of the matched range’s scale | 0.15 (faint at range min) |
| [ToolTipText](https://www.adaptabletools.com/docs/reference/gradientstyle.md#tooltiptext) | [`CellTextOptions`](https://www.adaptabletools.com/docs/reference/celltextoptions.md) | Optional AG Grid tooltip content: cell value and/or position along the range scale (%) |   |
| [ZeroCentred](https://www.adaptabletools.com/docs/reference/gradientstyle.md#zerocentred) | [`ZeroCentredColors`](https://www.adaptabletools.com/docs/reference/zerocentredcolors.md) | Zero-centred diverging gradient (`Col-Min`…`0` and `0`…`Col-Max` |   |

## Property Details

### AutoContrastText

When true, sets cell `color` from tinted background so text stays readable

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

###### Property Value

`boolean`

### Font

Optional cell-text styling applied by Gradient renderer **on top of** gradient background tint

```ts title="TypeScript"
Font?: CellFontStyle;
```

###### Property Value

[`CellFontStyle`](https://www.adaptabletools.com/docs/reference/cellfontstyle.md)

### MaxAlpha

Alpha (0–1) at **high** end of the matched range’s scale

```ts title="TypeScript"
MaxAlpha?: number;
```

###### Default Value

1 (fully opaque at range max)

###### Property Value

`number`

### MinAlpha

Alpha (0–1) at **low** end of the matched range’s scale

```ts title="TypeScript"
MinAlpha?: number;
```

###### Default Value

0.15 (faint at range min)

###### Property Value

`number`

### ToolTipText

Optional AG Grid tooltip content: cell value and/or position along the range scale (%)

```ts title="TypeScript"
ToolTipText?: CellTextOptions;
```

###### Property Value

[`CellTextOptions`](https://www.adaptabletools.com/docs/reference/celltextoptions.md)

### ZeroCentred

Zero-centred diverging gradient (`Col-Min`…`0` and `0`…`Col-Max`

```ts title="TypeScript"
ZeroCentred?: ZeroCentredColors;
```

###### Property Value

[`ZeroCentredColors`](https://www.adaptabletools.com/docs/reference/zerocentredcolors.md)
