Thank you for your response in advance!
I’m not sure you can use curves like strokes without workaround (please correct if I am wrong).
Why not use vector graphics software for vector graphics tasks? Reader nodes support vector graphics formats.
E. g. you can read from svg files directly from reader node.
You could also mask out the shape using a roto node and a constant in the color you want.