google / material-design-icons

Material Design icons by Google (Material Symbols)
http://google.github.io/material-design-icons/
Apache License 2.0
49.88k stars 9.65k forks source link

[Documentation] List of all Material Symbols #1677

Open Eirmas opened 3 months ago

Eirmas commented 3 months ago

Does there exist a list of all available material symbols in JSON format or similar? Would be nice if it included both the human readable name and the value name

tphinney commented 3 months ago

What do you mean by “value name”?

There is the internal glyph name, which cannot have spaces, and for whatever reasons is not capitalized. For display purposes that is sometimes shown with underscores converted to spaces, and capitalizing the first letter of each word. I might call that a “display name.” Is that what you mean?

There is also the Unicode codepoint, which is a hexadecimal value, but not a name.

Things are complicated in that one icon can support multiple names (via ligature code, although generally only one is the “true” name) and multiple codepoints (by having more than one, directly).

Eirmas commented 3 months ago

What do you mean by “value name”?

There is the internal glyph name, which cannot have spaces, and for whatever reasons is not capitalized. For display purposes that is sometimes shown with underscores converted to spaces, and capitalizing the first letter of each word. I might call that a “display name.” Is that what you mean?

There is also the Unicode codepoint, which is a hexadecimal value, but not a name.

Things are complicated in that one icon can support multiple names (via ligature code, although generally only one is the “true” name) and multiple codepoints (by having more than one, directly).

Sorry for the confusion. The list of names I'm looking for are the glyph names such as "expand_more" or "arrow_right_alt".

tphinney commented 3 months ago

Gotcha.

I would add that the other key piece of data is the Unicode codepoint, e.g. U+E8FF for ”zoom_in“

Eirmas commented 3 months ago

I found a list of the material symbols. It could be out of date but I'll attach it here if anyone else is looking for it material-symbols.json

tphinney commented 3 months ago

Where is that file in the directory structure here? Like in what Github folder?

It looks to have about 2/3 of the icons, so I guess it must be from 2022 or thereabouts.

Eirmas commented 3 months ago

I found the list by searching through sources the material symbol website It was in one of the files from https://gstatic.com/

I removed icons ending with "_sharp", "_rounded" and "_outlined" as they are not relevant for my usecase. Thats why it might appear like some of the icons are missing.

inwardmovement commented 2 months ago

@Eirmas you can have a look at my comment here where I wrote a script to generate the icons names.