@kungal/ui-tokens 2.52.1 → 2.54.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @kungal/ui-tokens
2
2
 
3
+ ## 2.54.0
4
+
5
+ ## 2.53.0
6
+
7
+ ### Minor Changes
8
+
9
+ - 461df96: New token `foreground-muted` for secondary text: descriptions, helper text, timestamps, counts, empty states and meta lines. It is `default-600` in light mode and `default-500` in dark mode. The token generator now fails the build unless it clears 4.5:1 (WCAG AA) on both `background` and `content1` in both modes. Measured: 5.03:1 and 5.53:1 in light, 5.42:1 and 4.85:1 in dark.
10
+
11
+ KunUI's own components use it for secondary text. They used to set that text in `text-default-500` or `text-default-400`, which measure 3.33:1 and 2.31:1 on the light page background, so both fell below AA. Affected text includes field descriptions and helper text, tab labels that are not selected, divider labels, user-chip descriptions, character counts, empty states, timeline and chat timestamps, conversation previews and command-palette meta lines.
12
+
13
+ - **What it costs:** in light mode that text is now a step darker. Dark mode renders exactly as before, because its value (`default-500`) is the one it already used.
14
+ - **What stays the same:** placeholders (`::placeholder` stays `default-400`), the text of an empty select or date picker, disabled states, outside-month days and icons.
15
+
16
+ **Migrating your own text.** No single grey clears 4.5:1 against both the light and the dark page, and the ramp's `500` step is the same value in both modes. So readable secondary text belongs on this token, not on a fixed step:
17
+
18
+ - In Vue, replace `text-default-500` or `text-default-400` with `text-foreground-muted`.
19
+ - In Flutter (`kun_ui_tokens`), `KunColorScheme` gains `foregroundMuted`. Replace `scheme.neutral.shade500` with `scheme.foregroundMuted`.
20
+ - Keep the old steps for anything that is not text meant to be read.
21
+
22
+ `KunColorScheme`'s constructor gains a required `foregroundMuted` parameter. Only code that builds a scheme by hand needs to pass it. `KunColors.light` and `KunColors.dark` already carry it.
23
+
3
24
  ## 2.52.1
4
25
 
5
26
  ## 2.52.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungal/ui-tokens",
3
- "version": "2.52.1",
3
+ "version": "2.54.0",
4
4
  "description": "KunUI design tokens — framework-agnostic Tailwind v4 theme (semantic colors, radius, z-index, animations).",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -11,6 +11,7 @@
11
11
  @theme {
12
12
  --color-background: oklch(var(--background) / var(--kun-global-opacity));
13
13
  --color-foreground: oklch(var(--foreground));
14
+ --color-foreground-muted: oklch(var(--foreground-muted));
14
15
  --color-content1: oklch(var(--content1) / var(--kun-surface-opacity));
15
16
  --color-content2: oklch(var(--content2));
16
17
  --color-content3: oklch(var(--content3));
@@ -119,6 +120,7 @@
119
120
  :root {
120
121
  --background: 0.968 0.004 286.33;
121
122
  --foreground: 0.2057 0.0132 233.66;
123
+ --foreground-muted: 0.52 0.015 285.9;
122
124
  --content1: 1 0 0;
123
125
  --content2: 0.9683 0.0014 286.37;
124
126
  --content3: 0.9197 0.0041 286.32;
@@ -233,6 +235,7 @@
233
235
  .kun-dark-mode {
234
236
  --background: 0.1448 0 0;
235
237
  --foreground: 0.946 0.0018 247.84;
238
+ --foreground-muted: 0.62 0.015 285.9;
236
239
  --content1: 0.2102 0.006 285.87;
237
240
  --content2: 0.2747 0.006 286;
238
241
  --content3: 0.3701 0.0113 285.84;
@@ -1306,6 +1306,10 @@
1306
1306
  "border": {
1307
1307
  "$type": "color",
1308
1308
  "$value": "{color.light.default.100}"
1309
+ },
1310
+ "foreground-muted": {
1311
+ "$type": "color",
1312
+ "$value": "{color.light.default.600}"
1309
1313
  }
1310
1314
  },
1311
1315
  "dark": {
@@ -2587,6 +2591,10 @@
2587
2591
  "border": {
2588
2592
  "$type": "color",
2589
2593
  "$value": "{color.dark.default.100}"
2594
+ },
2595
+ "foreground-muted": {
2596
+ "$type": "color",
2597
+ "$value": "{color.dark.default.500}"
2590
2598
  }
2591
2599
  }
2592
2600
  },