---
url: /api/formats/scope/src/functions/resolveScheme.md
---
[pantoken-root](../../../../index.md) / [formats/scope/src](../index.md) / resolveScheme

# Function: resolveScheme()

> **resolveScheme**(`start`): [`Scheme`](../type-aliases/Scheme.md)

Beta

The effective color scheme for `start`: an explicit pin if any ancestor set one, otherwise the
`color-scheme` the element actually computes to, otherwise the OS preference.

Never reads `document.documentElement` — that global read is exactly what desynchronises two
instances on one page.

## Parameters

### start

`Element` | `null`

## Returns

[`Scheme`](../type-aliases/Scheme.md)
