---
title: "@pitlane/theme/dtcg"
description: "Conversion between themes and W3C Design Tokens Community Group (DTCG) 2025.10 documents. [fromDTCG](https://pitlane.tools/package/theme/dtcg/function/fromDTCG.md) turns a DTCG document into the schema and token trees [\"@pitlane/theme\"!createTheme](https://pitlane.tools/package/theme/function/createTheme.md) accepts; [toDTCG](https://pitlane.tools/package/theme/dtcg/function/toDTCG.md) exports a theme back to DTCG, keeping values DTCG cannot express in a Pitlane extension."
url: "https://pitlane.tools/package/theme/dtcg"
---

# @pitlane/theme/dtcg

Conversion between themes and W3C Design Tokens Community Group (DTCG) 2025.10 documents. [fromDTCG](https://pitlane.tools/package/theme/dtcg/function/fromDTCG.md) turns a DTCG document into the schema and token trees ["@pitlane/theme"!createTheme](https://pitlane.tools/package/theme/function/createTheme.md) accepts; [toDTCG](https://pitlane.tools/package/theme/dtcg/function/toDTCG.md) exports a theme back to DTCG, keeping values DTCG cannot express in a Pitlane extension.

## See

[Theme guide](https://pitlane.tools/guides/theme.md)

## Interfaces

- [DTCGExport](https://pitlane.tools/package/theme/dtcg/interface/DTCGExport.md). DTCG documents exported from a theme.
- [DTCGThemeInit](https://pitlane.tools/package/theme/dtcg/interface/DTCGThemeInit.md). The runtime-shaped init [fromDTCG](https://pitlane.tools/package/theme/dtcg/function/fromDTCG.md) derives from a DTCG document.
- [PitlaneDTCGExtension](https://pitlane.tools/package/theme/dtcg/interface/PitlaneDTCGExtension.md). Pitlane's extension payload for a value DTCG cannot represent.

## Type Aliases

- [DTCGDocument](https://pitlane.tools/package/theme/dtcg/type/DTCGDocument.md). A JSON-compatible W3C Design Tokens Community Group document.

## Functions

- [fromDTCG](https://pitlane.tools/package/theme/dtcg/function/fromDTCG.md). Converts a W3C DTCG 2025.10 document into the schema tree and bare token tree ["@pitlane/theme"!createTheme](https://pitlane.tools/package/theme/function/createTheme.md) accepts.
- [toDTCG](https://pitlane.tools/package/theme/dtcg/function/toDTCG.md). Exports a compiled theme, a published theme component, or the init behind either one to W3C DTCG 2025.10 documents.
