Skip to content

How can I use both regular and duotone icons in my project? #21

Discussion options

You must be logged in to vote

All icons variations are delivered with the @eviden-parallel/icons package.

If you are using the icons individually from the svg folder, you just need to add the modifier at the end of the icon name to get the different style.

E.g.: @eviden-parallel/icons/svg/airplane.svg is the regular icon, while the duotone one would be @eviden-parallel/icons/svg/airplane--duotone.svg

Now, if you are using the sprit for performance reasons, you have two options:

1. Using the pre-packaged sprites

With this solution, you can load the second sprite in the exact same way, to you already load the first one.
You'll only have to swap two things to get a different icon style: the sprite path and the icon id.

<…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TorstenKestermann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants