Skip to content

Search the guides, deployment pages, and API reference.

@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

Theme guide

Interfaces

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.