Node Classes

Svelvet 5.0 also brings on an extra layer of customization in creating your diagrams. This is achieved with the implementation of custom classes with custom styling that you, the user, can input.

*Setup*
It is important to note that you must add a key value pair to your node object in initialNodes. It should look something like this:
className: 'yourCustomClass'


Also be sure when your are creating your custom styling in the stylesheet block you include the :global keyword.
Try it out below! One custom class has already been created for you as an example.