@ni/nimble-tokens 4.1.0 → 4.1.2

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-tokens",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Design tokens for the NI Nimble Design System",
5
5
  "scripts": {
6
6
  "build": "npm run build:svg-to-ts && npm run build:ts && npm run build:svg-to-ico",
@@ -23,7 +23,7 @@
23
23
  "author": {
24
24
  "name": "National Instruments"
25
25
  },
26
- "license": "UNLICENSED",
26
+ "license": "MIT",
27
27
  "bugs": {
28
28
  "url": "https://github.com/ni/nimble/issues"
29
29
  },