# fittingLineTone

Canonical: https://docs.shumoku.dev/en/library/api/fittingLineTone
Language: en

@shumoku/core · 0.5.0 · function

# fittingLineTone

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts#L87)

The tone that tells the most lines apart over these backgrounds: of the lightnesses at which every hue is seen, the one that leaves the most chroma. For writing a theme's \`lineTone\`.

```
fittingLineTone(backgrounds: readonly string[], hue: number): LineTone | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `backgrounds` | `readonly string[]` | No additional description. | `—` |
| `hue` | `number` | No additional description. | `—` |

## Returns

```
LineTone | undefined
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts:87`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts#L87)
