DTCG 2025.10
Full support for the stable Design Tokens spec — resolver documents, sets, modifiers, and every token type.
{
"version": "2025.10",
"sets": {
"core": {
"sources": [{
"color": {
"palette": {
"$type": "color",
"blue-500": { "$value": { "colorSpace": "srgb", "components": [0, 0.4, 0.8] } }
},
"action": {
"$type": "color",
"brand": { "$value": "{color.palette.blue-500}" }
}
},
"spacing": {
"scale": {
"$type": "dimension",
"md": { "$value": { "value": 16, "unit": "px" } }
},
"gap": {
"$type": "dimension",
"md": { "$value": "{spacing.scale.md}" }
}
}
}]
}
},
"modifiers": {
"theme": {
"default": "light",
"contexts": {
"light": [{ "$ref": "./themes/light.json" }],
"dark": [{ "$ref": "./themes/dark.json" }]
}
}
},
"resolutionOrder": [
{ "$ref": "#/sets/core" },
{ "$ref": "#/modifiers/theme" }
]
}OutputScaffold a project
pnpm create dispersaExplore and customize the scaffold
import { build, css } from 'dispersa'import { colorToHex } from 'dispersa/transforms'
await build({ resolver: './tokens.resolver.json', buildPath: './output', outputs: [css({ name: 'css', file: 'tokens.css', preset: 'bundle', preserveReferences: true, transforms: [colorToHex()], })],})Build and ship
pnpm run build:root { --color-palette-blue-500: #0066cc; --color-action-brand: var(--color-palette-blue-500); --spacing-scale-md: 16px;}DTCG 2025.10
Full support for the stable Design Tokens spec — resolver documents, sets, modifiers, and every token type.
6 Output Formats
CSS, JSON, JS/TS, Tailwind v4, Swift/SwiftUI, and Kotlin/Compose — all from one source of truth.
Schema Validation
Tokens and resolver documents are validated against the official DTCG 2025.10 JSON schemas. Catch structural errors before they reach production.
Extensible Pipeline
Plug in custom filters, transforms, and renderers. See how the pipeline works.