Creating a dashed line with two colours in Illustrator

by Jakub Marian

Tip: Are you a non-native English speaker? I have just finished creating a Web App for people who enjoy learning by reading. Make sure to check it out; there's a lot of free content.

It is possible to create dashed lines in Adobe Illustrator using the “dashed line” option in the Stroke panel (Window → Stroke):

illustrator-stroke

However, illustrator doesn’t allow you to select the colours of the “dashes”; it simply leaves gaps in the paths. But there’s a simple fix. First, create the path you want to be dashed using whatever method you prefer:

illustrator-path

Now, select the whole path using the Selection Tool and press Ctrl-C, Ctrl-Shift-V (or Cmd on Mac). This creates a copy of your path at the exact same spot as your original path. Select a different stroke colour and use the “dashed line” options mentioned above. Voilà, you now have a dashed curve with two colours:

illustrator-dashed-line

By the way, have you already seen my brand new web app for non-native speakers of English? It's based on reading texts and learning by having all meanings, pronunciations, grammar forms etc. easily accessible. It looks like this:

0