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

# Function: scopedSchemeCss()

> **scopedSchemeCss**(`scheme`): `string`

Beta

Pin a subtree's color scheme.

`color-scheme` is an ordinary inherited property, so one rule keyed to the scope attribute (or its
class twin) resolves every `light-dark()` token below it. No token needs flattening: this sheet is
a couple of hundred bytes, not the ~87kb an explicit per-token override table would cost.

## Parameters

### scheme

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

## Returns

`string`
