@kungal/ui-tokens 2.56.0 → 2.56.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/CHANGELOG.md +26 -0
- package/package.json +1 -1
- package/src/palette.generated.css +2 -2
- package/src/tokens.dtcg.json +20 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @kungal/ui-tokens
|
|
2
2
|
|
|
3
|
+
## 2.56.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 26ffcad: Secondary text now clears WCAG AA on the fills it sits on, not only on the bare page.
|
|
8
|
+
|
|
9
|
+
- **`foreground-muted` is slightly stronger.** It was the ramp's `default-600` in light and `default-500` in dark. That cleared AA on `background` and `content1`, but not on the neutral fills muted text also sits on: a hovered or keyboard-highlighted row (`bg-default/20`), a keycap (`bg-default-100`) and a code-block header (`bg-default/15`). On those it measured as low as 3.95:1 in light and 3.93:1 in dark, and a KunKbd keycap in dark mode read 4.36:1. It is now a grey of its own between the ramp steps: OKLCH L 0.48 in light and 0.66 in dark. That is the smallest move that clears 4.5:1 on all of those fills. On the page it is now 5.98:1 in light and 6.35:1 in dark, up from 5.03:1 and 5.42:1. The token generator now measures it on `background`, on `content1`, on `default/20` over each and on `default-100`, and fails the build if any is below AA. Placeholders use this token, so placeholders on tinted inputs get the same fix. `{c}-text` is now also measured on its own `100` step, the fill of the viewer's own chat bubble; every hue already cleared it.
|
|
10
|
+
- **Text on a tint laid over another tinted surface uses `text-default-text`,** as a flat default chip's label does. This covers KunChatMessageList's unread divider, a `default/15` band on the `default-100` chat wallpaper (4.10:1 in light), and KunChatText's code-block language label inside a coloured bubble (4.12:1 in dark).
|
|
11
|
+
- **No transparency on a fill's on-colour.** White on `primary` is 4.59:1, so any alpha drops it below AA.
|
|
12
|
+
- KunChatConversationItem's selected row drew its time at 80% and its preview at 85%, which measured 3.50:1 and 3.76:1.
|
|
13
|
+
- KunInfo's solid and shadow descriptions were drawn at 90% (4.02:1).
|
|
14
|
+
- Both are now at full strength.
|
|
15
|
+
- **KunChatConversationItem muted-chat badge.** The unread badge of a muted chat was white on `default-400`, 2.53:1 in light. It is now the solid default fill with its own on-colour, 4.87:1.
|
|
16
|
+
- **KunChatBubble.**
|
|
17
|
+
- A deleted reply's "message deleted" line was `default-500` (3.20:1 in light); it is now `foreground-muted`.
|
|
18
|
+
- The time shown over a photo now sits on `bg-black/55` instead of `/45`. White on black/45 over a white screenshot is 3.35:1, and /55 is the lowest opacity that clears 4.5:1 over any image.
|
|
19
|
+
|
|
20
|
+
**What it costs:** muted text renders slightly darker in light mode and slightly lighter in dark mode everywhere it is used. Your code needs no changes. In `tokens.dtcg.json`, `foreground-muted` is now a colour value instead of an alias to a ramp step. In Flutter, `KunColorScheme.foregroundMuted` takes the new value; its API is unchanged.
|
|
21
|
+
|
|
22
|
+
Measured in Chromium on every demo across the 77 component pages, in both modes. The only text still below AA is:
|
|
23
|
+
|
|
24
|
+
- disabled controls;
|
|
25
|
+
- KunLoading's outlined caption, and the content dimmed under its mask;
|
|
26
|
+
- a reaction colour the consumer chose;
|
|
27
|
+
- text on an image or a gradient.
|
|
28
|
+
|
|
3
29
|
## 2.56.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
:root {
|
|
128
128
|
--background: 0.968 0.004 286.33;
|
|
129
129
|
--foreground: 0.2057 0.0132 233.66;
|
|
130
|
-
--foreground-muted: 0.
|
|
130
|
+
--foreground-muted: 0.48 0.015 285.9;
|
|
131
131
|
--content1: 1 0 0;
|
|
132
132
|
--content2: 0.9683 0.0014 286.37;
|
|
133
133
|
--content3: 0.9197 0.0041 286.32;
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
.kun-dark-mode {
|
|
250
250
|
--background: 0.1448 0 0;
|
|
251
251
|
--foreground: 0.946 0.0018 247.84;
|
|
252
|
-
--foreground-muted: 0.
|
|
252
|
+
--foreground-muted: 0.66 0.015 285.9;
|
|
253
253
|
--content1: 0.2102 0.006 285.87;
|
|
254
254
|
--content2: 0.2747 0.006 286;
|
|
255
255
|
--content3: 0.3701 0.0113 285.84;
|
package/src/tokens.dtcg.json
CHANGED
|
@@ -1337,7 +1337,16 @@
|
|
|
1337
1337
|
},
|
|
1338
1338
|
"foreground-muted": {
|
|
1339
1339
|
"$type": "color",
|
|
1340
|
-
"$value":
|
|
1340
|
+
"$value": {
|
|
1341
|
+
"colorSpace": "oklch",
|
|
1342
|
+
"components": [
|
|
1343
|
+
0.48,
|
|
1344
|
+
0.015,
|
|
1345
|
+
285.9
|
|
1346
|
+
],
|
|
1347
|
+
"alpha": 1,
|
|
1348
|
+
"hex": "#5d5d66"
|
|
1349
|
+
}
|
|
1341
1350
|
}
|
|
1342
1351
|
},
|
|
1343
1352
|
"dark": {
|
|
@@ -2650,7 +2659,16 @@
|
|
|
2650
2659
|
},
|
|
2651
2660
|
"foreground-muted": {
|
|
2652
2661
|
"$type": "color",
|
|
2653
|
-
"$value":
|
|
2662
|
+
"$value": {
|
|
2663
|
+
"colorSpace": "oklch",
|
|
2664
|
+
"components": [
|
|
2665
|
+
0.66,
|
|
2666
|
+
0.015,
|
|
2667
|
+
285.9
|
|
2668
|
+
],
|
|
2669
|
+
"alpha": 1,
|
|
2670
|
+
"hex": "#91919b"
|
|
2671
|
+
}
|
|
2654
2672
|
}
|
|
2655
2673
|
}
|
|
2656
2674
|
},
|