@pitlane/theme/dtcg
Conversion between themes and W3C Design Tokens Community Group (DTCG) 2025.10 documents. fromDTCG turns a DTCG document into the schema and token trees "@pitlane/theme"!createTheme accepts; toDTCG exports a theme back to DTCG, keeping values DTCG cannot express in a Pitlane extension.
See
Interfaces
- DTCGExport. DTCG documents exported from a theme.
- DTCGThemeInit. The runtime-shaped init fromDTCG derives from a DTCG document.
- PitlaneDTCGExtension. Pitlane's extension payload for a value DTCG cannot represent.
Type Aliases
- DTCGDocument. A JSON-compatible W3C Design Tokens Community Group document.
Functions
- fromDTCG. Converts a W3C DTCG 2025.10 document into the schema tree and bare token tree "@pitlane/theme"!createTheme accepts.
- toDTCG. Exports a compiled theme, a published theme component, or the init behind either one to W3C DTCG 2025.10 documents.