I have a document in which I am creating a number of flow charts which share a common legend of styles and colors for their items. For example:
graph TB
classDef client fill:#D5E8D4,stroke:#82B366,color:#000000;
classDef utility fill:#E1D5E7,stroke:#9673A6,color:#000000;
classDef resource fill:#DAE8FC,stroke:#6C8EBF,color:#000000,stroke-dasharray: 3 3;
<!-- and more -->
Right now, I need to add these classDef
s to each flow chart that I make. Copy-and pasting them isn't the end of the world, but it's not the best when you have twenty flow charts to make that all use the same style definitions.
Is there any way to specify a per-document set of classDef
s or styles that are shared between all diagrams of the same type?