blip-tokens 2.1.0 → 2.2.0
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 +17 -1
- package/build/assets/v1/manifest.json +3889 -1
- package/build/scss/extended-color.scss +1 -1
- package/build/scss/theme-dark.scss +1 -1
- package/build/scss/theme-high-contrast.scss +1 -1
- package/build/scss/theme-light.scss +1 -1
- package/build/scss/variables.scss +1 -1
- package/build/uai-icons/uai-icon.css +651 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -518,6 +518,22 @@ There are two icon variants:
|
|
|
518
518
|
| **Outline** | `assets/icons/outline/` | `<name>-outline` |
|
|
519
519
|
| **Solid** | `assets/icons/solid/` | `<name>-solid` |
|
|
520
520
|
|
|
521
|
+
### UAI Icon font
|
|
522
|
+
|
|
523
|
+
The separate UAI icon set lives in `assets/uai-icons/outline/` and `assets/uai-icons/solid/`. Its SVGs are uploaded to the versioned CDN. The generated monochrome WOFF2 font and glyph data are published under `uai-icon/font/` and `uai-icon/glyphs.json` in the CDN. The npm package bundles only the CSS under `build/uai-icons/`, exported as `blip-tokens/uai-icons/css`; the CSS references the versioned CDN font. The legacy `assets/icons/` registry, names, and build remain independent.
|
|
524
|
+
|
|
525
|
+
The generated font uses `currentColor`, so icon color follows the CSS `color` property of the element (or an inherited color). Import the bundled stylesheet, then use the base class, glyph class, and a size class. The WOFF2 font and glyph manifest are available from the versioned CDN; only the stylesheet is included in the package.
|
|
526
|
+
|
|
527
|
+
```html
|
|
528
|
+
<link rel="stylesheet" href="node_modules/blip-tokens/build/uai-icons/uai-icon.css">
|
|
529
|
+
<i class="uai-icon uai-icon-outline-favorite uai-icon-32" aria-hidden="true"></i>
|
|
530
|
+
<span class="uai-icon uai-icon-solid-favorite uai-icon-24" style="color: #e2483d" aria-hidden="true"></span>
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
Supported size classes are `uai-icon-16`, `uai-icon-24`, and `uai-icon-32`. The glyph class is `uai-icon-<variant>-<name>`; when two icons share a leaf name, the category is included to disambiguate, for example `uai-icon-outline-file-video` and `uai-icon-outline-media-video`.
|
|
534
|
+
|
|
535
|
+
The build generates the font source from the UAI SVGs, replacing their monochrome fill/stroke colors with `currentColor`; transparent fills such as `fill="none"` are preserved. This transformation is isolated to the font source and does not modify the shipped UAI SVG assets.
|
|
536
|
+
|
|
521
537
|
### Adding New Icons
|
|
522
538
|
|
|
523
539
|
1. **Place the SVG file** in the correct folder:
|
|
@@ -728,7 +744,7 @@ build/
|
|
|
728
744
|
│ ├── theme-*.json # Legacy themes (light, dark, high-contrast)
|
|
729
745
|
│ └── extended-color.json # Legacy extended palette
|
|
730
746
|
├── assets/v1/
|
|
731
|
-
│ ├── manifest.json # Packaged
|
|
747
|
+
│ ├── manifest.json # Packaged inventory; used for validation, not uploaded
|
|
732
748
|
│ └── .../*.svg # CDN upload only; excluded from npm
|
|
733
749
|
├── tokens.js # ESM theme maps, styles and metadata
|
|
734
750
|
├── tokens.d.ts # Token, style and metadata types
|