@trading-game/design-intelligence-layer 0.8.5 → 0.8.7

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/src/styles.css CHANGED
@@ -12,7 +12,6 @@
12
12
  /* Fonts — Plus Jakarta Sans (all) */
13
13
  @import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");
14
14
 
15
- @custom-variant dark (&:is(.dark *));
16
15
 
17
16
  /* ── Tailwind theme bridge — maps CSS vars to utility classes ── */
18
17
  @theme inline {
@@ -70,6 +69,18 @@
70
69
  --radius-2xl: calc(var(--radius) + 8px);
71
70
  --radius-3xl: calc(var(--radius) + 12px);
72
71
  --radius-4xl: calc(var(--radius) + 16px);
72
+ /* ── Transitions — duration ── */
73
+ --duration-instant: var(--primitive-duration-instant);
74
+ --duration-fast: var(--primitive-duration-fast);
75
+ --duration-base: var(--primitive-duration-base);
76
+ --duration-slow: var(--primitive-duration-slow);
77
+ --duration-open: var(--primitive-duration-open);
78
+ --duration-blink: var(--primitive-duration-blink);
79
+ /* ── Transitions — easing ── */
80
+ --ease-standard: var(--primitive-ease-standard);
81
+ --ease-enter: var(--primitive-ease-enter);
82
+ --ease-exit: var(--primitive-ease-exit);
83
+ --ease-linear: var(--primitive-ease-linear);
73
84
  }
74
85
 
75
86
  /* ══════════════════════════════════════════════════════════════
@@ -157,6 +168,30 @@
157
168
  /* ── Overlay ── */
158
169
  --primitive-black-50: oklch(0 0 0 / 50%);
159
170
 
171
+ /* ── Transitions — Duration scale ── */
172
+ --primitive-duration-instant: 50ms;
173
+ /* snap: focus rings, hover colour tints */
174
+ --primitive-duration-fast: 100ms;
175
+ /* micro: buttons, badges, inputs, checkboxes */
176
+ --primitive-duration-base: 200ms;
177
+ /* surface: dropdowns, tooltips, popovers, accordions */
178
+ --primitive-duration-slow: 300ms;
179
+ /* overlay close: sheets, drawers, dialogs closing */
180
+ --primitive-duration-open: 500ms;
181
+ /* overlay open: sheets, drawers entering */
182
+ --primitive-duration-blink: 1000ms;
183
+ /* special: OTP caret blink animation */
184
+
185
+ /* ── Transitions — Easing scale ── */
186
+ --primitive-ease-standard: cubic-bezier(0.2, 0, 0, 1);
187
+ /* general UI — most interactive elements */
188
+ --primitive-ease-enter: cubic-bezier(0, 0, 0.2, 1);
189
+ /* decelerates — elements entering the screen */
190
+ --primitive-ease-exit: cubic-bezier(0.4, 0, 1, 1);
191
+ /* accelerates — elements leaving the screen */
192
+ --primitive-ease-linear: linear;
193
+ /* constant speed — sidebar width, progress bar */
194
+
160
195
  /* ── Layout — Standard responsive grid (gutter / margin) ── */
161
196
  --primitive-layout-gutter-none: 0px;
162
197
  --primitive-layout-gutter-sm: 16px;
@@ -200,6 +235,28 @@
200
235
  --semantic-layout-diagram-max-default: var(--primitive-layout-diagram-max-default);
201
236
  --semantic-layout-diagram-max-small: var(--primitive-layout-diagram-max-small);
202
237
  --semantic-layout-diagram-max-medium: var(--primitive-layout-diagram-max-medium);
238
+
239
+ /* ── Transitions — Semantic duration ── */
240
+ --transition-duration-interactive: var(--primitive-duration-fast);
241
+ /* buttons, inputs, badges, checkboxes, toggles, tabs hover */
242
+ --transition-duration-surface: var(--primitive-duration-base);
243
+ /* dropdowns, popovers, tooltips, accordions, navigation menus */
244
+ --transition-duration-overlay-close: var(--primitive-duration-slow);
245
+ /* dialogs, sheets, drawers, alert-dialogs closing */
246
+ --transition-duration-overlay-open: var(--primitive-duration-open);
247
+ /* sheets, drawers entering */
248
+ --transition-duration-structural: var(--primitive-duration-base);
249
+ /* sidebar collapse, progress fill, layout changes */
250
+
251
+ /* ── Transitions — Semantic easing ── */
252
+ --transition-ease-interactive: var(--primitive-ease-standard);
253
+ /* buttons, inputs — bidirectional state changes */
254
+ --transition-ease-enter: var(--primitive-ease-enter);
255
+ /* overlays / surfaces entering */
256
+ --transition-ease-exit: var(--primitive-ease-exit);
257
+ /* overlays / surfaces leaving */
258
+ --transition-ease-structural: var(--primitive-ease-linear);
259
+ /* sidebar, progress — constant-speed structural changes */
203
260
  }
204
261
 
205
262
  /* ══════════════════════════════════════════════════════════════
@@ -260,46 +317,6 @@
260
317
  --sidebar-ring: var(--ring);
261
318
  }
262
319
 
263
- /* ══════════════════════════════════════════════════════════════
264
- DARK THEME — mirrors light for now
265
- TODO: replace with proper dark values when new branding is ready
266
- ══════════════════════════════════════════════════════════════ */
267
- .dark {
268
- --background: var(--primitive-mono-50);
269
- --on-prominent: var(--primitive-mono-1000);
270
- --on-prominent-static-inverse: var(--primitive-mono-50);
271
- --primary: var(--primitive-blue-500);
272
- --primary-hover: oklch(0.403 0.251 267.5);
273
- --subtle: oklch(0.96 0 0);
274
- --on-subtle: oklch(0.52 0 0);
275
- --on-muted: oklch(0.38 0 0);
276
- --border-subtle: oklch(0.92 0 0);
277
- --border: var(--border-subtle);
278
- /* @deprecated alias — use --border-subtle or --border-prominent */
279
- --border-prominent: var(--primitive-mono-1000);
280
- /* #000000 */
281
- --secondary-hover: var(--primitive-mono-100);
282
- /* #EEEEEE */
283
- --ring: var(--primitive-blue-500);
284
- --overlay: var(--primitive-black-50);
285
- --semantic-win: var(--primitive-green-400);
286
- --semantic-loss: var(--primitive-red-500);
287
- --semantic-warning: var(--primitive-orange-500);
288
- --card: var(--primitive-mono-50);
289
- --card-foreground: oklch(0.07 0.012 165);
290
- --popover: var(--primitive-mono-50);
291
- --popover-foreground: oklch(0.07 0.012 165);
292
- --input: var(--border-subtle);
293
- --sidebar: var(--primitive-mono-50);
294
- --sidebar-foreground: oklch(0.07 0.012 165);
295
- --sidebar-primary: var(--primary);
296
- --sidebar-primary-foreground: var(--primitive-mono-50);
297
- --sidebar-accent: oklch(0.96 0 0);
298
- --sidebar-accent-foreground: oklch(0.12 0.015 160);
299
- --sidebar-border: oklch(0.92 0 0);
300
- --sidebar-ring: var(--ring);
301
- }
302
-
303
320
  @layer base {
304
321
  * {
305
322
  border-color: var(--color-border-subtle);