Title: Moving Dashicons from an Icon Font to SVG
Author: Mel Choyce-Dwan
Published: June 11, 2015
Last modified: September 2, 2015

---

 [  ](https://profiles.wordpress.org/melchoyce/) [Mel Choyce-Dwan](https://profiles.wordpress.org/melchoyce/)
7:01 pm _on_ June 11, 2015     
Tags: [dashicons ( 7 )](https://make.wordpress.org/core/tag/dashicons/),
[roadmaps ( 17 )](https://make.wordpress.org/core/tag/roadmaps/)   

# Moving Dashicons from an Icon Font to SVG

In the next couple months, we’re going to focus on converting the Dashicons icon
font in coreCore Core is the set of software required to run WordPress. The Core
Development Team builds WordPress. to SVG. The process of adding and updating the
Dashicons font is an incredibly labor intensive, tedious process that is currently
limited to a small number of people who have the ability to add new characters to
the .glyphs source file. By moving to SVG, we’re not only making the process easier
for Dashicons maintainers, but also making the process of adding and updating icons
easier and more open to the entire design community.

### Why SVG?

When we initially built Dashicons, we tried out a couple different methods for including
them in the adminadmin (and super admin). SVG was our preferred method, but due 
to lack of support and fallbacks for SVG at the time, we opted to go for the more
widely support icon font method.

However, there have tremendous strides to improve support and understanding around
SVG in the past year and a half, and we think now is a good time to start the transition
process in core.

Here are some of the benefits SVG icons provide:

 * The icons are straight up vector — that means no font antialiasing issues when
   you use the icons outside of their 20×20 pixel grid, making the icons much more
   versatile
 * Better CSSCSS Cascading Style Sheets. control — switching to SVG introduces the
   possibility of multi-color icons
 * Better positioning control than icon fonts
 * SVG won’t fail to load like a font might, because inline SVGs are included right
   there in the document
 * Potentially better for accessibilityAccessibility Accessibility (commonly shortened
   to a11y) refers to the design of products, devices, services, or environments
   for people with disabilities. The concept of accessible design ensures both “
   direct access” (i.e. unassisted) and “indirect access” meaning compatibility 
   with a person’s assistive technology (for example, computer screen readers). (
   https://en.wikipedia.org/wiki/Accessibility) [[source](http://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/)]
 * Much easier to maintain than the current icon font
 * Easier for pluginPlugin A plugin is a piece of software containing a group of
   functions that can be added to a WordPress website. They can extend functionality
   or add new features to your WordPress websites. WordPress plugins are written
   in the PHP programming language and integrate seamlessly with WordPress. These
   can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
   or can be cost-based plugin from a third-party. and theme authors to add custom
   SVGs

The cons:

 * Less native browser support (but fallback options exist)
 * Figuring out backwards compatibility in core will be challenging (but not insurmountable)

[Chris Coyier has a pretty fantastic rundown on SVG vs. icon fonts](https://css-tricks.com/icon-fonts-vs-svg/).

Just to note: we’re **not** talking about supporting uploading SVGs in the media
library. These would be SVGs built by us, included inline in the WordPress dashboard.

### The Roadmap

Here’s the plan:

 * As much as possible, we’re going to attempt to build this as a feature pluginFeature
   Plugin A plugin that was created with the intention of eventually being proposed
   for inclusion in WordPress Core. See [Features as Plugins](https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/)—
   but we’ve already started running into some issues with what we can and can’t
   do in a plugin.
 * The MVPMinimum Viable Product "A minimum viable product (MVP) is a product with
   just enough features to satisfy early customers, and to provide feedback for 
   future product development." - [WikiPedia](https://en.wikipedia.org/wiki/Minimum_viable_product)
   will be svg icons being generated into a sprite through a Grunt build process.
   For the MVP, we’re not going to focus on browser support.
 * Once we have an MVP up, we’re going to explore the best way to provide browser
   support [using techniques outlined by Chris Coyier in Github](https://github.com/ryelle/WP-Dashboard-SVG/issues/1#issuecomment-78568637),
   as well as figure our backwards compatibility with the icon font.
 * Finally, we’re going to explore breaking up SVGs into different icon “packs” (
   TinyMCE, admin bar, CPT, etc.) and figure out if we can enqueue them on the fly.

Ideally, we’d like to do as much of this during the 4.3 cycle as possible, with 
the idea of merging in 4.4. This means we’ll need to have a _solid_ MVP by August,
which is feasible if we can get more help. That’s why we’d like you to…

### Join us

We would love to get more people involved in this project. Specifically, we’re looking
for people to help build out the MVP, and people to work on compatibility issues.

We’re going to be building out the plugin on githubGitHub GitHub is a website that
offers online implementation of git repositories that can easily be shared, copied
and modified by other developers. Public repositories are free to host, private 
repositories require a paid subscription. GitHub introduced the concept of the ‘
pull request’ where code changes done in branches by contributors can be reviewed
and discussed before being merged by the repository owner. [https://github.com/](https://github.com/):
[https://github.com/ryelle/svg-dashicons-plugin](https://github.com/ryelle/svg-dashicons-plugin).
There’s nothing there yet, but we hope to get some early work up soon. (We also 
did some very early explorations in [another repo](https://github.com/ryelle/WP-Dashboard-SVG/),
if you want to see some of the past conversations and issues.)

Our meetings take place in #design-dashicons every Thursday at 18:30 UTC. Please
join in and help us make Dashicons even better.

If you have questions, feel free to leave a comment here or ask in slackSlack Slack
is a Collaborative Group Chat Platform [https://slack.com/](https://slack.com/).
The WordPress community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/).

[#dashicons](https://make.wordpress.org/core/tag/dashicons/), [#roadmaps](https://make.wordpress.org/core/tag/roadmaps/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2015/06/11/moving-dashicons-from-an-icon-font-to-svg/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2015/06/11/moving-dashicons-from-an-icon-font-to-svg/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2015/06/11/moving-dashicons-from-an-icon-font-to-svg/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2015/06/11/moving-dashicons-from-an-icon-font-to-svg/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2015/06/11/moving-dashicons-from-an-icon-font-to-svg/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2015/06/11/moving-dashicons-from-an-icon-font-to-svg/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/e960359a54d96235c26ea46d311b20fc47c77c5a15050e9d6a7d742e075fa9dc?
     s=32&d=mm&r=g)
 2.   [Dovy Paukstys](https://profiles.wordpress.org/dovyp/)  7:32 pm _on_ June 11,
     2015
 3.  Umm, why? I can provide you with an automated grunt command that will just compile
     the font from separate SVG files… I do it with Elusive Icons…
 4.  Then ANYONE could update/modify it.
 5.   * ![](https://secure.gravatar.com/avatar/e960359a54d96235c26ea46d311b20fc47c77c5a15050e9d6a7d742e075fa9dc?
        s=32&d=mm&r=g)
      *  [Dovy Paukstys](https://profiles.wordpress.org/dovyp/)  7:33 pm _on_ June 
        11, 2015
      * Without any need to update the CSSCSS Cascading Style Sheets. either. All dynamic.
        😉
      * ![](https://secure.gravatar.com/avatar/9548b9d111425d5ffc518f40c446753d69a6e2574daaed57b458fd8ce835dad5?
        s=32&d=mm&r=g)
      *  [Michael Arestad](https://profiles.wordpress.org/michael-arestad/)  7:37 pm
        _on_ June 11, 2015
      * Sure, but SVG is better in just about every way… including semantics.
      * A few handy articles on the matter.
         [https://css-tricks.com/icon-fonts-vs-svg/](https://css-tricks.com/icon-fonts-vs-svg/)
        [http://tympanus.net/codrops/2013/11/27/svg-icons-ftw/](http://tympanus.net/codrops/2013/11/27/svg-icons-ftw/)
 6.  ![](https://secure.gravatar.com/avatar/fa1675858df18178ecaee955ff16f29142492a5d2973b6461c11d4675f6db69f?
     s=32&d=mm&r=g)
 7.   [Morten Rand-Hendriksen](https://profiles.wordpress.org/mor10/)  7:35 pm _on_
     June 11, 2015
 8.  I will do what I can to set aside time to contribute here.
 9.  ![](https://secure.gravatar.com/avatar/99ac6675ed857de8d430540da76a7eb2da6606d034dcdfd38e6b0e05e4b5c98e?
     s=32&d=mm&r=g)
 10.  [Devin Price](https://profiles.wordpress.org/downstairsdev/)  7:55 pm _on_ June
     11, 2015
 11. What do you think the performance implications will be? Inline SVG would be less
     HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying
     protocol used by the World Wide Web and this protocol defines how messages are
     formatted and transmitted, and what actions Web servers and browsers should take
     in response to various commands. requests and also load only the necessary glyphs,
     but HTMLHTML HyperText Markup Language. The semantic scripting language primarily
     used for outputting content in web browsers. weight would be slightly higher and
     not necessarily cached like a static resource. There’s a discussion of that in
     the CSSCSS Cascading Style Sheets. Tricks article you linked to, but will be interesting
     to test and look at once the MVPMinimum Viable Product "A minimum viable product(
     MVP) is a product with just enough features to satisfy early customers, and to
     provide feedback for future product development." - [WikiPedia](https://en.wikipedia.org/wiki/Minimum_viable_product)
     is ready.
 12.  * ![](https://secure.gravatar.com/avatar/9548b9d111425d5ffc518f40c446753d69a6e2574daaed57b458fd8ce835dad5?
        s=32&d=mm&r=g)
      *  [Michael Arestad](https://profiles.wordpress.org/michael-arestad/)  8:07 pm
        _on_ June 11, 2015
      * We’re planning on using the `use` element ( see [https://css-tricks.com/svg-sprites-use-better-icon-fonts/](https://css-tricks.com/svg-sprites-use-better-icon-fonts/))
        which pulls individual icons from a sprite. Basically, like the icon font, 
        all the SVGs would be in a big SVG sprite. It would be one request and cacheable.
        That said, there’s nothing stopping someone from adding one inline as needed(
        for plugins, etc).
      * As far as inline performance, there is indeed a little page weight added (if
        not using sprite technique), but it’s usually pretty trivial. Would definitely
        need to be tested in various scenarios.
 13. ![](https://secure.gravatar.com/avatar/e46e9226203579fe829d5a73832fb399a308d76230ee96d5d9ed5c0b57d405ba?
     s=32&d=mm&r=g)
 14.  [Louy Alakkad](https://profiles.wordpress.org/louyx/)  8:24 pm _on_ June 11, 
     2015
 15. Let’s say I want to help. What can/should I do?
 16.  * ![](https://secure.gravatar.com/avatar/5437f5b6124c08e8d9ab5f8a4b6a97cf3f6966aee694ef98417db8bdcc13b937?
        s=32&d=mm&r=g)
      *  [Mel Choyce](https://profiles.wordpress.org/melchoyce/)  8:39 pm _on_ June
        11, 2015
      * The best way to start is to watch the GithubGitHub GitHub is a website that
        offers online implementation of git repositories that can easily be shared,
        copied and modified by other developers. Public repositories are free to host,
        private repositories require a paid subscription. GitHub introduced the concept
        of the ‘pull request’ where code changes done in branches by contributors can
        be reviewed and discussed before being merged by the repository owner. [https://github.com/](https://github.com/)
        repo and attend the weekly meetings. 🙂
         - ![](https://secure.gravatar.com/avatar/e7485b953b70cf37b88c131e3d51bbde2cad71f04df5a9df86163ac819376c9b?
           s=32&d=mm&r=g)
         -  [Jesse Petersen](https://profiles.wordpress.org/peterdog/)  6:59 pm _on_
           June 23, 2015
         - This would be my first contribution so I’ll try to keep up. This one has
           my interest and seems to be in my skillset.
 17. ![](https://secure.gravatar.com/avatar/bc86b498f25e514d6d68e08c7bd95ce2985a6d69a88731f8cd95cae7968a23b1?
     s=32&d=mm&r=g)
 18.  [austinpray](https://profiles.wordpress.org/austinpray/)  8:52 pm _on_ June 11,
     2015
 19. What about backwards compat for the many people who are doing it wrong? [https://github.com/search?utf8=%E2%9C%93&q=add_action%28+%27admin_head%27%2C+%27add_menu_icons_styles%27+%29%3B&type=Code&ref=searchresults](https://github.com/search?utf8=%E2%9C%93&q=add_action%28+%27admin_head%27%2C+%27add_menu_icons_styles%27+%29%3B&type=Code&ref=searchresults)
 20.  * ![](https://secure.gravatar.com/avatar/6d860975d8bd4b166268bba8da8c1ea0e861a7d7f4ef0aee52fa727fc69e12b2?
        s=32&d=mm&r=g)
      *  [Kelly Dwan](https://profiles.wordpress.org/ryelle/)  8:46 pm _on_ June 14,
        2015
      * That’s something we’ll need to figure out – we don’t have a definite solution
        yet. We might try to detect people doing this, or maybe try to educate these
        developers before we release… or maybe someone else will have a better suggestion(
        join us in slackSlack Slack is a Collaborative Group Chat Platform [https://slack.com/](https://slack.com/).
        The WordPress community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/)
        if so 🙂 )
 21. ![](https://secure.gravatar.com/avatar/37147b6919f5674ccb5d3df1ac46b4d25b7d0c858271c8444a104e2c32ef759b?
     s=32&d=mm&r=g)
 22.  [Scott Fennell](https://profiles.wordpress.org/scofennellgmailcom/)  12:10 am
     _on_ June 12, 2015
 23. How might this effect invoking the icons? Will it still be as easy as adding enque’ing‘
     dashicons’ and adding the classes to an htmlHTML HyperText Markup Language. The
     semantic scripting language primarily used for outputting content in web browsers.
     element?
 24. (I’m not sure if this is a faux-pas, but I’ve been using them in themes and plugins,
     to include on the front end).
 25.  * ![](https://secure.gravatar.com/avatar/7c50ba4af2e2c4a5374c41982b29ac76bac406970a53cf4892db4d1d57f9b1f6?
        s=32&d=mm&r=g)
      *  [Julie @Niackery](https://profiles.wordpress.org/habannah/)  3:21 pm _on_ 
        June 14, 2015
      * I’ve been using them that way, too, so I’m also wondering the same thing…
      * ![](https://secure.gravatar.com/avatar/6d860975d8bd4b166268bba8da8c1ea0e861a7d7f4ef0aee52fa727fc69e12b2?
        s=32&d=mm&r=g)
      *  [Kelly Dwan](https://profiles.wordpress.org/ryelle/)  9:03 pm _on_ June 14,
        2015
      * We’ve only just started, so nothing’s set in stone yet, but this is the idea:
        you call a function when you want to show an icon. Since the SVGs are added
        inline, it’s not as simple as just adding a class.
      * The font will still exist in coreCore Core is the set of software required 
        to run WordPress. The Core Development Team builds WordPress., so you technically
        could still use it that way, but it won’t be updated with any icon changes 
        or new icons.
      * You can follow along with the discussions in design-dashicons slackSlack Slack
        is a Collaborative Group Chat Platform [https://slack.com/](https://slack.com/).
        The WordPress community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/),
        or [on our meeting notes](https://make.wordpress.org/design/tag/dashicons),
        we’ll probably address this better once we’re further along.
 26. ![](https://secure.gravatar.com/avatar/5d463ba83bece0ef7b185cc1c7e3621d6e81aea976011c1aff292d299573f5da?
     s=32&d=mm&r=g)
 27.  [bobbingwide](https://profiles.wordpress.org/bobbingwide/)  11:21 am _on_ June
     12, 2015
 28. MVPMinimum Viable Product "A minimum viable product (MVP) is a product with just
     enough features to satisfy early customers, and to provide feedback for future
     product development." - [WikiPedia](https://en.wikipedia.org/wiki/Minimum_viable_product)?
 29.  * ![](https://secure.gravatar.com/avatar/5783a2d9b93f04f6d0a1ddabddcfd71f15136d7eaea7a87f9962d3f93f780224?
        s=32&d=mm&r=g)
      *  [Ian Dunn](https://profiles.wordpress.org/iandunn/)  11:28 am _on_ June 12,
        2015
      * [Minimum Viable Product](https://en.wikipedia.org/wiki/Minimum_viable_product).
 30. ![](https://secure.gravatar.com/avatar/6a3c8ce22cfa9d90e9d13d1cfbe7b31a8026a1f7603ec23df70570483ecd038e?
     s=32&d=mm&r=g)
 31.  [Schweinepriester](https://profiles.wordpress.org/schweinepriester/)  12:17 pm
     _on_ June 17, 2015
 32. Finally! Great!
 33. ![](https://secure.gravatar.com/avatar/479f05d4acc73915a43b24a1ee3f30477d4ee19bbec6a5a79906d396f2b2d2ad?
     s=32&d=mm&r=g)
 34.  [Samuel Sidler](https://profiles.wordpress.org/samuelsidler/)  7:06 pm _on_ June
     30, 2015
 35. > … we’ve already started running into some issues with what we can and can’t 
     > do in a pluginPlugin A plugin is a piece of software containing a group of functions
     > that can be added to a WordPress website. They can extend functionality or add
     > new features to your WordPress websites. WordPress plugins are written in the
     > PHP programming language and integrate seamlessly with WordPress. These can 
     > be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
     > or can be cost-based plugin from a third-party..
 36. I’m curious what issues you’ve run into and how we can solve them so future feature
     plugins can play around with every aspect of WordPress.
 37. ![](https://secure.gravatar.com/avatar/e508c39dec51c348b0dfd234b3b169eb5312daf5ee62596d2f0b9c8d078e5099?
     s=32&d=mm&r=g)
 38.  [Dave Navarro, Jr.](https://profiles.wordpress.org/dnavarrojr/)  6:47 am _on_
     September 22, 2015
 39. I haven’t been able to find any progress on this… Is it still going on? The last
     meeting appears to have been in May (before this thread).
 40.  * ![](https://secure.gravatar.com/avatar/5437f5b6124c08e8d9ab5f8a4b6a97cf3f6966aee694ef98417db8bdcc13b937?
        s=32&d=mm&r=g)
      *  [Mel Choyce](https://profiles.wordpress.org/melchoyce/)  5:17 pm _on_ September
        22, 2015
      * We chatted last on September 17th: [https://wordpress.slack.com/archives/design-dashicons/p1442509692000006](https://wordpress.slack.com/archives/design-dashicons/p1442509692000006)
      * We have a branchbranch A directory in Subversion. WordPress uses branches to
        store the latest development code for each major release (3.9, 4.0, etc.). 
        Branches are then updated with code for any minor releases of that branch. 
        Sometimes, a major version of WordPress and its minor versions are collectively
        referred to as a "branch", such as "the 4.0 branch". with an example of how
        we could implement Dashicons in wp-adminadmin (and super admin) ([https://github.com/ryelle/SVG-Dashicons-Plugin/tree/add/menu-rendering](https://github.com/ryelle/SVG-Dashicons-Plugin/tree/add/menu-rendering)),
        but work has stalled since we don’t have any developers with enough time to
        work on the project.

Comments are closed.

# Post navigation

[← Dev Chat Summary, June 10](https://make.wordpress.org/core/2015/06/11/dev-chat-summary-june-10/)

[How you can help with the Network Admin UI during contributor day →](https://make.wordpress.org/core/2015/06/12/how-you-can-help-with-the-network-admin-ui-during-contributor-day/)