@kungal/ui-tokens 2.39.0 → 2.40.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 +4 -2
- package/src/tokens.dtcg.json +155 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @kungal/ui-tokens
|
|
2
2
|
|
|
3
|
+
## 2.40.1
|
|
4
|
+
|
|
5
|
+
## 2.40.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- 905b880: `kun_ui_tokens` now carries every theme value a KunUI component uses, and the generator fails when a component starts using one it does not.
|
|
10
|
+
|
|
11
|
+
**For the Flutter port**
|
|
12
|
+
|
|
13
|
+
- `KunPulse` (`animate-pulse`: 2 s, `Cubic(0.4, 0, 0.6, 1)`, `midOpacity` 0.5) and `KunSpin` (`animate-spin`: 1 s, linear) unblock KunSkeleton, KunAvatar's loading layer and KunProgress's indeterminate ring. The web eases each _half_ of a pulse cycle. An `AnimationController` of half `KunPulse.duration` running `repeat(reverse: true)` under a `CurvedAnimation` with `KunPulse.curve` matched Chromium within 0.0008 opacity across two cycles; easing the whole cycle once is off by up to 0.14.
|
|
14
|
+
- `KunRounded` is Tailwind's own radius scale. KunSkeleton's text variant, KunLightbox and KunCommandPalette use `rounded-md` and its neighbours directly. Unlike `KunRadius`, the scale ignores `--kun-radius-scale`.
|
|
15
|
+
- `KunFontWeights` is Tailwind's weight scale: `font-medium` is `KunFontWeights.medium`.
|
|
16
|
+
- `KunColorScheme.border` is the `border-kun` hairline, `neutral.shade100`.
|
|
17
|
+
- `KunColors.globalOpacity` (0.7) is the alpha the web draws `--color-background` and `--color-default-100` at. The schemes still store both opaque, so web `bg-default-100` is `neutral.shade100.withValues(alpha: KunColors.globalOpacity)`.
|
|
18
|
+
- A few values stay unported on purpose, each with its reason in `packages/ui-tokens/scripts/theme-coverage.mjs`: the `--z-kun-*` layers, KunLoli's animate.css keyframes (copy them with the component, as with Pagination's pop), the opt-in glass knobs and the live `--kun-scrollbar-width`.
|
|
19
|
+
- `tokens.dtcg.json` gains the same values: `fontWeight`, `rounded`, `motion.pulse`, `motion.spin`, `opacity.global` and a `border` alias in each mode.
|
|
20
|
+
|
|
21
|
+
**For websites**
|
|
22
|
+
|
|
23
|
+
- KunImage's loading placeholder, and with it KunAvatar's, now pulses only when the user has not asked for reduced motion, as KunSkeleton already did. Nothing else renders differently.
|
|
24
|
+
|
|
25
|
+
**For contributors**
|
|
26
|
+
|
|
27
|
+
- `pnpm gen:tokens` builds the Vue and core sources with Tailwind and fails when a component depends on a theme variable that `kun_ui_tokens` neither generates nor lists in `NOT_GENERATED` with a reason. A class, a breakpoint or a `var()` in a `<style>` block all count. `@kungal/ui-tokens` gains `@tailwindcss/oxide` and `tailwindcss` as dev dependencies for this; consumers install nothing new.
|
|
28
|
+
|
|
3
29
|
## 2.39.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungal/ui-tokens",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.40.1",
|
|
4
4
|
"description": "KunUI design tokens — framework-agnostic Tailwind v4 theme (semantic colors, radius, z-index, animations).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
"tailwindcss": "^4.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"
|
|
45
|
+
"@tailwindcss/oxide": "^4.3.0",
|
|
46
|
+
"culori": "^4.0.2",
|
|
47
|
+
"tailwindcss": "^4.3.0"
|
|
46
48
|
},
|
|
47
49
|
"scripts": {
|
|
48
50
|
"build": "echo \"@kungal/ui-tokens ships CSS source, no build step\"",
|
package/src/tokens.dtcg.json
CHANGED
|
@@ -1302,6 +1302,10 @@
|
|
|
1302
1302
|
"alpha": 1,
|
|
1303
1303
|
"hex": "#d4d4d8"
|
|
1304
1304
|
}
|
|
1305
|
+
},
|
|
1306
|
+
"border": {
|
|
1307
|
+
"$type": "color",
|
|
1308
|
+
"$value": "{color.light.default.100}"
|
|
1305
1309
|
}
|
|
1306
1310
|
},
|
|
1307
1311
|
"dark": {
|
|
@@ -2579,9 +2583,20 @@
|
|
|
2579
2583
|
"alpha": 1,
|
|
2580
2584
|
"hex": "#52525b"
|
|
2581
2585
|
}
|
|
2586
|
+
},
|
|
2587
|
+
"border": {
|
|
2588
|
+
"$type": "color",
|
|
2589
|
+
"$value": "{color.dark.default.100}"
|
|
2582
2590
|
}
|
|
2583
2591
|
}
|
|
2584
2592
|
},
|
|
2593
|
+
"opacity": {
|
|
2594
|
+
"global": {
|
|
2595
|
+
"$description": "The alpha of --color-background and --color-default-100; the color tokens store both opaque.",
|
|
2596
|
+
"$type": "number",
|
|
2597
|
+
"$value": 0.7
|
|
2598
|
+
}
|
|
2599
|
+
},
|
|
2585
2600
|
"radius": {
|
|
2586
2601
|
"none": {
|
|
2587
2602
|
"$type": "dimension",
|
|
@@ -2619,6 +2634,65 @@
|
|
|
2619
2634
|
}
|
|
2620
2635
|
}
|
|
2621
2636
|
},
|
|
2637
|
+
"rounded": {
|
|
2638
|
+
"$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.",
|
|
2639
|
+
"xs": {
|
|
2640
|
+
"$type": "dimension",
|
|
2641
|
+
"$value": {
|
|
2642
|
+
"value": 2,
|
|
2643
|
+
"unit": "px"
|
|
2644
|
+
}
|
|
2645
|
+
},
|
|
2646
|
+
"sm": {
|
|
2647
|
+
"$type": "dimension",
|
|
2648
|
+
"$value": {
|
|
2649
|
+
"value": 4,
|
|
2650
|
+
"unit": "px"
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
"md": {
|
|
2654
|
+
"$type": "dimension",
|
|
2655
|
+
"$value": {
|
|
2656
|
+
"value": 6,
|
|
2657
|
+
"unit": "px"
|
|
2658
|
+
}
|
|
2659
|
+
},
|
|
2660
|
+
"lg": {
|
|
2661
|
+
"$type": "dimension",
|
|
2662
|
+
"$value": {
|
|
2663
|
+
"value": 8,
|
|
2664
|
+
"unit": "px"
|
|
2665
|
+
}
|
|
2666
|
+
},
|
|
2667
|
+
"xl": {
|
|
2668
|
+
"$type": "dimension",
|
|
2669
|
+
"$value": {
|
|
2670
|
+
"value": 12,
|
|
2671
|
+
"unit": "px"
|
|
2672
|
+
}
|
|
2673
|
+
},
|
|
2674
|
+
"2xl": {
|
|
2675
|
+
"$type": "dimension",
|
|
2676
|
+
"$value": {
|
|
2677
|
+
"value": 16,
|
|
2678
|
+
"unit": "px"
|
|
2679
|
+
}
|
|
2680
|
+
},
|
|
2681
|
+
"3xl": {
|
|
2682
|
+
"$type": "dimension",
|
|
2683
|
+
"$value": {
|
|
2684
|
+
"value": 24,
|
|
2685
|
+
"unit": "px"
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2688
|
+
"4xl": {
|
|
2689
|
+
"$type": "dimension",
|
|
2690
|
+
"$value": {
|
|
2691
|
+
"value": 32,
|
|
2692
|
+
"unit": "px"
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2622
2696
|
"motion": {
|
|
2623
2697
|
"easing": {
|
|
2624
2698
|
"standard": {
|
|
@@ -2706,6 +2780,48 @@
|
|
|
2706
2780
|
1
|
|
2707
2781
|
]
|
|
2708
2782
|
}
|
|
2783
|
+
},
|
|
2784
|
+
"pulse": {
|
|
2785
|
+
"$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. The easing applies to each half of a cycle.",
|
|
2786
|
+
"duration": {
|
|
2787
|
+
"$type": "duration",
|
|
2788
|
+
"$value": {
|
|
2789
|
+
"value": 2000,
|
|
2790
|
+
"unit": "ms"
|
|
2791
|
+
}
|
|
2792
|
+
},
|
|
2793
|
+
"easing": {
|
|
2794
|
+
"$type": "cubicBezier",
|
|
2795
|
+
"$value": [
|
|
2796
|
+
0.4,
|
|
2797
|
+
0,
|
|
2798
|
+
0.6,
|
|
2799
|
+
1
|
|
2800
|
+
]
|
|
2801
|
+
},
|
|
2802
|
+
"midOpacity": {
|
|
2803
|
+
"$type": "number",
|
|
2804
|
+
"$value": 0.5
|
|
2805
|
+
}
|
|
2806
|
+
},
|
|
2807
|
+
"spin": {
|
|
2808
|
+
"$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. One full turn per duration.",
|
|
2809
|
+
"duration": {
|
|
2810
|
+
"$type": "duration",
|
|
2811
|
+
"$value": {
|
|
2812
|
+
"value": 1000,
|
|
2813
|
+
"unit": "ms"
|
|
2814
|
+
}
|
|
2815
|
+
},
|
|
2816
|
+
"easing": {
|
|
2817
|
+
"$type": "cubicBezier",
|
|
2818
|
+
"$value": [
|
|
2819
|
+
0,
|
|
2820
|
+
0,
|
|
2821
|
+
1,
|
|
2822
|
+
1
|
|
2823
|
+
]
|
|
2824
|
+
}
|
|
2709
2825
|
}
|
|
2710
2826
|
},
|
|
2711
2827
|
"elevation": {
|
|
@@ -3059,6 +3175,45 @@
|
|
|
3059
3175
|
}
|
|
3060
3176
|
}
|
|
3061
3177
|
},
|
|
3178
|
+
"fontWeight": {
|
|
3179
|
+
"$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
|
+
"thin": {
|
|
3181
|
+
"$type": "fontWeight",
|
|
3182
|
+
"$value": 100
|
|
3183
|
+
},
|
|
3184
|
+
"extralight": {
|
|
3185
|
+
"$type": "fontWeight",
|
|
3186
|
+
"$value": 200
|
|
3187
|
+
},
|
|
3188
|
+
"light": {
|
|
3189
|
+
"$type": "fontWeight",
|
|
3190
|
+
"$value": 300
|
|
3191
|
+
},
|
|
3192
|
+
"normal": {
|
|
3193
|
+
"$type": "fontWeight",
|
|
3194
|
+
"$value": 400
|
|
3195
|
+
},
|
|
3196
|
+
"medium": {
|
|
3197
|
+
"$type": "fontWeight",
|
|
3198
|
+
"$value": 500
|
|
3199
|
+
},
|
|
3200
|
+
"semibold": {
|
|
3201
|
+
"$type": "fontWeight",
|
|
3202
|
+
"$value": 600
|
|
3203
|
+
},
|
|
3204
|
+
"bold": {
|
|
3205
|
+
"$type": "fontWeight",
|
|
3206
|
+
"$value": 700
|
|
3207
|
+
},
|
|
3208
|
+
"extrabold": {
|
|
3209
|
+
"$type": "fontWeight",
|
|
3210
|
+
"$value": 800
|
|
3211
|
+
},
|
|
3212
|
+
"black": {
|
|
3213
|
+
"$type": "fontWeight",
|
|
3214
|
+
"$value": 900
|
|
3215
|
+
}
|
|
3216
|
+
},
|
|
3062
3217
|
"text": {
|
|
3063
3218
|
"$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.",
|
|
3064
3219
|
"xs": {
|