@vegastack/design-tokens 0.7.46 → 0.7.49

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.
Files changed (2) hide show
  1. package/dist/base.css +38 -30
  2. package/package.json +1 -1
package/dist/base.css CHANGED
@@ -6,8 +6,9 @@
6
6
 
7
7
  FOC-1 one global :focus-visible cue; components restate nothing
8
8
  FOC-13 no focus rings anywhere, Tabs included: the cue is a background tint (MK 2026-09-25)
9
- FOC-14 a border never changes colour on focus or while active; invalid keeps its destructive
10
- border in every state (MK 2026-09-26)
9
+ FOC-14 a border never changes colour on focus or while active (MK 2026-09-26), EXCEPT text
10
+ entry, which darkens its border subtly with an ease (MK 2026-09-27); invalid keeps its
11
+ destructive border in every state
11
12
  FOC-7 the forced-colours fallback for text entry
12
13
  MOT-5 the reduced-motion reset (and the one sanctioned !important)
13
14
  INT-1 the hand cursor, on a wider selector list than shadcn's --pointer rule
@@ -62,20 +63,22 @@
62
63
  @apply font-sans;
63
64
  }
64
65
 
65
- /* FOC-1 + FOC-13 + FOC-14 — the SINGLE focus affordance in the system, and it is NOT a ring and
66
- NOT a border. No focus ring anywhere, Tabs included (MK 2026-09-25), and no border-colour change
67
- on focus or while a control is active (MK 2026-09-26): every border keeps its resting
68
- `border-border`/`border-input` colour in every state, and only the invalid state paints its
69
- destructive border. A keyboard user sees a subtle background TINT — `accent` at 50%, laid over
70
- whatever fill the control already has as a background IMAGE, so a primary button, a chip, a
71
- row, a menu item and a text field all show it without any component restating it.
72
- Text entry takes the same tint (FOC-3). A bare `input`/`textarea` wears it itself; a bordered
73
- field GROUP (`data-field-group`: InputGroup, NumberField, ChipInput, the combobox chips, the
74
- panel search row) wears it on the group, and the control inside it stands down so the two
75
- never stack. The one caret-only surface is a contenteditable document editor (TextEdit,
76
- `data-focus-cue="caret"`): no border, no fill, the caret is the cue. Components carry no focus
77
- ring or focus border of their own (FOC-6); `design-lint`'s `no-focus-ring-glow` and
78
- `no-focus-border` rules reject them, so one cannot creep back through a later upstream pull.
66
+ /* FOC-1 + FOC-13 + FOC-14 — the SINGLE focus affordance in the system, and it is NOT a ring.
67
+ No focus ring anywhere, Tabs included (MK 2026-09-25). A keyboard user sees a subtle background
68
+ TINT — `accent` at 50%, laid over whatever fill the control already has as a background IMAGE,
69
+ so a primary button, a chip, a row, a tab and a menu item all show it without any component
70
+ restating it. A border never changes colour on focus or while a control is active (MK
71
+ 2026-09-26) — with ONE exception, text entry (MK 2026-09-27).
72
+
73
+ Text entry (FOC-3) — text inputs, textarea, and the bordered field GROUPS that frame one
74
+ (InputGroup, NumberField, ChipInput, the combobox chips, the panel search row) — takes NO fill
75
+ at all: it is excluded below, and its focus cue is a subtle darker border (`border-ring/40`)
76
+ that eases in over 150ms, written on the component that draws the border (the group, not the
77
+ control inside it, which has no border and no fill). An invalid field keeps its destructive
78
+ border in every state; focus never replaces it. The one caret-only surface is a contenteditable
79
+ document editor (TextEdit, `data-focus-cue="caret"`): no border, no fill, the caret is the cue.
80
+ Components carry no focus ring of their own (FOC-6); `design-lint`'s `no-focus-ring-glow` and
81
+ `no-focus-border` rules reject a ring anywhere and a focus border outside the text-entry set.
79
82
 
80
83
  Programmatic focus targets (`tabindex="-1"`) take no tint: AppShell's skip-link `<main>`, Base UI
81
84
  popups, a step heading focus is moved to. They are not tab stops, and each is a whole region.
@@ -87,21 +90,25 @@
87
90
  outline: none;
88
91
  }
89
92
  :focus-visible:not(
93
+ textarea,
90
94
  [contenteditable="true"],
95
+ input:not(
96
+ [type="range"],
97
+ [type="radio"],
98
+ [type="checkbox"],
99
+ [type="button"],
100
+ [type="submit"],
101
+ [type="reset"],
102
+ [type="color"],
103
+ [type="file"]
104
+ ),
91
105
  [tabindex="-1"]:not([data-slot="combobox-chip"])
92
- ),
93
- [data-field-group]:has(input:focus, textarea:focus):not(
94
- [data-slot="combobox-content"] *
95
- ) {
106
+ ) {
96
107
  background-image: linear-gradient(
97
108
  color-mix(in oklch, var(--accent) 50%, transparent),
98
109
  color-mix(in oklch, var(--accent) 50%, transparent)
99
110
  );
100
111
  }
101
- [data-field-group] input:focus-visible,
102
- [data-field-group] textarea:focus-visible {
103
- background-image: none;
104
- }
105
112
 
106
113
  /* INT-1 — the hand cursor. shadcn's `--pointer` flag writes
107
114
  `button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer }`; ours is the same
@@ -140,9 +147,9 @@
140
147
  outline-offset: 1px;
141
148
  }
142
149
 
143
- /* Text-entry focus (FOC-3). Every text-entry control signals focus with the background TINT and
144
- strips the outline, because a raw text field cannot tell mouse from keyboard. Forced colours
145
- drops authored backgrounds outright, so the tint vanishes and `outline-style: none` stays in force — a
150
+ /* Text-entry focus (FOC-3). Every text-entry control signals focus with a subtle border change
151
+ and strips the outline, because a raw text field cannot tell mouse from keyboard. Forced colours
152
+ replaces `border-color` outright, so the cue vanishes and `outline-style: none` stays in force — a
146
153
  Windows High Contrast user had no caret location at all. This block is UNLAYERED on purpose:
147
154
  it beats the component's `outline-none` (a layered utility) regardless of specificity, so the
148
155
  fallback is written ONCE here, never per component.
@@ -163,9 +170,10 @@
163
170
  NumberField's stepper group, ChipInput, the Combobox input-group — clips with `overflow-hidden`
164
171
  so its addons follow the rounded corner. The inner input's own outline is offset outward INTO
165
172
  that clip, so it was drawn and then cut, which is how an addon field ended up with no visible
166
- focus at all under the forced palette. The group carries the outline (it is the element that
167
- wears the tint); the control inside it stands down, so the two never paint a
168
- double ring. */
173
+ focus at all under the forced palette. The group carries the outline (it is the element whose
174
+ border darkens on focus); the control inside it stands down, so the two never paint a double
175
+ ring. The stand-down is (0,2,1) and beats both `input:focus` (0,1,1) and the `:focus-visible`
176
+ outline above (0,1,0). */
169
177
  [data-field-group] input:focus,
170
178
  [data-field-group] textarea:focus {
171
179
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegastack/design-tokens",
3
- "version": "0.7.46",
3
+ "version": "0.7.49",
4
4
  "description": "VegaStack design tokens (DTCG → Tailwind v4 theme + TS)",
5
5
  "license": "MIT",
6
6
  "repository": {