# Adding custom color

**URL:** <https://forum.bpmn.io/t/adding-custom-color/6019>\
**Category:** General\
**Created:** [April 1, 2021, 4:25am UTC](https://forum.bpmn.io/t/adding-custom-color/6019 "2021-04-01T04:25:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shweta](https://forum.bpmn.io/user_avatar/forum.bpmn.io/shweta/32/2784_2.png) [@shweta](https://forum.bpmn.io/u/shweta)\
**Post date:** [April 1, 2021, 4:25am UTC](https://forum.bpmn.io/t/adding-custom-color/6019/1 "2021-04-01T04:25:09Z")

</div>

Hi I have integrated bomn with angular but not able to color the element using modeling.setColor(‘bpmn:UserTask’, {  
fill: ‘red’,  
stroke: ‘green’  
});  
can anyone please suggest me how we can do this in angular

---

<div class="post-metadata">

**Author:** ![barmac](https://forum.bpmn.io/user_avatar/forum.bpmn.io/barmac/32/974_2.png) [@barmac](https://forum.bpmn.io/u/barmac)\
**Post date:** [April 6, 2021, 6:01am UTC](https://forum.bpmn.io/t/adding-custom-color/6019/2 "2021-04-06T06:01:23Z")

</div>

Please share a running / prototypical example that clearly shows what you’re trying to achieve, what is working and what is not.

Use our existing [starter projects](https://github.com/bpmn-io/bpmn-js-examples/tree/master/starter) to quickly hack it or share your existing, partial solution on GitHub or via a [CodeSandbox](https://codesandbox.io/s/bpmn-js-starter-m3kex?file=/src/index.js). Provide the necessary pointers that allow us to quickly understand where you got stuck.

This way we may be able to help you in a constructive manner.

Thanks ❤

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [July 22, 2025, 3:37pm UTC](https://forum.bpmn.io/t/adding-custom-color/6019/3 "2025-07-22T15:37:59Z")

</div>

Closed on July 22, 2025, 3:37pm UTC


