@ni/nimble-tokens 4.1.0 → 4.1.1
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.
|
@@ -4,4 +4,8 @@ Original font sources:
|
|
|
4
4
|
|
|
5
5
|
* [Source Sans Pro](https://fonts.google.com/specimen/Source+Sans+Pro)
|
|
6
6
|
|
|
7
|
-
Converted to WOFF2 format using [google-webfonts-helper](https://github.com/majodev/google-webfonts-helper)
|
|
7
|
+
Converted to WOFF2 format using [a tff to woff2](https://everythingfonts.com/ttf-to-woff2) recommended by [google-webfonts-helper](https://github.com/majodev/google-webfonts-helper)
|
|
8
|
+
|
|
9
|
+
# Adding new fonts
|
|
10
|
+
|
|
11
|
+
New font assets should be added to the `nimble-tokens/dist/fonts/assets` directory and referenced in from `nimble-tokens/dist/fonts/css/fonts.css` so that they will be loaded by applications using nimble.
|
|
Binary file
|
|
Binary file
|
package/dist/fonts/css/fonts.css
CHANGED
|
@@ -5,3 +5,19 @@
|
|
|
5
5
|
src: url('../assets/SourceSansPro-Regular.woff2') format('woff2');
|
|
6
6
|
font-display: swap;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Source Sans Pro';
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 300;
|
|
13
|
+
src: url('../assets/SourceSansPro-Light.woff2') format('woff2');
|
|
14
|
+
font-display: swap;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: 'Source Sans Pro';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
src: url('../assets/SourceSansPro-SemiBold.woff2') format('woff2');
|
|
22
|
+
font-display: swap;
|
|
23
|
+
}
|
package/package.json
CHANGED