26

I have added end arrows to some connectors and Bézier curves, but I cannot find how to set their colour, since they appear to be concerned neither by the background settings nor by the outline ones. They remain black no matter what.

How can I assign a given colour to an arrow?

2
  • 6
    This issue has been fixed in Inkscape 0.91. It is now possible to change the color of the marker from the interface directly. Apr 21, 2015 at 17:35
  • 2
    A somewhat unintuitive point - On Inkscape 0.91 as well, this problem still persists, when the arrow is first created and then the color changed. Instead, if the color of the path is first chosen, then a newly created arrow will match the path's color.
    – V-Red
    Aug 14, 2018 at 19:45

3 Answers 3

28

Edit: As of Inkscape 0.91, markers take the color of the object. Extensions and workarounds are no longer needed.


This is one of the most frequently asked questions about Inkscape, so I'll just quote from their site:

How do I change the color of markers (e.g. arrow ends)?
By default, markers are black. You can change their color to match the color of the stroke of the object they are applied to by enabling an effect: Extensions > Modify Path > Color Markers to Match Stroke.

However, this script is an external Python tool, so you might be out of luck if you use Inkscape on Windows or Mac OS X (which has Python, but is missing some dependency). In that case, there is no other way than to edit the SVG source for the objects. Painful!


This should change at some point in the future, as it is one of the most requested features (see this bug report which gathers progress, or lack thereof). Citing one of the developers (in 2008):

There's no doubt that this should be the default behaviour, and it's one of the most requested features (bug 165865). But it's a question of someone taking the time to implement it.

and a testimonial from a user, in 2012:

The original bug was reported in 2004... after 8 years I start to believe I can only make black arrows

7
  • Thanks a lot. On Linux it works like a charm. Sorry to have asked a FAQ question...
    – Eusebius
    Nov 4, 2012 at 11:36
  • Color Markers to Match Stroke removes some objects in my svg...
    – Adobe
    Jan 20, 2014 at 15:34
  • 2
    In v0.92 they slightly changed the menu names: Extensions > Modify Path > Color Markers, make sure the appropriate Assign fill color or Assign stroke color is checked (Live Preview helps here), then click Apply.
    – GraehamF
    Oct 27, 2018 at 0:00
  • 1
    This is still a problem in Inkscape 1.1
    – endolith
    Sep 22, 2021 at 21:05
  • 2
    @endolith should be "This is again a problem in 1.1"; I have 1.0.2 installed at home and it works great. At work I installed 1.1 and have to manually go to the Extension menu every time :/
    – Oded R.
    Sep 25, 2021 at 2:55
0

You can select a path that holds the marker you want to match with stroke color, open xml editor and see in style attributes the name of the marker. Then search for this marker in defs, expand to see the paths it is composed of, click for each path on style attribute and replace color code by context-stroke. At this point, there is a small display bug ; the markers seems to disappear : modify the stroke color of the path that holds the marker to see it again.

-1

I just draw an arrow in red with PPT, then "Ctrl + C" and "Ctrl + V" in Inkscape. And it works very nicely!

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.