@ni/nimble-tokens 6.13.2 → 6.13.3
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/dist/fonts/README.md
CHANGED
|
@@ -15,5 +15,5 @@ A `nimble-tokens/dist/fonts/scss/fonts.scss` will be generated by the `npm run b
|
|
|
15
15
|
|
|
16
16
|
## Fallback fonts
|
|
17
17
|
|
|
18
|
-
When adding new fonts, you
|
|
18
|
+
When adding new fonts, you must also create size-adjusted fallback fonts to use with them. Follow the pattern being used in `nimble-tokens/dist/fonts/css/fonts.css` to define new `@font-face`s that utilize the `size-adjust` descriptor. There is an [online tool](https://www.industrialempathy.com/perfect-ish-font-fallback/) you can use to automatically select a value for `size-adjust` which the tool's author says is sufficient to avoid cumulative layout shift. (There are also `ascent-override`, `descent-override`, and `line-gap-override` descriptors, but we don't need to use those.) For different `font-weight` versions of the fallback font, you can use the same `size-adjust` value.
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-tokens",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.3",
|
|
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 && npm run build:generate-font-scss && npm run build:style-dictionary",
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
"pack": "npm run pack:npm && npm run pack:nuget",
|
|
16
16
|
"pack:npm": "npm pack",
|
|
17
17
|
"pack:nuget": "cross-env-shell dotnet pack ./NimbleTokens --configuration Release -p:PackageVersion=$npm_package_version",
|
|
18
|
-
"invoke-publish": "npm run invoke-publish:
|
|
19
|
-
"invoke-publish:
|
|
20
|
-
"invoke-publish:nuget": "cross-env-shell dotnet nuget push \"NimbleTokens/bin/Release/*.nupkg\" -k $NUGET_SECRET_TOKEN -s \"https://api.nuget.org/v3/index.json\""
|
|
21
|
-
"invoke-publish:npm": "npm publish"
|
|
18
|
+
"invoke-publish": "npm run invoke-publish:setup && npm run invoke-publish:nuget && npm publish",
|
|
19
|
+
"invoke-publish:setup": "rimraf --glob \"NimbleTokens/bin/Release/*.nupkg\" && npm run pack",
|
|
20
|
+
"invoke-publish:nuget": "cross-env-shell dotnet nuget push \"NimbleTokens/bin/Release/*.nupkg\" -k $NUGET_SECRET_TOKEN -s \"https://api.nuget.org/v3/index.json\""
|
|
22
21
|
},
|
|
23
22
|
"repository": {
|
|
24
23
|
"type": "git",
|