Skip to content

pantoken-root / formats/css/src / scopedSchemeCss

Function: scopedSchemeCss() ​

scopedSchemeCss(scheme): string

Beta

Dark (inverse) colour 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

Returns ​

string