Skip to content
Graphviz (DOT) templates

Design Token Tree

Hierarchical design tokens — colour / spacing / type / motion.

Template previewGraphviz (DOT)
dt Root Design tokens C colour Root->C S spacing Root->S T type Root->T M motion Root->M brand.500 brand.500 C->brand.500 brand.600 brand.600 C->brand.600 neutral.50 neutral.50 C->neutral.50 neutral.900 neutral.900 C->neutral.900 semantic.error semantic.error C->semantic.error semantic.success semantic.success C->semantic.success space.0 (0px) space.0 (0px) S->space.0 (0px) space.1 (4px) space.1 (4px) S->space.1 (4px) space.2 (8px) space.2 (8px) S->space.2 (8px) space.4 (16px) space.4 (16px) S->space.4 (16px) font.sans font.sans T->font.sans font.mono font.mono T->font.mono size.body size.body T->size.body size.h1 size.h1 T->size.h1 weight.semibold weight.semibold T->weight.semibold duration.fast (120ms) duration.fast (120ms) M->duration.fast (120ms) ease.out ease.out M->ease.out ease.spring ease.spring M->ease.spring

What this template contains

Graph
Directed
Edges
22
Source
16 lines

Make it your own.

digraph dt {
  rankdir=LR;
  graph [bgcolor=transparent];
  node [shape=box, style="rounded,filled", fontname=Inter, fontsize=10];

  Root [label="Design tokens", fillcolor="#fce7f3"];

  C [label="colour", fillcolor="#dbeafe"];
  S [label="spacing", fillcolor="#dbeafe"];
  T [label="type", fillcolor="#dbeafe"];
  M [label="motion", fillcolor="#dbeafe"];

  Root -> C; Root -> S; Root -> T; Root -> M;

  C -> "brand.500"; C -> "brand.600"; C -> "neutral.50"; C -> "neutral.900";
  C -> "semantic.error"; C -> "semantic.success";
  S -> "space.0 (0px)"; S -> "space.1 (4px)"; S -> "space.2 (8px)"; S -> "space.4 (16px)";
  T -> "font.sans"; T -> "font.mono"; T -> "size.body"; T -> "size.h1"; T -> "weight.semibold";
  M -> "duration.fast (120ms)"; M -> "ease.out"; M -> "ease.spring";
}