@kungal/ui-tokens 1.7.0 → 1.8.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,31 @@
1
1
  # @kungal/ui-tokens
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3e821c4: feat(tokens,vue): surface-elevation system — cards & inputs pop by fill+shadow, not borders
8
+
9
+ Move from a border-defined look to an elevation scale. The page background is now
10
+ a soft neutral (light `#f5f5f7`, dark near-black `#0a0a0a`) instead of pure
11
+ white/black, so raised surfaces read as raised:
12
+
13
+ - **Card** is a raised surface — `bg-content1` (`#fff` / `#18181b`) + `shadow-kun-sm`;
14
+ border is now OFF by default (`bordered` is opt-in). It no longer shares the
15
+ page background.
16
+ - **Inputs are borderless and share the card surface**: Input, Textarea, Select,
17
+ NumberInput, TagInput, PinInput, Autocomplete, DatePicker trigger and the
18
+ Pagination field use `bg-content1` + `shadow-kun-sm` (same fill as a card, lifted
19
+ by a small shadow). The error state is a danger **ring**, not a border.
20
+ - **Floating panels lose their border** and rely on shadow + the `content1`
21
+ surface: Dropdown, Select/Autocomplete lists, ContextMenu, Popover, Tooltip,
22
+ DatePicker calendar, Modal, Drawer.
23
+ - **Placeholder** now uses a theme-adaptive `::placeholder` colour (the browser
24
+ default grey didn't follow light/dark).
25
+
26
+ Visual change only; component APIs are unchanged except `KunCard`'s `bordered`
27
+ default (true→false) and `KunTagInput`'s `variant` default (bordered→flat).
28
+
3
29
  ## 1.7.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": "1.7.0",
3
+ "version": "1.8.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": [
package/src/base.css CHANGED
@@ -42,6 +42,14 @@
42
42
  color: oklch(var(--foreground));
43
43
  min-height: 100vh;
44
44
  }
45
+
46
+ /* Placeholder text — a muted neutral that flips with the theme (the browser
47
+ * default is a fixed grey that doesn't follow light/dark). `opacity: 1` since
48
+ * the colour already carries its own muting and UA sheets dim placeholders. */
49
+ ::placeholder {
50
+ color: oklch(var(--default-400));
51
+ opacity: 1;
52
+ }
45
53
  }
46
54
 
47
55
  @layer utilities {
@@ -117,7 +117,7 @@
117
117
 
118
118
  @layer base {
119
119
  :root {
120
- --background: 1 0 0;
120
+ --background: 0.9707 0.0027 286.35;
121
121
  --foreground: 0.2057 0.0132 233.66;
122
122
  --content1: 1 0 0;
123
123
  --content2: 0.9683 0.0014 286.37;
@@ -231,7 +231,7 @@
231
231
  }
232
232
 
233
233
  .kun-dark-mode {
234
- --background: 0 0 0;
234
+ --background: 0.1448 0 0;
235
235
  --foreground: 0.946 0.0018 247.84;
236
236
  --content1: 0.2102 0.006 285.87;
237
237
  --content2: 0.2747 0.006 286;