@kungal/ui-tokens 2.44.0 → 2.46.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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/tokens.css +4 -0
- package/src/tokens.dtcg.json +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @kungal/ui-tokens
|
|
2
2
|
|
|
3
|
+
## 2.46.0
|
|
4
|
+
|
|
5
|
+
## 2.45.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- ff569d7: `KunNavItem`, one destination of an app shell's navigation. Every kungal site has hand-written it: the forum's rail and sidebar are lists of `KunButton`s, `flat` for the current page and `light` otherwise. The kungal Flutter app wrote the same thing a second time. It is a full-width `KunButton` with a `label`, an `icon` (or an `#icon` slot, which takes a `KunBadge`-wrapped icon for an unread count), and an `href`. `current` paints the item `flat` in `color` and adds `aria-current="page"`, so a screen reader announces the current page. The forum's hand-written items never announced it. `stacked` puts the icon over the label for a rail or a bottom bar. KunUI does not read the route: the app decides which item is current, and it arranges the items itself, in a rail, a sidebar or a bar.
|
|
10
|
+
|
|
11
|
+
The code face is a token now. `tokens.css` declares `--kun-font-mono`, and `.kun-prose` sets both `code` and `kbd` in it, so `kbd` gains the full stack in place of `ui-monospace, monospace`. `kun_ui_tokens` carries it as `KunFontFamilies.mono`, with `monoFallback` and a `monoStyle` to merge onto a `KunText` step. Flutter has no `ui-monospace` keyword, so that entry is dropped from the Dart stack. `monospace` stays last, because Android and Linux resolve that name to the system's fixed-width face.
|
|
12
|
+
|
|
13
|
+
`KunImage` is portable in the Flutter contract. It had been marked web-only for its `@nuxt/image` pipeline, but the layer KunImage adds itself also crosses to Flutter: the ThumbHash blur-up, the pulse skeleton, the aspect-ratio box, `objectFit`, `fallbackSrc` and the `load` / `error` events. Only the `<NuxtImg>` optimisation props and the native `<img>` hints (`loading`, `decoding`, `fetchpriority`) stay web-only.
|
|
14
|
+
|
|
15
|
+
`KunImage`'s blur-up now cross-fades as its comments always said it did. The ThumbHash placeholder and the skeleton were removed the moment the image loaded, so the image faded in over the bare page: measured in Chromium, the placeholder was gone from the DOM in the same frame the image's opacity left 0, and the midpoint of the fade was a washed-out image on white. The placeholder now stays at full opacity until the image has finished fading in (`--kun-dur-slow`), and only then fades itself, so a transparent image does not keep it showing through. A failed load still fades it out at once, and a new `src` brings it back with no transition.
|
|
16
|
+
|
|
3
17
|
## 2.44.0
|
|
4
18
|
|
|
5
19
|
## 2.43.0
|
package/package.json
CHANGED
package/src/tokens.css
CHANGED
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
* opts in for every surface at once, e.g. `--kun-backdrop-filter: blur(12px)`
|
|
48
48
|
* (pair with a lowered --kun-surface-opacity). */
|
|
49
49
|
--kun-backdrop-filter: none;
|
|
50
|
+
|
|
51
|
+
/* The code face: `.kun-prose code` and `kbd`. kun_ui_tokens carries it as
|
|
52
|
+
* KunFontFamilies.mono, so an app sets code in the same stack. */
|
|
53
|
+
--kun-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/* Opt-in frosted-glass backdrop for raised surfaces. At the default `none` it
|
package/src/tokens.dtcg.json
CHANGED
|
@@ -3175,6 +3175,19 @@
|
|
|
3175
3175
|
}
|
|
3176
3176
|
}
|
|
3177
3177
|
},
|
|
3178
|
+
"fontFamily": {
|
|
3179
|
+
"mono": {
|
|
3180
|
+
"$type": "fontFamily",
|
|
3181
|
+
"$value": [
|
|
3182
|
+
"ui-monospace",
|
|
3183
|
+
"SFMono-Regular",
|
|
3184
|
+
"Menlo",
|
|
3185
|
+
"Consolas",
|
|
3186
|
+
"Liberation Mono",
|
|
3187
|
+
"monospace"
|
|
3188
|
+
]
|
|
3189
|
+
}
|
|
3190
|
+
},
|
|
3178
3191
|
"fontWeight": {
|
|
3179
3192
|
"$description": "The values are Tailwind v4's default theme, which KunUI's components are written against and never redeclare. A site that overrides them in its own @theme renders differently from these; these are what the components were designed at.",
|
|
3180
3193
|
"thin": {
|