dtgraph docs
Documentation for dtgraph — render and validate DTCG token graphs.
dtgraph turns DTCG design token files into a visible token graph — nodes for every token, edges for every alias — and helps you catch problems (dangling aliases, cycles, malformed files) before they reach production.
There are several ways to use it:
- The playground — drop a token file (or paste JSON) in your browser, no install, no upload, and explore it on the interactive map: clusters, blast radius, search, a detail panel for every token.
- The
dtgraphCLI —rendera token graph to SVG orvalidatetoken files in CI, from the command line. Both understand DTCG resolver files, so a light/dark design system can be checked per context. - In your docs or Storybook —
@dtgraph/mdx’s<TokenGraph>component embeds a graph (static or interactive) in MDX/Astro pages;@dtgraph/storybookadds a panel showing each story’s tokens. @dtgraph/coreand@dtgraph/viewer— the parser/resolver library and the map renderer everything above is built on, if you’re integrating dtgraph into your own tooling.
New to DTCG? Start with the DTCG primer. Ready to use dtgraph? Head to Getting started.