Skip to content

Commit d6813e6

Browse files
Optimize by add woff2, and extra styles (#18)
* Add woff2, extra styles * remove vscode settings leftover * rm extra styles * bump version * whitespace * 2.0.1 -> 2.0.2 * gitignore * ignore whole vscode folder
1 parent 91704ad commit d6813e6

File tree

16 files changed

+20
-13
lines changed

16 files changed

+20
-13
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules/
1+
node_modules/
2+
.vscode/

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ We use a similar approach as many other icon sets out there, providing icons as
2626
<link
2727
rel="stylesheet"
2828
type="text/css"
29-
href="https://unpkg.com/@phosphor-icons/web@2.0.1/src/bold/style.css"
29+
href="https://unpkg.com/@phosphor-icons/web@2.0.2/src/bold/style.css"
3030
/>
3131
</head>
3232
<body>
@@ -47,7 +47,7 @@ Phosphor Icons come in 6 weights: `regular`, `thin`, `light`, `bold`, `fill`, an
4747
<link
4848
rel="stylesheet"
4949
type="text/css"
50-
href="https://unpkg.com/@phosphor-icons/web@2.0.1/src/duotone/style.css"
50+
href="https://unpkg.com/@phosphor-icons/web@2.0.2/src/duotone/style.css"
5151
/>
5252
...
5353
<i class="ph-duotone ph-baseball"></i>
@@ -60,7 +60,7 @@ The URL format is `https://unpkg.com/@phosphor-icons/web@<VERSION>/src/<WEIGHT>/
6060
If you intend to use all 6 weights, they can be made available by including the library as a script tag, using the base URL:
6161

6262
```html
63-
<script src="https://unpkg.com/@phosphor-icons/web@2.0.1"></script>
63+
<script src="https://unpkg.com/@phosphor-icons/web@2.0.2"></script>
6464
...
6565
<i class="ph-light ph-address-book"></i>
6666
<i class="ph ph-sunglasses"></i>
@@ -115,7 +115,7 @@ All weights aside from `duotone` support ligatures, meaning that in any text usi
115115
<link
116116
rel="stylesheet"
117117
type="text/css"
118-
href="https://unpkg.com/@phosphor-icons/web@2.0.1/src/bold/style.css"
118+
href="https://unpkg.com/@phosphor-icons/web@2.0.2/src/bold/style.css"
119119
/>
120120
</head>
121121
<body>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@phosphor-icons/web",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "A clean and friendly icon family for web",
55
"main": "src/index.js",
66
"files": [

src/bold/Phosphor-Bold.woff2

106 KB
Binary file not shown.

src/bold/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@font-face {
22
font-family: "Phosphor-Bold";
3-
src: url("./Phosphor-Bold.woff") format("woff"),
3+
src: url("./Phosphor-Bold.woff2") format("woff2"),
4+
url("./Phosphor-Bold.woff") format("woff"),
45
url("./Phosphor-Bold.ttf") format("truetype"),
56
url("./Phosphor-Bold.svg#Phosphor-Bold") format("svg");
67
font-weight: normal;

src/duotone/Phosphor-Duotone.woff2

129 KB
Binary file not shown.

src/duotone/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@font-face {
22
font-family: "Phosphor-Duotone";
3-
src: url("./Phosphor-Duotone.woff") format("woff"),
3+
src: url("./Phosphor-Duotone.woff2") format("woff2")
4+
url("./Phosphor-Duotone.woff") format("woff"),
45
url("./Phosphor-Duotone.ttf") format("truetype"),
56
url("./Phosphor-Duotone.svg#Phosphor-Duotone") format("svg");
67
font-weight: normal;

src/fill/Phosphor-Fill.woff2

89.2 KB
Binary file not shown.

src/fill/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@font-face {
22
font-family: "Phosphor-Fill";
3-
src: url("./Phosphor-Fill.woff") format("woff"),
3+
src: url("./Phosphor-Fill.woff2") format("woff2")
4+
url("./Phosphor-Fill.woff") format("woff"),
45
url("./Phosphor-Fill.ttf") format("truetype"),
56
url("./Phosphor-Fill.svg#Phosphor-Fill") format("svg");
67
font-weight: normal;

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ for (weight of ["regular", "thin", "light", "bold", "fill", "duotone"]) {
55
link.rel = "stylesheet";
66
link.type = "text/css";
77
link.href =
8-
"https://unpkg.com/@phosphor-icons/web@2.0.1/src/" + weight + "/style.css";
8+
"https://unpkg.com/@phosphor-icons/web@2.0.2/src/" + weight + "/style.css";
99
head.appendChild(link);
1010
}

0 commit comments

Comments
 (0)