simple-icons-font 14.2.0 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/font/SimpleIcons.eot +0 -0
- package/font/SimpleIcons.otf +0 -0
- package/font/SimpleIcons.ttf +0 -0
- package/font/SimpleIcons.woff +0 -0
- package/font/SimpleIcons.woff2 +0 -0
- package/font/simple-icons.css +2915 -2905
- package/font/simple-icons.min.css +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -79,6 +79,38 @@ Where `[ICON NAME]` is replaced by the icon name, for example:
|
|
|
79
79
|
|
|
80
80
|
In this example we use the `<i>` tag, but any inline HTML tag should work as you expect.
|
|
81
81
|
|
|
82
|
+
## Custom Builds
|
|
83
|
+
|
|
84
|
+
You can specify which icons need to be build for a smaller file size.
|
|
85
|
+
|
|
86
|
+
1. Clone and install dependencies:
|
|
87
|
+
|
|
88
|
+
```shell
|
|
89
|
+
git clone git@github.com:simple-icons/simple-icons-font.git
|
|
90
|
+
cd simple-icons-font
|
|
91
|
+
npm install
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
2. Use the environment variable `SI_FONT_SLUGS_FILTER` to filter icons to include:
|
|
95
|
+
|
|
96
|
+
```shell
|
|
97
|
+
SI_FONT_SLUGS_FILTER=github,simpleicons npm run build
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Next environment variables are available to customize the build:
|
|
101
|
+
|
|
102
|
+
- `SI_FONT_SLUGS_FILTER`: Comma separated string of slugs to include in the build. See [all slugs].
|
|
103
|
+
- `SI_FONT_PRESERVE_UNICODES`: By default, the build will retain the same unicode of an icon as the full build. You can set it to `false` to disable this.
|
|
104
|
+
|
|
105
|
+
For example, if you set `SI_FONT_PRESERVE_UNICODES` to `false`, the unicode will still start at `0xea01` and keep increasing even you skipped some icons:
|
|
106
|
+
|
|
107
|
+
```shell
|
|
108
|
+
SI_FONT_SLUGS_FILTER=github,simpleicons SI_FONT_PRESERVE_UNICODES=false npm run build
|
|
109
|
+
#=> github \u{EA01}
|
|
110
|
+
#=> simpleicons \u{EA02}
|
|
111
|
+
```
|
|
112
|
+
|
|
82
113
|
[latest-release]: https://github.com/simple-icons/simple-icons-font/releases/latest
|
|
83
114
|
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/simple-icons-font/
|
|
84
115
|
[unpkg-link]: https://unpkg.com/browse/simple-icons-font/
|
|
116
|
+
[all slugs]: https://github.com/simple-icons/simple-icons/blob/develop/slugs.md
|
package/font/SimpleIcons.eot
CHANGED
|
Binary file
|
package/font/SimpleIcons.otf
CHANGED
|
Binary file
|
package/font/SimpleIcons.ttf
CHANGED
|
Binary file
|
package/font/SimpleIcons.woff
CHANGED
|
Binary file
|
package/font/SimpleIcons.woff2
CHANGED
|
Binary file
|