Docs
Schemas
JSON Schemas for validating Design Lasagna tokens, utilities, icons, and component lifecycle metadata. For how extensions and manifests fit together, read schema concepts.
Use a schema
$schemahttps://designlasagna.recipes/schemas/<format>/<contract>.json, for examplehttps://designlasagna.recipes/schemas/v0.4/tokens.json- Install
npm install @designlasagna/schemas@0.4.6- Import
import schema from '@designlasagna/schemas/v0.4/tokens.json' with { type: 'json' };
Format version ≠ package version: format
v0.4 is what goes in $schema; package
0.4.6 is what you install
(details).
v0.4 Current · default
DTCG token extensions
Optional governance metadata in DTCG $extensions.
Raw JSONdtcg-extensions.json
Tokens
Resolved token manifest.
Raw JSONtokens.json
Utilities
Utilities manifest.
Raw JSONutilities.json
Icons
Icons manifest.
Raw JSONicons.json
Components
Lifecycle extensions for Custom Elements Manifest entries.
Raw JSONcem-extensions.json
Lifecycle
Composable lifecycle fragments the other contracts reference.
Raw JSONlifecycle.json
v0.3 Previous · compatibility
Still on v0.3? Read the reference for DTCG token extensions, tokens, utilities, or components, then follow the migration guide (changelog).