Skip to content

Search the guides, deployment pages, and API reference.

DTCGThemeInit

import type { DTCGThemeInit } from "@pitlane/theme/dtcg";

The runtime-shaped init fromDTCG derives from a DTCG document.

Its schema and tokens use the broad ThemeInit member types: a JSON document cannot produce the literal information required to brand a token accessor. Generate a checked-in schema and token module from the document when a typed accessor is required.

Properties

schema

schema: object;

The derived runtime schema tree.


tokens

tokens: object;

The bare token values described by schema.