@luxfi/ui 7.4.2 → 7.4.4

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/tokens.css CHANGED
@@ -306,9 +306,77 @@
306
306
  --color-gray-700: var(--lux-n-700);
307
307
  --color-gray-800: var(--lux-n-800);
308
308
  --color-gray-900: var(--lux-n-900);
309
- /* Legacy hue names some call sites still spell. Achromatic now. */
310
- --color-orange-400: var(--lux-n-500);
311
- --color-orange-500: var(--lux-n-600);
309
+ --color-white: var(--lux-n-0);
310
+ --color-black: var(--lux-n-1000);
311
+ /* The two state ramps — the only rungs in this file that carry a hue.
312
+ Monotone, like the warm ramps, and likewise not flipped in `.dark`. */
313
+ --color-green-50: #F0FFF4;
314
+ --color-green-100: #C6F6D5;
315
+ --color-green-200: #9AE6B4;
316
+ --color-green-500: var(--lux-state-success);
317
+ --color-green-800: #22543D;
318
+ --color-red-50: #FFF5F5;
319
+ --color-red-100: #FED7D7;
320
+ --color-red-200: #FEB2B2;
321
+ --color-red-500: var(--lux-state-error);
322
+ --color-red-600: #C53030;
323
+ --color-red-800: #822727;
324
+ /* ------------------------------------------------------------
325
+ THE WARM RAMPS, DEFANGED.
326
+ Tailwind v4 compiles `bg-orange-100` to `background-color:
327
+ var(--color-orange-100)`, so redefining the rung here retints every
328
+ warm utility on every surface that imports this file — no component
329
+ edit, no rebuild. The ramps stay MONOTONE (low rung = light, high rung
330
+ = dark) in both modes, exactly like Tailwind's, so an author's
331
+ `bg-orange-50 dark:bg-yellow-900` still reads pale-on-light and
332
+ dark-on-dark. They are therefore NOT overridden in `.dark` below.
333
+ A rung is a rung; a warning is `--color-status-warn`.
334
+ ------------------------------------------------------------ */
335
+ --color-orange-50: var(--lux-n-50);
336
+ --color-orange-100: var(--lux-n-100);
337
+ --color-orange-200: var(--lux-n-200);
338
+ --color-orange-300: var(--lux-n-300);
339
+ --color-orange-400: var(--lux-n-400);
340
+ --color-orange-500: var(--lux-n-500);
341
+ --color-orange-600: var(--lux-n-600);
342
+ --color-orange-700: var(--lux-n-700);
343
+ --color-orange-800: var(--lux-n-800);
344
+ --color-orange-900: var(--lux-n-900);
345
+ --color-orange-950: var(--lux-n-950);
346
+ --color-amber-50: var(--color-orange-50);
347
+ --color-amber-100: var(--color-orange-100);
348
+ --color-amber-200: var(--color-orange-200);
349
+ --color-amber-300: var(--color-orange-300);
350
+ --color-amber-400: var(--color-orange-400);
351
+ --color-amber-500: var(--color-orange-500);
352
+ --color-amber-600: var(--color-orange-600);
353
+ --color-amber-700: var(--color-orange-700);
354
+ --color-amber-800: var(--color-orange-800);
355
+ --color-amber-900: var(--color-orange-900);
356
+ --color-amber-950: var(--color-orange-950);
357
+ --color-yellow-50: var(--color-orange-50);
358
+ --color-yellow-100: var(--color-orange-100);
359
+ --color-yellow-200: var(--color-orange-200);
360
+ --color-yellow-300: var(--color-orange-300);
361
+ --color-yellow-400: var(--color-orange-400);
362
+ --color-yellow-500: var(--color-orange-500);
363
+ --color-yellow-600: var(--color-orange-600);
364
+ --color-yellow-700: var(--color-orange-700);
365
+ --color-yellow-800: var(--color-orange-800);
366
+ --color-yellow-900: var(--color-orange-900);
367
+ --color-yellow-950: var(--color-orange-950);
368
+ /* Tailwind's warm neutral. Lux has exactly one neutral, and it is not warm. */
369
+ --color-stone-50: var(--lux-n-50);
370
+ --color-stone-100: var(--lux-n-100);
371
+ --color-stone-200: var(--lux-n-200);
372
+ --color-stone-300: var(--lux-n-300);
373
+ --color-stone-400: var(--lux-n-400);
374
+ --color-stone-500: var(--lux-n-500);
375
+ --color-stone-600: var(--lux-n-600);
376
+ --color-stone-700: var(--lux-n-700);
377
+ --color-stone-800: var(--lux-n-800);
378
+ --color-stone-900: var(--lux-n-900);
379
+ --color-stone-950: var(--lux-n-950);
312
380
  --color-blackAlpha-50: var(--lux-ink-04);
313
381
  --color-blackAlpha-100: var(--lux-ink-06);
314
382
  --color-blackAlpha-200: var(--lux-ink-08);
@@ -615,9 +683,10 @@
615
683
  /* --- Selection --- */
616
684
  --color-selection-bg: var(--lux-n-700);
617
685
 
618
- /* --- Raw palette --- */
619
- --color-orange-400: var(--lux-n-400);
620
- --color-orange-500: var(--lux-n-300);
686
+ /* The warm ramps are NOT redefined here on purpose — see the light block.
687
+ They are monotone in both modes so `dark:bg-yellow-900` still means
688
+ "dark". A call site that needs ink that FLIPS with the mode wants
689
+ --color-status-warn, which is a semantic token, not a palette rung. */
621
690
 
622
691
  /* ------------------------------------------------------------
623
692
  SHADCN / TAILWIND ALIASES (dark)