Incorporating Material UI v5 into my application has been a smooth process, except when it comes to using react-d3-tree
for rendering SVG tree charts. This library allows for custom CSS class names to be added to the <path>
elements that connect the tree nodes. I am eager to pass these custom class names to react-d3-tree
while also utilizing MUI's theme variables. Importing a simple .css
file will not suffice for this task.
My question is: How can I create and use statically named custom CSS classes in conjunction with MUI v5, ensuring they align with the defined MUI theme that styles other components within my app?