PenguinKing9527 By customizing task_type, I can set the color of a custom_task, but a summary task cannot have its color set this way. What should I do? Can I add a custom class name to .wx-bar?
tasha Hi, You can can set your custom styles by rewritting its default classes .wx-bar.wx-summary, .wx-progress-percent. Please check the example: https://snippet.svar.dev/react/kXKSWiBzW
tasha For now there is no such ability to add a custom class to a separate task but you can use taskTemplate where you can add your custom class and using :has style parent bar: .wx-gantt .wx-bars .wx-bar.wx-summary:has(.violet){ background-color: #cc8ae4; } .wx-gantt .wx-bars .wx-bar.wx-summary:has(.violet) .wx-progress-percent { background-color: #8b4ea2; } Please check the example: https://snippet.svar.dev/react/teAbzWt5P