tyrell-components 1.0.0-TC22 → 1.0.0-TC24

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/dist/tyrell.css CHANGED
@@ -352,50 +352,58 @@ COMPONENT TOKENS
352
352
  --ty-input-warning-border: var(--ty-color-warning);
353
353
 
354
354
  /* =================================================================
355
- SOLID BUTTON FILLS — saturated brand backgrounds for appearance="solid"
356
- Each flavor defines:
357
- --ty-solid-{flavor} base saturated fill
358
- --ty-solid-{flavor}-strong stronger fill (for solid+ tone)
359
- --ty-solid-{flavor}-soft softer fill (for solid- tone)
360
- --ty-solid-{flavor}-fg paired text color (default white)
361
- Strong/soft default to var(--ty-color-{flavor}-strong/-soft) so they
362
- inherit from the existing color hierarchy. Override per flavor if needed.
355
+ SOLID BUTTON FILLS — plain default values (the contract). The smart
356
+ per-state derivation (hover/active/tone via OKLCH) lives in the theme
357
+ engines (tyrell-brand.css / tyrell-simple.css), not here. hover/active
358
+ alias to -strong as a simple default; a theme overrides them.
363
359
  ================================================================= */
364
360
 
365
361
  /* Primary */
366
362
  --ty-solid-primary: #4076b9;
367
363
  --ty-solid-primary-strong: var(--ty-color-primary-bold);
368
364
  --ty-solid-primary-soft: #7ea7d9;
365
+ --ty-solid-primary-hover: var(--ty-solid-primary-strong);
366
+ --ty-solid-primary-active: var(--ty-solid-primary-strong);
369
367
  --ty-solid-primary-fg: white;
370
368
 
371
369
  /* Secondary */
372
370
  --ty-solid-secondary: #7e67b4;
373
371
  --ty-solid-secondary-strong: #7d58d1;
374
372
  --ty-solid-secondary-soft: #9f8ec5;
373
+ --ty-solid-secondary-hover: var(--ty-solid-secondary-strong);
374
+ --ty-solid-secondary-active: var(--ty-solid-secondary-strong);
375
375
  --ty-solid-secondary-fg: white;
376
376
 
377
377
  /* Success */
378
378
  --ty-solid-success: #3bb68d;
379
379
  --ty-solid-success-strong: #27956e;
380
380
  --ty-solid-success-soft: #69b99e;
381
+ --ty-solid-success-hover: var(--ty-solid-success-strong);
382
+ --ty-solid-success-active: var(--ty-solid-success-strong);
381
383
  --ty-solid-success-fg: white;
382
384
 
383
385
  /* Danger */
384
386
  --ty-solid-danger: #df5b5b;
385
387
  --ty-solid-danger-strong: #cc3e3e;
386
388
  --ty-solid-danger-soft: #d57a7a;
389
+ --ty-solid-danger-hover: var(--ty-solid-danger-strong);
390
+ --ty-solid-danger-active: var(--ty-solid-danger-strong);
387
391
  --ty-solid-danger-fg: white;
388
392
 
389
393
  /* Warning */
390
394
  --ty-solid-warning: #e1a644;
391
395
  --ty-solid-warning-strong: #f59e0b;
392
396
  --ty-solid-warning-soft: #fbc56d;
397
+ --ty-solid-warning-hover: var(--ty-solid-warning-strong);
398
+ --ty-solid-warning-active: var(--ty-solid-warning-strong);
393
399
  --ty-solid-warning-fg: white;
394
400
 
395
401
  /* Neutral */
396
402
  --ty-solid-neutral: #414141;
397
403
  --ty-solid-neutral-strong: #000000;
398
404
  --ty-solid-neutral-soft: #6e6e6e;
405
+ --ty-solid-neutral-hover: var(--ty-solid-neutral-strong);
406
+ --ty-solid-neutral-active: var(--ty-solid-neutral-strong);
399
407
  --ty-solid-neutral-fg: white;
400
408
 
401
409
  /* =================================================================
@@ -695,42 +703,48 @@ Emphasis logic inverts: lighter = more emphasis
695
703
  0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
696
704
  --ty-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
697
705
 
698
- /* Solid button fills for dark mode — strong/soft/fg chain through automatically.
699
- Note: --ty-color-{flavor}-strong is light-toned in dark mode (emphasis
700
- inverts), so solid+ buttons will have a light bg with white text — low
701
- contrast for some flavors. Override per flavor via --ty-solid-{flavor}-fg
702
- if a specific brand needs darker text. */
706
+ /* Solid button fills plain dark defaults. hover/active alias -strong;
707
+ theme engines override with smart per-state derivation. */
703
708
  --ty-solid-primary: #3e536c;
704
709
  --ty-solid-primary-strong: #426084;
705
710
  --ty-solid-primary-soft: #343f4c;
711
+ --ty-solid-primary-hover: var(--ty-solid-primary-strong);
712
+ --ty-solid-primary-active: var(--ty-solid-primary-strong);
706
713
  --ty-solid-primary-fg: white;
707
714
 
708
715
  --ty-solid-secondary: #7e67b4;
709
716
  --ty-solid-secondary-strong: #8269bc;
710
717
  --ty-solid-secondary-soft: #52466a;
718
+ --ty-solid-secondary-hover: var(--ty-solid-secondary-strong);
719
+ --ty-solid-secondary-active: var(--ty-solid-secondary-strong);
711
720
  --ty-solid-secondary-fg: white;
712
721
 
713
- /* Success */
714
722
  --ty-solid-success: #3bb68d;
715
723
  --ty-solid-success-strong: #459679;
716
724
  --ty-solid-success-soft: #285748;
725
+ --ty-solid-success-hover: var(--ty-solid-success-strong);
726
+ --ty-solid-success-active: var(--ty-solid-success-strong);
717
727
  --ty-solid-success-fg: white;
718
728
 
719
- /* Danger */
720
729
  --ty-solid-danger: #df5b5b;
721
730
  --ty-solid-danger-strong: #cc3e3e;
722
731
  --ty-solid-danger-soft: #875656;
732
+ --ty-solid-danger-hover: var(--ty-solid-danger-strong);
733
+ --ty-solid-danger-active: var(--ty-solid-danger-strong);
723
734
  --ty-solid-danger-fg: white;
724
735
 
725
- /* Warning */
726
736
  --ty-solid-warning: #e1a644;
727
737
  --ty-solid-warning-strong: #f59e0b;
728
738
  --ty-solid-warning-soft: #8b6334;
739
+ --ty-solid-warning-hover: var(--ty-solid-warning-strong);
740
+ --ty-solid-warning-active: var(--ty-solid-warning-strong);
729
741
  --ty-solid-warning-fg: white;
730
742
 
731
743
  --ty-solid-neutral: #414141;
732
744
  --ty-solid-neutral-strong: #4c4c4c;
733
745
  --ty-solid-neutral-soft: #2a2a2a;
746
+ --ty-solid-neutral-hover: var(--ty-solid-neutral-strong);
747
+ --ty-solid-neutral-active: var(--ty-solid-neutral-strong);
734
748
  --ty-solid-neutral-fg: white;
735
749
 
736
750
  /* Input component tokens - dark mode */