anentrypoint-design 1.0.20 → 1.0.21

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.
@@ -92,6 +92,12 @@
92
92
  thebird warm-paper preset (5.25:1) while staying visually a clear
93
93
  warm red. */
94
94
  --warn: #C41C0C;
95
+ /* Paired foreground for --warn used as a FILL (a danger button background),
96
+ not as text-on-paper (--warn's own tuning above). --paper clears 5.97:1
97
+ on this --warn -- --warn was tuned dark specifically for the text-on-paper
98
+ direction, so re-using it for the opposite direction (paper text on this
99
+ as a fill) needs its own token, not a re-derivation of --warn itself. */
100
+ --warn-fg: var(--paper);
95
101
  /* Syntax-token aliases: light values pass 4.5:1 on paper; the dark blocks
96
102
  restore the bright dark-tuned originals. Components reference ONLY these. */
97
103
  --code-string: var(--green);
@@ -543,6 +549,10 @@ select:focus-visible {
543
549
  /* warn/sky dark-tuned pairs (mirror flame/amber): the :root paper values
544
550
  (#E0241A / #3A6EFF) are too dark on ink; these clear AA 4.5:1 on --ink. */
545
551
  --warn: #FF5A52;
552
+ /* Paired foreground for --warn-as-fill (see :root's --warn-fg comment) --
553
+ dark theme's --warn is the lighter tuned red, so its fill needs the dark
554
+ --ink text, the opposite pairing from :root. */
555
+ --warn-fg: var(--ink);
546
556
  --sky: #6E9BFF;
547
557
  /* Category/heritage dark-tuned pairs (same convention as flame/amber/warn/
548
558
  sky above): the :root values are the PAPER tones and go dark-on-dark here.
@@ -631,6 +641,7 @@ select:focus-visible {
631
641
  --flame: #FF5A1F;
632
642
  --amber: #D9A93A;
633
643
  --warn: #FF5A52;
644
+ --warn-fg: var(--ink);
634
645
  --sky: #6E9BFF;
635
646
  /* Mirrors the [data-theme="ink"] category retune above token-for-token —
636
647
  see that block for the measured before/after ratios. */
@@ -761,6 +772,7 @@ select:focus-visible {
761
772
  --flame: #ff7b72;
762
773
  --amber: #d29922;
763
774
  --warn: #ff7b72;
775
+ --warn-fg: #0d1117;
764
776
  --sky: #58a6ff;
765
777
  --mascot-deep: #ff7b72;
766
778
  --purple-2: #d2a8ff;
package/dist/247420.css CHANGED
@@ -94,6 +94,12 @@
94
94
  thebird warm-paper preset (5.25:1) while staying visually a clear
95
95
  warm red. */
96
96
  --warn: #C41C0C;
97
+ /* Paired foreground for --warn used as a FILL (a danger button background),
98
+ not as text-on-paper (--warn's own tuning above). --paper clears 5.97:1
99
+ on this --warn -- --warn was tuned dark specifically for the text-on-paper
100
+ direction, so re-using it for the opposite direction (paper text on this
101
+ as a fill) needs its own token, not a re-derivation of --warn itself. */
102
+ --warn-fg: var(--paper);
97
103
  /* Syntax-token aliases: light values pass 4.5:1 on paper; the dark blocks
98
104
  restore the bright dark-tuned originals. Components reference ONLY these. */
99
105
  --code-string: var(--green);
@@ -545,6 +551,10 @@
545
551
  /* warn/sky dark-tuned pairs (mirror flame/amber): the :root paper values
546
552
  (#E0241A / #3A6EFF) are too dark on ink; these clear AA 4.5:1 on --ink. */
547
553
  --warn: #FF5A52;
554
+ /* Paired foreground for --warn-as-fill (see :root's --warn-fg comment) --
555
+ dark theme's --warn is the lighter tuned red, so its fill needs the dark
556
+ --ink text, the opposite pairing from :root. */
557
+ --warn-fg: var(--ink);
548
558
  --sky: #6E9BFF;
549
559
  /* Category/heritage dark-tuned pairs (same convention as flame/amber/warn/
550
560
  sky above): the :root values are the PAPER tones and go dark-on-dark here.
@@ -633,6 +643,7 @@
633
643
  --flame: #FF5A1F;
634
644
  --amber: #D9A93A;
635
645
  --warn: #FF5A52;
646
+ --warn-fg: var(--ink);
636
647
  --sky: #6E9BFF;
637
648
  /* Mirrors the [data-theme="ink"] category retune above token-for-token —
638
649
  see that block for the measured before/after ratios. */
@@ -763,6 +774,7 @@
763
774
  --flame: #ff7b72;
764
775
  --amber: #d29922;
765
776
  --warn: #ff7b72;
777
+ --warn-fg: #0d1117;
766
778
  --sky: #58a6ff;
767
779
  --mascot-deep: #ff7b72;
768
780
  --purple-2: #d2a8ff;
@@ -1757,10 +1769,13 @@
1757
1769
  .ds-247420 .ds-icon-btn-ghost:hover { background: var(--fg); color: var(--bg); }
1758
1770
  .ds-247420 .ds-icon-btn-primary { background: var(--accent); color: var(--accent-fg); }
1759
1771
  .ds-247420 .ds-icon-btn-primary:hover { background: var(--fg); color: var(--accent-ink); }
1760
- /* --ink, not --on-color: --on-color is a fixed #fff, which measures 3.07:1 on
1761
- --warn (#FF5A52) -- below the 4.5:1 AA floor. --ink measures 6.27:1. Same
1762
- fix as .btn-primary.danger in app-shell/files.css. */
1763
- .ds-247420 .ds-icon-btn-danger { background: var(--warn); color: var(--ink); }
1772
+ /* --warn-fg (not a bare --ink/--on-color literal): --ink only clears AA
1773
+ against dark theme's lighter --warn (#FF5A52, 6.27:1); light theme's
1774
+ --warn is a darker red (#C41C0C) where --ink measures just 2.92:1, well
1775
+ under the 4.5:1 floor. --warn-fg is the theme-paired token (light: paper
1776
+ text 5.97:1, dark: ink text 6.27:1) -- same fix as .btn-primary.danger in
1777
+ app-shell/files.css, which had this exact light-theme regression live. */
1778
+ .ds-247420 .ds-icon-btn-danger { background: var(--warn); color: var(--warn-fg); }
1764
1779
  .ds-247420 .ds-icon-btn-danger:hover { filter: brightness(0.92); }
1765
1780
  .ds-247420 .ds-icon-btn:active { transform: translateY(1px); }
1766
1781
  .ds-247420 .ds-icon-btn:disabled, .ds-247420 .ds-icon-btn.is-disabled {
@@ -1966,7 +1981,7 @@
1966
1981
  .ds-247420 .ds-tooltip[data-placement^="bottom"]::after { top: -3px; left: 50%; margin-left: -3px; }
1967
1982
  .ds-247420 .ds-tooltip[data-placement^="left"]::after { right: -3px; top: 50%; margin-top: -3px; }
1968
1983
  .ds-247420 .ds-tooltip[data-placement^="right"]::after { left: -3px; top: 50%; margin-top: -3px; }
1969
- .ds-247420 .ds-tooltip.kind-danger { background: var(--warn); color: var(--ink); }
1984
+ .ds-247420 .ds-tooltip.kind-danger { background: var(--warn); color: var(--warn-fg); }
1970
1985
  .ds-247420 .ds-tooltip.kind-danger::after { background: var(--warn); }
1971
1986
  @media (prefers-reduced-motion: reduce) {
1972
1987
  .ds-247420 .ds-tooltip { transition: none; }
@@ -3943,8 +3958,8 @@
3943
3958
  .ds-247420 .btn-primary.danger {
3944
3959
  background: var(--warn);
3945
3960
  border-color: var(--warn);
3946
- color: var(--ink);
3947
- box-shadow: inset 0 0 0 var(--bw-hair, 1px) color-mix(in oklab, var(--ink) 25%, transparent);
3961
+ color: var(--warn-fg);
3962
+ box-shadow: inset 0 0 0 var(--bw-hair, 1px) color-mix(in oklab, var(--warn-fg) 25%, transparent);
3948
3963
  font-weight: 700;
3949
3964
  letter-spacing: 0.01em;
3950
3965
  }