blip-tokens 2.2.0 → 2.2.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.
package/README.md CHANGED
@@ -666,7 +666,7 @@ Component artwork SVGs live in `assets/components/` and are registered under `as
666
666
 
667
667
  ## CDN Assets
668
668
 
669
- All five artwork families are delivered as standalone SVGs through the CDN, not embedded in the npm package. Import the packaged manifest to resolve an asset URL:
669
+ Artwork families and UAI icons are delivered as standalone SVGs through the CDN, not embedded in the npm package. Import the packaged manifest to resolve an asset URL:
670
670
 
671
671
  ```javascript
672
672
  import manifest from 'blip-tokens/assets/manifest' with { type: 'json' };
@@ -679,7 +679,25 @@ JSON import syntax depends on the consuming runtime or bundler. Each manifest en
679
679
 
680
680
  The default URL pattern is `https://cdn.blip.ai/blip-tokens/<version>/<asset.path>`. Use the manifest shipped with the installed package so its version and asset paths stay aligned. A local build's `unreleased` directory is not published automatically.
681
681
 
682
- The generator rejects invalid SVG documents, active content, external references, source paths outside `assets/`, and duplicate output paths. Add artwork to its registry as well as the filesystem; CDN generation reads registries, while icon names/types are generated from the filesystem.
682
+ ### Figtree
683
+
684
+ The CDN manifest includes the variable Figtree WOFF2 subsets `font/figtree/latin`
685
+ and `font/figtree/latin-ext`, both covering weights 300–900. Resolve each URL from
686
+ the installed package's manifest; use both subsets with the matching
687
+ `unicode-range` declarations from the
688
+ [Google Fonts stylesheet](https://fonts.googleapis.com/css2?family=Figtree:wght@300..900&display=swap).
689
+ The same CDN manifest also includes `font/figtree/license` (`fonts/figtree/OFL.txt`).
690
+ The font and license are CDN-only and are not included in the npm package.
691
+
692
+ Figtree is redistributed under the SIL Open Font License 1.1. Keep the license
693
+ available alongside the font when using these assets. Source files are from
694
+ [Google Fonts' Figtree family](https://github.com/google/fonts/tree/main/ofl/figtree).
695
+
696
+ The generator validates SVG documents, active content, external references,
697
+ WOFF2 signatures, the Figtree license, source paths outside `assets/`, and
698
+ duplicate output paths. Add artwork to its registry as well as the filesystem;
699
+ CDN generation reads registries, while icon names/types are generated from the
700
+ filesystem.
683
701
 
684
702
  ---
685
703
 
@@ -706,7 +724,7 @@ The build clears previous outputs and runs four steps:
706
724
  1. **Style Dictionary 2** (`config.cjs`) — transforms only color and theme tokens into the legacy JSON, CSS, and SCSS; artwork registries are not inputs
707
725
  2. **Icon types generator** (`scripts/generate_icon_types.js`) — produces `build/icons.js` and `build/icons.d.ts`
708
726
  3. **Figma token pipeline** (`scripts/build_tokens.js`) — validates the Figma snapshot, normalizes DTCG, resolves aliases and generates the `--uai-*` outputs with Style Dictionary 5. It runs after step 1 and writes only `uai-*` files, `tokens.js` and `tokens.d.ts`, so the legacy files are not touched
709
- 4. **CDN asset generator** (`scripts/generate_assets.cjs`) — reads the SVG source registries directly, validates and copies artwork, and generates the asset manifest without intermediate embedded JSON catalogs
727
+ 4. **CDN asset generator** (`scripts/generate_assets.cjs`) — reads the SVG source registries directly, validates and copies artwork and Figtree font files, and generates the asset manifest without intermediate embedded JSON catalogs
710
728
 
711
729
  Style Dictionary 5 is installed as the `style-dictionary-v5` alias next to
712
730
  Style Dictionary 2, which the legacy and asset builds still use. Run `npm test`
@@ -745,7 +763,8 @@ build/
745
763
  │ └── extended-color.json # Legacy extended palette
746
764
  ├── assets/v1/
747
765
  │ ├── manifest.json # Packaged inventory; used for validation, not uploaded
748
- │ └── .../*.svg # CDN upload only; excluded from npm
766
+ │ ├── .../*.svg # CDN upload only; excluded from npm
767
+ │ └── fonts/figtree/ # Variable WOFF2 subsets and OFL license; CDN only
749
768
  ├── tokens.js # ESM theme maps, styles and metadata
750
769
  ├── tokens.d.ts # Token, style and metadata types
751
770
  ├── icons.js # Runtime icon arrays + helpers
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "baseUrl": "https://cdn.blip.ai/blip-tokens/",
5
5
  "assets": {
6
6
  "asset-icon-123-outline": {
@@ -11126,6 +11126,24 @@
11126
11126
  "bytes": 5296,
11127
11127
  "sha256": "eb10fd17c1112452ec9873e84a3511a26b70749c785064069c4182d73e9d92c2",
11128
11128
  "contentType": "image/svg+xml"
11129
+ },
11130
+ "font/figtree/latin": {
11131
+ "path": "fonts/figtree/latin.woff2",
11132
+ "bytes": 20184,
11133
+ "sha256": "8330490a01c60c196eae00b823de8102275aaa5862e7b76a7af21b8745338928",
11134
+ "contentType": "font/woff2"
11135
+ },
11136
+ "font/figtree/latin-ext": {
11137
+ "path": "fonts/figtree/latin-ext.woff2",
11138
+ "bytes": 10228,
11139
+ "sha256": "f153aa07c1b16fbb12391c2512860c97819a0a9fd014f338b2b3f12496479d13",
11140
+ "contentType": "font/woff2"
11141
+ },
11142
+ "font/figtree/license": {
11143
+ "path": "fonts/figtree/OFL.txt",
11144
+ "bytes": 4387,
11145
+ "sha256": "bb272dfcd8801eb31fb98fe51828f76f0e41ac82f89256101df8021aa3d30ce2",
11146
+ "contentType": "text/plain"
11129
11147
  }
11130
11148
  }
11131
11149
  }
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 20 Oct 2026 20:26:36 GMT
3
+ // Generated on Thu, 22 Oct 2026 16:21:30 GMT
4
4
 
5
5
  $color-extended-blue: #1968F0;
6
6
  $color-extended-ocean: #00D3E4;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 20 Oct 2026 20:26:36 GMT
3
+ // Generated on Thu, 22 Oct 2026 16:21:30 GMT
4
4
 
5
5
  $color-dark-brand: #0096fa;
6
6
  $color-dark-primary: #1e6bf1;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 20 Oct 2026 20:26:36 GMT
3
+ // Generated on Thu, 22 Oct 2026 16:21:30 GMT
4
4
 
5
5
  $color-high-contrast-brand: #0096fa;
6
6
  $color-high-contrast-primary: #1e6bf1;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 20 Oct 2026 20:26:36 GMT
3
+ // Generated on Thu, 22 Oct 2026 16:21:30 GMT
4
4
 
5
5
  $color-light-brand: #0096fa;
6
6
  $color-light-primary: #1e6bf1;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 20 Oct 2026 20:26:36 GMT
3
+ // Generated on Thu, 22 Oct 2026 16:21:30 GMT
4
4
 
5
5
  $color-primary-light: #b3d4ff;
6
6
  $color-primary-main: #3f7de8;
@@ -1,4 +1,4 @@
1
- @font-face { font-family: "uai-icon"; src: url("https://cdn.blip.ai/blip-tokens/2.2.0/uai-icon/font/uai-icon.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
1
+ @font-face { font-family: "uai-icon"; src: url("https://cdn.blip.ai/blip-tokens/2.2.1/uai-icon/font/uai-icon.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
2
2
  .uai-icon { display: inline-block; font-family: "uai-icon" !important; font-style: normal; font-weight: normal !important; font-variant: normal; text-transform: none; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3
3
  .uai-icon.uai-icon-outline-123:before { content: "\e000"; }
4
4
  .uai-icon.uai-icon-outline-ab:before { content: "\e001"; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blip-tokens",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "build/icons.js",