material-design-icons
material-design-icons copied to clipboard
material symbols svg npm package
Is possible to also publish a npm package of symbols svg? We would like to use svg over font. This will be very convenient to have a svg npm package.
Google is not currently maintaining any NPM package, whether for fonts or SVGs. Anyone else is welcome to do so, but… even if somebody wanted to, they would have to define which specific styles/instances they were going to cover.
One of the reasons for using the fonts is that everything can be handled with only three files. But besides over 2000 glyphs per font, with the variable font axes, there are 7 standard weights, at least 4 useful grades, filled and unfilled, and 4 standard sizes. That makes for 7x4x2x4 = 224 variants for each glyph, times >2000 glyphs times three fonts is… over a million SVG files.
You could reduce that an awful lot and still have an unwieldy number of files.
So, fonts are a good way to package all that variability compared to SVG files. Because three is a whole lot fewer files than a million-plus. That said, if you want some specific few styles, it would be more plausible.