material-design-icons README

The project's README from github.com/google/material-design-icons. As one markdown file: README.md.

Material Symbols / Material Icons

These are two different official icon sets from Google, using the same underlying designs. Material Symbols is the current set, introduced in April 2022, built on variable font technology. Material Icons is the classic set, but no longer updated. More details below.

The icons can be browsed in a more user-friendly way at https://fonts.google.com/icons. Use the popdown menu near top left to choose between the two sets; Material Symbols is the default.

The icons are designed under the material design guidelines.

Icon Requests

We’d love to support your icon needs! Please submit your request here on GitHub as an issue.

Please note that Google Fonts does not accept user submissions of finished icon designs! There are fairly strict guidelines for Material icons, plus Google has upstream source files from which this repo is generated. Therefore, Google does not accept pull requests for icon files (whether new icon suggestions, or fixes for existing icons). Concepts are appreciated—just don’t design SVGs and submit them via pull request.

However, users are perfectly welcome to point at outside files or images as examples—for the kind of thing they want, but they won’t just be taken “as is.” This works especially well if you have multiple examples for a single icon, to help us understand the “essence” of the idea.

For example, there is a fairly universal conceptual logo/icon for “agender,” so if you were proposing Google add an agender icon in the Material style, either mentioning that, or pointing at https://www.google.com/search?q=agender+icon would be a helpful tip.

Third-party logos

Currently, Google does not include 3rd-party logos among the Material Symbols or Material Icons due to legal reasons. Some 3rd-party logos that were included in the past have since been removed.

npm Packages

Google does not currently maintain the npm package for this repo, past v3 (2016). However, user @marella is hosting the following. He tells us these are automatically updated and published using GitHub Actions. Note: Google does not monitor or vet these packages.

material-symbols npm install size

material-icons npm install size Downloads

@material-design-icons/font npm (scoped) install size

@material-design-icons/svg npm (scoped) install size

Material Symbols

These newer icons can be browsed in a more user-friendly way at https://fonts.google.com/icons. Use the popdown menu near top left to choose between the two sets; Material Symbols is the default.

These icons were built/designed as variable fonts first (based on the 24 px designs from Material Icons). There are three separate Material Symbols variable fonts, which also have static icons available (but those do not have all the variations available, as that would be hundreds of styles):

Each of the fonts has these design axes, which can be varied in CSS, or in many more modern design apps:

The following directories in this repo contain specifically Material Symbols (not Material Icons) content:

What is currently not available in Material Symbols?

Material Icons

The icons can be browsed in a more user-friendly way at https://fonts.google.com/icons?icon.set=Material+Icons

These classic icons are available in five distinct styles:

The following directories in this repo contain specifically Material Icons (not Material Symbols) content:

What is currently not available in Material Icons?

Material Icons update history

4.0.0 Update

3.0.1 Update

3.0.0 Update

2.0

Getting Started

Read the developer guide on how to use the material design icons in your project.

Using a font

The font and variablefont folders contain pre-generated font files that can be included in a project. This is especially convenient for the web; however, it is generally better to link to the web font hosted on Google Fonts:

<link href="https://fonts.googleapis.com/css2?family=Material+Icons"
      rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
      rel="stylesheet">

Read more on Material Symbols or Material Icons in the Google Fonts developer guide.

License

We have made these icons available for you to incorporate into your products under the Apache License Version 2.0. Feel free to remix and re-share these icons and documentation in your products. We'd love attribution in your app's about screen, but it's not required.

material-design-icons (google/material-design-icons)

Searching Database…

这是什么?这是 Google 官方的 Material Design 图标代码库,提供两套图标:Material Symbols(当前版本,持续更新)和 Material Icons(经典版本,自 2022 年起不再更新)。
这是字体、SVG 文件,还是别的东西?两者都有:预生成的可变字体(WOFF2)、静态 SVG/PNG 图标文件和雪碧图,分别放在 'symbols'、'variablefont'、'android'、'font'、'ios'、'png' 和 'src' 等文件夹中。
我该如何把这些图标加入我的项目?网页端推荐的做法是链接托管在 Google Fonts 上的网页字体,而不是自行托管;代码库的 font/variablefont 文件夹中也有可以直接引入的文件。如果使用基于 npm 的工作流,可以使用社区维护的包,例如 'material-symbols'、'material-icons'、'@material-design-icons/font' 和 '@material-design-icons/svg'。
使用这些图标需要什么特别的东西吗?代码库本身不需要任何构建工具;你只需要能使用字体、SVG 或 PNG 的环境即可,比如网页、Android/iOS 项目,或 npm 包管理器。
npm 包由谁官方维护?Google 不再维护 v3(2016 年)之后的 npm 包。当前的 npm 包由第三方开发者(@marella)通过 GitHub Actions 托管并自动发布,Google 不会监督或审核这些包。
Material Symbols 和 Material Icons 有什么区别?Material Symbols 是较新的一套,基于可变字体构建,可以在 CSS 中调整光学尺寸、字重、等级和填充这四个轴。Material Icons 是较旧的固定样式图标集,有五种不同样式(Outlined、Filled、Rounded、Sharp、Two tone),但不具备可变字体的灵活性,而且自 2022 年起没有新增图标。
我能在这套图标中找到第三方品牌标志吗?不能。出于法律原因,Google 没有在 Material Symbols 或 Material Icons 中收录第三方品牌标志,过去存在的一些标志也已被移除。
有哪些文件格式可用?根据所用的包不同,你可以获得 WOFF2/WOFF 格式的可变字体或静态字体、CSS、SVG(可选择是否用 SVGO 优化),以及用于 Android 和 iOS 的 PNG 与雪碧图资源。
我能为图标填充添加动画,用来表示选中状态吗?可以。在 Material Symbols 中,可以通过 CSS 调整 Fill 轴(0-100)来制作动画填充效果,适用于标示用户的选中状态;较旧的 Material Icons 则做不到这一点。
Creator
google
Size
4.9 GB
Stars
54.1K
Age
12y
Commits · 90 Days