hikerpig / pintora

An extensible text-to-diagrams library that works in both browser and node.js
https://pintorajs.vercel.app
MIT License
1.11k stars 24 forks source link

Individual background color for components #268

Open jumangee opened 7 months ago

jumangee commented 7 months ago

For now pintora component diagrams can be customized by theme only, but sometimes it can be needed to colorize components individually or by "stereotype". Plantuml example:

~1U9obL3rlWp0GdOl4Vx2IeLDK284G2Q6qbTgbKpjrDBuZGI4-P1oXgEf_hzrKuIDVGs-mXE-zT-_kP9QrvahljgNhh0j0LcjKI7fVOPBG9arTfzuKikAARzcQIsXKeJLAfjKENQURVQ4IK3sHCkU7tfV8W0mKBc6UgIJ5nc4OzdLoS-1rcGxaaah5nOQlRkZqG9UK16qhaYWr-tA

hikerpig commented 6 months ago

Thank you for the issue. PlantUML's skinparam command and stereotype system is a little bit complicated and not quite the same across various type of diagrams. Also, Mermaid.js has its own style keyword in some of the diagrams.

I'll need some time to think about how the custom styling shall be.