1 | # [@material-symbols/font-600](https://github.com/marella/material-symbols/tree/main/font/600)
|
2 |
|
3 | Latest variable icon fonts with weight 600 for Material Symbols.
|
4 |
|
5 | > This package is automatically updated, so it will always have the latest icons from Google.
|
6 |
|
7 | > This package [![install size](https://packagephobia.com/badge?p=@material-symbols/font-600)](https://packagephobia.com/result?p=@material-symbols/font-600) includes only fonts with grade (`GRAD`) 0 and optical size (`opsz`) 48px. For other variations, see [`material-symbols`](https://www.npmjs.com/package/material-symbols) [![install size](https://packagephobia.com/badge?p=material-symbols)](https://packagephobia.com/result?p=material-symbols).
|
8 |
|
9 | > For SVGs, see [`@material-symbols/svg-600`](https://www.npmjs.com/package/@material-symbols/svg-600)
|
10 |
|
11 | - [Installation](#installation)
|
12 | - [Usage](#usage)
|
13 | - [Available Icons](#available-icons)
|
14 |
|
15 | ## Installation
|
16 |
|
17 | Install the [latest version][releases] using:
|
18 |
|
19 | ```sh
|
20 | npm install @material-symbols/font-600@latest
|
21 | ```
|
22 |
|
23 | The package `@material-symbols/font-600` includes only fonts with weight 600. To use a different weight, replace `600` in the package name with the desired weight.
|
24 |
|
25 | <details>
|
26 | <summary><strong>Show all packages</strong></summary><br>
|
27 |
|
28 | | Package | Weight |
|
29 | | :--------------------------------------------------------------------------------------- | :----- |
|
30 | | [`@material-symbols/font-100`](https://www.npmjs.com/package/@material-symbols/font-100) | 100 |
|
31 | | [`@material-symbols/font-200`](https://www.npmjs.com/package/@material-symbols/font-200) | 200 |
|
32 | | [`@material-symbols/font-300`](https://www.npmjs.com/package/@material-symbols/font-300) | 300 |
|
33 | | [`@material-symbols/font-400`](https://www.npmjs.com/package/@material-symbols/font-400) | 400 |
|
34 | | [`@material-symbols/font-500`](https://www.npmjs.com/package/@material-symbols/font-500) | 500 |
|
35 | | [`@material-symbols/font-600`](https://www.npmjs.com/package/@material-symbols/font-600) | 600 |
|
36 | | [`@material-symbols/font-700`](https://www.npmjs.com/package/@material-symbols/font-700) | 700 |
|
37 |
|
38 | </details>
|
39 |
|
40 | ## Usage
|
41 |
|
42 | Import in JS (example: `src/index.js` in Create React App, `src/main.js` in Vue CLI):
|
43 |
|
44 | ```js
|
45 | import '@material-symbols/font-600';
|
46 | ```
|
47 |
|
48 | or import in CSS (example: `src/styles.css` in Angular CLI):
|
49 |
|
50 | ```css
|
51 | @import '@material-symbols/font-600';
|
52 | ```
|
53 |
|
54 | or import in HTML:
|
55 |
|
56 | ```html
|
57 | <link href="/path/to/@material-symbols/font-600/index.css" rel="stylesheet">
|
58 | ```
|
59 |
|
60 | To display an icon, use one of the following:
|
61 |
|
62 | ```html
|
63 | <span class="material-symbols-outlined">face</span> <!-- Outlined -->
|
64 | <span class="material-symbols-rounded">face</span> <!-- Rounded -->
|
65 | <span class="material-symbols-sharp">face</span> <!-- Sharp -->
|
66 | ```
|
67 |
|
68 | To customize the variable font axes (fill), use:
|
69 |
|
70 | ```css
|
71 | .material-symbols-outlined {
|
72 | font-variation-settings: 'FILL' 0;
|
73 | }
|
74 | ```
|
75 |
|
76 | ### Reducing Build Size
|
77 |
|
78 | The default `index.css` includes CSS for all fonts. This may cause build tools such as webpack to copy all fonts to the build directory even if you are not using all of them. To reduce the build size, import only the styles you need. For example, if you only need outlined icons, import `outlined.css` instead of the default `index.css`:
|
79 |
|
80 | ```diff
|
81 | -import '@material-symbols/font-600';
|
82 | +import '@material-symbols/font-600/outlined.css';
|
83 | ```
|
84 |
|
85 | <details>
|
86 | <summary><strong>Show all</strong></summary><br>
|
87 |
|
88 | Icons | CSS | Sass
|
89 | :--- | :--- | :---
|
90 | Outlined | outlined.css | outlined.scss
|
91 | Rounded | rounded.css | rounded.scss
|
92 | Sharp | sharp.css | sharp.scss
|
93 |
|
94 | </details>
|
95 |
|
96 | ### Using Sass
|
97 |
|
98 | Import in Sass (example: `src/styles.scss` in Angular CLI):
|
99 |
|
100 | ```scss
|
101 | @import '@material-symbols/font-600';
|
102 | ```
|
103 |
|
104 | If you are getting errors with webpack or Vue CLI, add this line before importing:
|
105 |
|
106 | ```scss
|
107 | $material-symbols-font-path: '~@material-symbols/font-600/';
|
108 | ```
|
109 |
|
110 | ### Using Angular `mat-icon`
|
111 |
|
112 | To display an icon, use one of the following:
|
113 |
|
114 | ```html
|
115 | <mat-icon fontSet="material-symbols-outlined">face</mat-icon>
|
116 | <mat-icon fontSet="material-symbols-rounded">face</mat-icon>
|
117 | <mat-icon fontSet="material-symbols-sharp">face</mat-icon>
|
118 | ```
|
119 |
|
120 | ## Available Icons
|
121 |
|
122 | See [demo].
|
123 |
|
124 | ## License
|
125 |
|
126 | Material Symbols are created by [Google](https://github.com/google/material-design-icons#license).
|
127 |
|
128 | > We have made these icons available for you to incorporate into your products under the [Apache License Version 2.0][license]. Feel free to remix and re-share these icons and documentation in your products.
|
129 | We'd love attribution in your app's *about* screen, but it's not required.
|
130 |
|
131 | [releases]: https://github.com/marella/material-symbols/releases
|
132 | [license]: https://github.com/marella/material-symbols/blob/main/font/600/LICENSE
|
133 | [demo]: https://marella.github.io/material-symbols/demo/
|