create multicolor icons. Icomoon

后端 未结 4 560
感情败类
感情败类 2020-12-17 03:43

It\'s been so hard to find any clear information about how to create icons with two colors (facebook -white and blue-, google- white and red.....). The customer wants to be

4条回答
  •  [愿得一人]
    2020-12-17 04:13

    IcoMoon itself generates the CSS for stacking font glyphs. It doesn't use :before and :after (which is a good solution for 2 colors). Instead, it uses a more general approach with multiple spans. It works well for cases where you want to have more than one color. All you need to do is import a multicolor SVG to IcoMoon. It'll take care of the rest. Here's a demo of its output: https://codepen.io/Keyamoon/pen/vXxJgq

提交回复
热议问题