@kungal/ui-tokens 1.9.0 → 1.9.2

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,35 @@
1
1
  # @kungal/ui-tokens
2
2
 
3
+ ## 1.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - b673935: fix(tokens,vue): softer neutral hairline + bordered cards by default
8
+
9
+ - KunCard shows a faint hairline border by default again (it was borderless during
10
+ the filled-surface work) — with the lighter page and softer shadows, a hairline
11
+ delineates the card better than shadow alone.
12
+ - The shared neutral border token (`--color-kun-border` / the `border-kun` utility)
13
+ drops from `default-200` to `default-100` — a lighter hairline that delineates a
14
+ surface without framing it. Every consumer softens at once: inputs, textarea,
15
+ select & other controls, accordion, tabs, dividers, drawer rules, etc. Error
16
+ borders (danger) and focus rings are unaffected.
17
+
18
+ ## 1.9.1
19
+
20
+ ### Patch Changes
21
+
22
+ - 7a2c64d: fix(vue,tokens): bordered inputs, softer shadows, lighter page background
23
+
24
+ - Form controls (Input, Textarea, Select, NumberInput, Autocomplete, DatePicker,
25
+ TagInput flat, PinInput, Pagination jump field, Select's inline search) get a
26
+ card-like neutral border back on top of the filled surface — the borderless
27
+ fill was too hard to spot on a card. Error state recolours the border to danger
28
+ instead of a persistent ring. (= the shadcn "border + fill + subtle shadow" input.)
29
+ - Elevation scale softened ~30% across all three tiers (sm/md/lg) — lighter, tighter
30
+ shadows on cards, inputs, dropdowns, modals.
31
+ - Light page background nudged brighter (#f2f2f5 → #f4f4f7). Dark unchanged.
32
+
3
33
  ## 1.9.0
4
34
 
5
35
  ## 1.8.3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungal/ui-tokens",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "KunUI design tokens — framework-agnostic Tailwind v4 theme (semantic colors, radius, z-index, animations).",
5
5
  "type": "module",
6
6
  "keywords": [
package/src/base.css CHANGED
@@ -19,7 +19,7 @@
19
19
  ::file-selector-button {
20
20
  /* Global default border color = the canonical neutral border token, so a
21
21
  * bare `border` (no explicit color) matches `border-kun` everywhere. */
22
- border-color: var(--color-kun-border, var(--color-default-200, currentColor));
22
+ border-color: var(--color-kun-border, var(--color-default-100, currentColor));
23
23
  color: var(--color-foreground);
24
24
  }
25
25
 
@@ -117,7 +117,7 @@
117
117
 
118
118
  @layer base {
119
119
  :root {
120
- --background: 0.962 0.004 286.32;
120
+ --background: 0.968 0.004 286.33;
121
121
  --foreground: 0.2057 0.0132 233.66;
122
122
  --content1: 1 0 0;
123
123
  --content2: 0.9683 0.0014 286.37;
package/src/tokens.css CHANGED
@@ -106,11 +106,11 @@
106
106
  * sm → tooltips / small hints
107
107
  * md → popovers, dropdowns, menus, select & date lists, toasts
108
108
  * lg → modals, drawers (the highest surfaces) */
109
- --shadow-kun-sm: 0 2px 8px -2px rgb(0 0 0 / 0.12);
109
+ --shadow-kun-sm: 0 1px 5px -2px rgb(0 0 0 / 0.08);
110
110
  --shadow-kun-md:
111
- 0 4px 12px -4px rgb(0 0 0 / 0.1), 0 8px 24px -6px rgb(0 0 0 / 0.14);
111
+ 0 3px 10px -4px rgb(0 0 0 / 0.07), 0 6px 18px -6px rgb(0 0 0 / 0.1);
112
112
  --shadow-kun-lg:
113
- 0 8px 24px -8px rgb(0 0 0 / 0.14), 0 16px 48px -12px rgb(0 0 0 / 0.22);
113
+ 0 6px 18px -8px rgb(0 0 0 / 0.11), 0 12px 36px -12px rgb(0 0 0 / 0.16);
114
114
 
115
115
  /* Animations */
116
116
  --animate-shake: shake 1s ease-in-out;
@@ -303,8 +303,9 @@
303
303
 
304
304
  /* Canonical neutral border — the SINGLE source of truth for every structural
305
305
  * hairline (inputs, cards, dividers, popovers, tabs, tables…). Defaults to the
306
- * `default-200` step, which already flips light↔dark (light L90% zinc-200,
307
- * dark L26% zinc-700), so one utility stays consistent across modes AND
306
+ * `default-100` step a very light hairline that just delineates a surface
307
+ * without framing it — which already flips light↔dark, so one utility stays
308
+ * consistent across modes AND
308
309
  * components — no more per-component `border-default/20` + `dark:border-…`
309
310
  * juggling that only coincidentally matched. Retheme every border at once by
310
311
  * overriding `--color-kun-border` (set it in `.kun-dark-mode` too if you give
@@ -316,10 +317,10 @@
316
317
  * / `focus:border-*` still win (apply `border-kun` only in the non-error branch
317
318
  * so two plain border-color utilities never fight over source order). */
318
319
  :root {
319
- --color-kun-border: oklch(var(--default-200));
320
+ --color-kun-border: oklch(var(--default-100));
320
321
  }
321
322
  @utility border-kun {
322
- border-color: var(--color-kun-border, oklch(var(--default-200)));
323
+ border-color: var(--color-kun-border, oklch(var(--default-100)));
323
324
  }
324
325
 
325
326
  /* Duration utilities bound to the motion scale, so component transitions route