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.

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 include the :global keyword, and mark CSS as !important. See sandbox for an example.

Implementing Node classes

Click here for a sandbox, or test it out below!