Generates generic, single-letter icons styled according to the Material Design colors and guidelines, similar to Gmail's fallback sender icons, using:
.svgicon files to
.pngformat using PhantomJS
The icons are pre-generated in
.svg format within the
dependencies/Roboto-Light.ttf font as a system-wide font, and make sure that
Light is the only
Roboto font weight you have installed. Unfortunately, it can't be bundled within the
base.svg due to a bug with PhantomJS.
Run the following commands to generate icons for custom characters:
npm install -g material-letter-iconsmaterial-letter-icons generate --chars '$#@'
material-letter-icons --helpUsage: material-letter-icons [options]Options:-h, --help output usage information-V, --version output the version number-c, --chars <$#@> generate icons
You probably don't have write access to your global
node_modules folder. Work around this error by prefixing the commands with
sudo, or check out fixing npm permissions to
chown those directories.