How can I draw a two-color, dashed line in Inkscape?

The only possibility I see is to draw a colored/transparent line.

  • Have you tried your proposed method? What else have you tried? May we see examples?
    – Manly
    Jun 7, 2016 at 14:59

1 Answer 1


Dashed strokes are effectively part stroke and part non-stroke (transparent).

2 possibilities for 2 color stroke:

  1. Duplicate the stroke, and group both together. Set the lower stroke in one color, and the upper stroke to dashed style, and another color.
  2. Use only 1 stroke, and set the stroke fill to gradient or (custom) pattern.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.