@plexui/styles 0.17.14 → 0.17.16

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.
@@ -84,6 +84,28 @@
84
84
  border-radius: var(--slider-track-radius, var(--radius-2xs));
85
85
  background: var(--slider-range-color);
86
86
  transition: right var(--slider-duration) var(--cubic-move);
87
+ }/* `ticks`: a dot at each step under the track, where the knob's centre stands on that step (the knob runs from half its
88
+ width in from either end), so the knob, drawn after the track, covers its own. On an iOS phone iOS 27.2's ticks
89
+ (touch.css: 3px, 8.5px under the track's middle, the opaque separator). Until the slider knows its width, and where
90
+ the steps stand closer than 9px, none shows (Slider.tsx). */.Ticks {
91
+ position: absolute;
92
+ inset: 0;
93
+ pointer-events: none;
94
+ }
95
+
96
+ .Ticks:not([data-shown]) {
97
+ visibility: hidden;
98
+ }.Tick {
99
+ position: absolute;
100
+ top: calc(50% + var(--slider-tick-offset, 8.5px) - var(--slider-tick-size, 3px) / 2);
101
+ inset-inline-start: calc(
102
+ var(--slider-thumb-width, 14px) / 2 + var(--slider-tick-at) * (100% - var(--slider-thumb-width, 14px)) -
103
+ var(--slider-tick-size, 3px) / 2
104
+ );
105
+ width: var(--slider-tick-size, 3px);
106
+ height: var(--slider-tick-size, 3px);
107
+ border-radius: 50%;
108
+ background: var(--slider-tick-color);
87
109
  }.Thumb {
88
110
  position: relative;
89
111
  display: block;
@@ -227,15 +249,15 @@
227
249
 
228
250
  .SliderAdorned .Slider {
229
251
  grid-column: 2;
230
- grid-row: 1;
252
+ grid-row: var(--slider-control-row, 1);
231
253
  }
232
254
 
233
255
  .SliderAdorned .MarksContainer {
234
256
  grid-column: 2;
235
- grid-row: 2;
257
+ grid-row: var(--slider-marks-row, 2);
236
258
  }.Adornment {
237
259
  display: inline-flex;
238
- grid-row: 1;
260
+ grid-row: var(--slider-control-row, 1);
239
261
  align-items: center;
240
262
  justify-content: center;
241
263
  /* The slider holds its padding under the track: the symbols stand level with the track, not the box */
@@ -263,21 +285,30 @@
263
285
 
264
286
  .SliderAdorned[data-disabled] .Adornment {
265
287
  color: var(--slider-adornment-color-disabled, var(--color-text-disabled));
266
- }.MarksContainer {
288
+ }/* The marks stand under the track, or over it where the layer says so (touch.css: an iOS phone writes them as
289
+ Settings' Balance writes L, its value and R; android.css: an Android phone in 13/16 secondary over each value;
290
+ --slider-marks-order and the rows of an adorned slider) */.SliderWrap[data-orientation="horizontal"] > .SliderContainer {
291
+ display: flex;
292
+ flex-direction: column;
293
+ }.MarksContainer {
267
294
  position: relative;
295
+ order: var(--slider-marks-order, 0);
268
296
  width: 100%;
269
- margin-top: 4px;
297
+ margin-top: var(--slider-marks-margin-top, 4px);
298
+ margin-bottom: var(--slider-marks-margin-bottom, 0px);
270
299
  /* The marks' size, so the line held for them below is one of their lines */
271
- font-size: 12px;
300
+ font-size: var(--slider-mark-font-size, 12px);
301
+ line-height: var(--slider-mark-line-height, normal);
272
302
  }/* Until the slider knows its width (Slider sets data-measured) the marks hold one line and stay hidden: the server
273
303
  cannot place them, and the page does not move when they appear. */.MarksContainer:not([data-measured]) {
274
304
  min-height: 1lh;
275
305
  visibility: hidden;
276
306
  }.Mark {
277
307
  position: absolute;
278
- color: var(--color-text);
279
- font-size: 12px;
308
+ color: var(--slider-mark-color, var(--color-text));
309
+ font-size: var(--slider-mark-font-size, 12px);
280
310
  font-weight: normal;
311
+ line-height: var(--slider-mark-line-height, normal);
281
312
  }.MarkLabel {
282
313
  display: inline-block;
283
314
  overflow-wrap: break-word;
@@ -342,7 +373,10 @@
342
373
  container-type: inline-size;
343
374
  }
344
375
 
345
- .Slider[data-orientation="horizontal"] {
376
+ /* With ticks the knob keeps the primitive's travel, as iOS 27.2's stepped slider stands its knob on evenly spaced
377
+ ticks from half its width in from either end (the simulator: 53.8, 127.1, 200.3, 273.6, 346.8 on a track from 36
378
+ to 365.8); the fill's end stays under the knob. */
379
+ .Slider[data-orientation="horizontal"]:not([data-ticks]) {
346
380
  --slider-thumb-travel: clamped;
347
381
  }
348
382
 
@@ -350,7 +384,7 @@
350
384
  Sliders 7:53847, State=Pressed); without touch.css it stays as it is. The slider is pressed from the first
351
385
  touch, wherever on the track it lands; of a range, the nearest knob, which the press focuses. A vertical
352
386
  slider is a web layout with no iOS knob, so it keeps its own. */
353
- .Slider[data-orientation="horizontal"] .Thumb {
387
+ .Slider[data-orientation="horizontal"]:not([data-ticks]) .Thumb {
354
388
  --slider-thumb-half: calc(var(--slider-thumb-width, 14px) / 2);
355
389
  --slider-thumb-at: calc(var(--slider-thumb-percent, 0.5) * 100cqw);
356
390
 
@@ -358,6 +392,9 @@
358
392
  clamp(var(--slider-thumb-half), var(--slider-thumb-at), 100cqw - var(--slider-thumb-half)) -
359
393
  var(--slider-thumb-at) - var(--slider-thumb-half) * (1 - 2 * var(--slider-thumb-percent, 0.5))
360
394
  );
395
+ }
396
+
397
+ .Slider[data-orientation="horizontal"] .Thumb {
361
398
  transition:
362
399
  scale 200ms var(--cubic-enter),
363
400
  background-color 200ms var(--cubic-enter),
@@ -436,7 +473,10 @@
436
473
  container-type: inline-size;
437
474
  }
438
475
 
439
- :where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"] {
476
+ /* With ticks the knob keeps the primitive's travel, as iOS 27.2's stepped slider stands its knob on evenly spaced
477
+ ticks from half its width in from either end (the simulator: 53.8, 127.1, 200.3, 273.6, 346.8 on a track from 36
478
+ to 365.8); the fill's end stays under the knob. */
479
+ :where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"]:not([data-ticks]) {
440
480
  --slider-thumb-travel: clamped;
441
481
  }
442
482
 
@@ -444,7 +484,7 @@
444
484
  Sliders 7:53847, State=Pressed); without touch.css it stays as it is. The slider is pressed from the first
445
485
  touch, wherever on the track it lands; of a range, the nearest knob, which the press focuses. A vertical
446
486
  slider is a web layout with no iOS knob, so it keeps its own. */
447
- :where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"] .Thumb {
487
+ :where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"]:not([data-ticks]) .Thumb {
448
488
  --slider-thumb-half: calc(var(--slider-thumb-width, 14px) / 2);
449
489
  --slider-thumb-at: calc(var(--slider-thumb-percent, 0.5) * 100cqw);
450
490
 
@@ -452,6 +492,9 @@
452
492
  clamp(var(--slider-thumb-half), var(--slider-thumb-at), 100cqw - var(--slider-thumb-half)) -
453
493
  var(--slider-thumb-at) - var(--slider-thumb-half) * (1 - 2 * var(--slider-thumb-percent, 0.5))
454
494
  );
495
+ }
496
+
497
+ :where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"] .Thumb {
455
498
  transition:
456
499
  scale 200ms var(--cubic-enter),
457
500
  background-color 200ms var(--cubic-enter),
@@ -479,16 +522,25 @@
479
522
 
480
523
  :where([data-plex-layout="phone"]) .Slider[data-disabled] .Thumb {
481
524
  box-shadow: var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color));
482
- }/* The Plex Android slider (its sizes and colors: android.css): the knob stays as it is while it is dragged */@media (max-width: 767px) {
525
+ }/* The Plex Android slider (its sizes and colors: android.css): the knob stays as it is while it is dragged. Android's
526
+ steps are its stepped picker (@plexui/react-native), not iOS's dots: the web draws none. */@media (max-width: 767px) {
483
527
  [data-platform="android"] .Slider {
484
528
  --mobile-knob-lens-scale: none;
485
529
  --mobile-knob-lens-background: var(--slider-thumb-background);
486
530
  --mobile-knob-lens-shadow: none;
487
531
  }
532
+
533
+ [data-platform="android"] .Ticks {
534
+ display: none;
535
+ }
488
536
  }
489
537
  :where([data-plex-layout="phone"]) [data-platform="android"] .Slider {
490
538
  --mobile-knob-lens-scale: none;
491
539
  --mobile-knob-lens-background: var(--slider-thumb-background);
492
540
  --mobile-knob-lens-shadow: none;
493
541
  }
542
+
543
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Ticks {
544
+ display: none;
545
+ }
494
546
  }
@@ -180,7 +180,7 @@
180
180
  clip-path: path("M0 0C1.71 0 3.42 -.01 5.14 .01C6.78 .03 8.61 .06 10.21 .66C11.93 1.31 13.07 2.44 14.22 3.78C15.04 4.74 16.67 6.8 17.46 7.79C18.1 8.6 19.37 10.21 20.06 10.98C20.93 11.96 22.01 13 23.5 13C24.99 13 26.07 11.96 26.94 10.98C27.63 10.21 28.9 8.6 29.54 7.79C30.33 6.8 31.96 4.74 32.78 3.78C33.93 2.44 35.07 1.31 36.79 .66C38.39 .06 40.22 .03 41.86 .01C43.58 -.01 45.29 0 47 0Z");
181
181
  }/* iPhone (plan 171, owner 08.11, comments 46 to 50). Apple's cards differ from app to app (IMG_5723, 5725,
182
182
  5726, 5728, 5729, 5730); a tip takes the shape TipKit's own tip and most of them share. It is the card of a
183
- grouped list: opaque as a grouped cell, 26 corners, no shadow (white on 242,242,246), its content at the iOS
183
+ grouped list in shape, 26 corners, no shadow, its content at the iOS
184
184
  layout margin (20 at 430pt). The symbol is a 36 tile at the margin and the text starts 12 after it (IMG_5726);
185
185
  the title line starts 14 down, the 15/20 description right under it in the secondary label, and the whole
186
186
  message stops short of Close. Close is a bare 12pt glyph in the tertiary label (197,197,199), its center 28
@@ -201,8 +201,43 @@
201
201
  --tip-close-offset: 17px;
202
202
  --tip-close-icon-size: 22px;
203
203
  border-radius: 26px;
204
- background: var(--mobile-surface-grouped-secondary, var(--tip-background));
205
- }
204
+ /* TipKit's own card (TipView, iOS 27.2 on the simulator): 242,242,247 on a white screen (28,28,30 on black), the
205
+ label color at 5% (10% at night) over the screen, so it reads on a plain and on a grouped background alike
206
+ (owner 29.11: a white card «почти сливается» with the grouped gray), and its hairline rim, the label color at 5%
207
+ fading inward over 1pt (230 at the edge in light, 38 in dark) */
208
+ background: var(--tip-mobile-background);
209
+ box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
210
+ }
211
+
212
+ /* With an arrow the rim leaves the arrow's foot open, so no line parts the card from its arrow (owner 29.11:
213
+ «появилась полоска между карточкой и клювом/стрелкой тултипа»): it is drawn over the card, the foot masked out */
214
+ .Tip[data-arrow-edge]:not(:where([data-platform="android"] *)) {
215
+ --tip-arrow-foot: var(--tip-arrow-width);
216
+ --tip-arrow-foot-position: 50% 100%;
217
+ --tip-arrow-foot-size: var(--tip-arrow-foot) 2px;
218
+ box-shadow: none;
219
+ }
220
+
221
+ .Tip[data-arrow-edge]:not(:where([data-platform="android"] *))::after {
222
+ position: absolute;
223
+ inset: 0;
224
+ border-radius: inherit;
225
+ box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
226
+ content: "";
227
+ pointer-events: none;
228
+ -webkit-mask:
229
+ linear-gradient(#000 0 0),
230
+ linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
231
+ mask:
232
+ linear-gradient(#000 0 0),
233
+ linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
234
+ -webkit-mask-composite: xor;
235
+ mask-composite: exclude;
236
+ }
237
+
238
+ .Tip[data-arrow-edge="top"] { --tip-arrow-foot-position: 50% 0; }
239
+ .Tip[data-arrow-edge="left"] { --tip-arrow-foot-position: 0 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
240
+ .Tip[data-arrow-edge="right"] { --tip-arrow-foot-position: 100% 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
206
241
 
207
242
  .Icon {
208
243
  margin-inline-start: 0;
@@ -245,7 +280,9 @@
245
280
  padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
246
281
  }
247
282
 
248
- /* Each action is a row of text in its own color under a separator ([data-variant]: over the Button's own) */
283
+ /* Each action is a row of text under a separator ([data-variant]: over the Button's own), in the tint as iOS
284
+ writes a tip's text actions (Screen Time's Review Restriction, Transfer or Reset iPhone's Get Started: IMG_5729,
285
+ 5730; owner 29.11), red for a danger action */
249
286
  .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
250
287
  --button-size: auto;
251
288
  --button-gutter: 0px;
@@ -272,13 +309,11 @@
272
309
  white-space: normal;
273
310
  }
274
311
 
275
- .Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-primary-ghost); }
276
- .Tip > .Actions > [data-color="secondary"] { --tip-action-color: var(--color-text-secondary-ghost); }
312
+ .Tip > .Actions > :is([data-color="primary"], [data-color="secondary"], [data-color="info"]) { --tip-action-color: var(--color-text-accent); }
277
313
  .Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
278
314
  .Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
279
315
  .Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
280
316
  .Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
281
- .Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
282
317
  .Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
283
318
 
284
319
  /* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
@@ -306,36 +341,33 @@
306
341
  max-width: none;
307
342
  }
308
343
 
309
- /* On iOS a tip with button actions is TipKit's mini tip (its kit's Hint View): 22 over the title, 4 between the
310
- title and the message, 22 from the words to the action and 16 under it; the action a 50 capsule across the tip,
311
- its 17 Semibold label in the action's color (the accent for a primary one) on that color at 8% over the gray
312
- at 8% (rgba 116 116 128). The Android look keeps the Button as given. */
344
+ /* On iOS a tip with button actions is TipKit's (TipView on iOS 26 and 27.2, measured on the simulator): 22 over
345
+ the title, 4 between the title and the message, 22 from the words to the actions and 16 under them; the actions
346
+ capsules side by side, 8 apart, 48 tall with a 17/22 label, each its Button's own color and variant. TipKit's own
347
+ look is an accent action (`color="accent"`) beside iOS's Gray (`variant="outline"`, or a soft secondary one with
348
+ the words in the text color). The Android look keeps them across the tip. */
313
349
  .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) {
314
350
  --tip-padding-top: 22px;
315
351
  --tip-gap: 22px;
316
352
  --tip-description-gap: 4px;
317
353
  }
318
354
 
319
- .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant][data-color] {
320
- --tip-mini-ink: var(--tip-action-color, var(--color-accent));
321
- --button-size: 50px;
322
- --button-gutter: 20px;
323
- --button-font-size: 17px;
324
- --button-line-height: 18px;
325
- --button-font-weight: var(--font-weight-semibold);
326
- font-weight: var(--font-weight-semibold);
355
+ .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions {
356
+ flex-direction: row;
357
+ gap: 8px;
327
358
  }
328
359
 
329
- /* The colors for an action that takes presses: a disabled one keeps the Button's disabled look */
330
- .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant][data-color]:not([data-disabled]) {
331
- --button-text-color: var(--tip-mini-ink);
332
- --button-text-color-hover: var(--tip-mini-ink);
333
- --button-background-color: color-mix(in srgb, var(--tip-mini-ink) 8%, rgb(116 116 128 / 0.08));
334
- --button-background-color-hover: var(--button-background-color);
335
- }
336
-
337
- .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-color="primary"] {
338
- --tip-action-color: var(--color-accent);
360
+ /* A label too long for its half wraps to a second line and its capsule grows, as the native tip's words do */
361
+ .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant] {
362
+ --button-gutter: 20px;
363
+ flex: 1 1 0;
364
+ width: auto;
365
+ height: auto;
366
+ min-height: var(--button-size);
367
+ padding-block: calc((var(--button-size) - var(--button-line-height)) / 2);
368
+ text-align: center;
369
+ white-space: normal;
370
+ overflow-wrap: anywhere;
339
371
  }
340
372
 
341
373
  .Popover {
@@ -348,6 +380,15 @@
348
380
  backdrop-filter: var(--dialog-alert-backdrop-filter, none);
349
381
  }
350
382
 
383
+ /* On the popover's glass a gray action (a soft primary or secondary one, an outline one, iOS's Gray) takes the
384
+ alert's fill, see-through as the Dialog's alert actions, its press that fill faded as a soft button's */
385
+ .Popover > .Tip[data-mobile-actions="buttons"] > .Actions > :is([data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]), [data-variant="outline"]):not([data-disabled]):not(:where([data-platform="android"] *)) {
386
+ --button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
387
+ --button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
388
+ --button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
389
+ --button-outline-context-background: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
390
+ }
391
+
351
392
  .Arrow {
352
393
  background: var(--dialog-alert-background, var(--tip-popover-background));
353
394
  backdrop-filter: var(--dialog-alert-backdrop-filter, none);
@@ -366,8 +407,43 @@
366
407
  --tip-close-offset: 17px;
367
408
  --tip-close-icon-size: 22px;
368
409
  border-radius: 26px;
369
- background: var(--mobile-surface-grouped-secondary, var(--tip-background));
370
- }
410
+ /* TipKit's own card (TipView, iOS 27.2 on the simulator): 242,242,247 on a white screen (28,28,30 on black), the
411
+ label color at 5% (10% at night) over the screen, so it reads on a plain and on a grouped background alike
412
+ (owner 29.11: a white card «почти сливается» with the grouped gray), and its hairline rim, the label color at 5%
413
+ fading inward over 1pt (230 at the edge in light, 38 in dark) */
414
+ background: var(--tip-mobile-background);
415
+ box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
416
+ }
417
+
418
+ /* With an arrow the rim leaves the arrow's foot open, so no line parts the card from its arrow (owner 29.11:
419
+ «появилась полоска между карточкой и клювом/стрелкой тултипа»): it is drawn over the card, the foot masked out */
420
+ :where([data-plex-layout="phone"]) .Tip[data-arrow-edge]:not(:where([data-platform="android"] *)) {
421
+ --tip-arrow-foot: var(--tip-arrow-width);
422
+ --tip-arrow-foot-position: 50% 100%;
423
+ --tip-arrow-foot-size: var(--tip-arrow-foot) 2px;
424
+ box-shadow: none;
425
+ }
426
+
427
+ :where([data-plex-layout="phone"]) .Tip[data-arrow-edge]:not(:where([data-platform="android"] *))::after {
428
+ position: absolute;
429
+ inset: 0;
430
+ border-radius: inherit;
431
+ box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
432
+ content: "";
433
+ pointer-events: none;
434
+ -webkit-mask:
435
+ linear-gradient(#000 0 0),
436
+ linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
437
+ mask:
438
+ linear-gradient(#000 0 0),
439
+ linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
440
+ -webkit-mask-composite: xor;
441
+ mask-composite: exclude;
442
+ }
443
+
444
+ :where([data-plex-layout="phone"]) .Tip[data-arrow-edge="top"] { --tip-arrow-foot-position: 50% 0; }
445
+ :where([data-plex-layout="phone"]) .Tip[data-arrow-edge="left"] { --tip-arrow-foot-position: 0 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
446
+ :where([data-plex-layout="phone"]) .Tip[data-arrow-edge="right"] { --tip-arrow-foot-position: 100% 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
371
447
 
372
448
  :where([data-plex-layout="phone"]) .Icon {
373
449
  margin-inline-start: 0;
@@ -410,7 +486,9 @@
410
486
  padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
411
487
  }
412
488
 
413
- /* Each action is a row of text in its own color under a separator ([data-variant]: over the Button's own) */
489
+ /* Each action is a row of text under a separator ([data-variant]: over the Button's own), in the tint as iOS
490
+ writes a tip's text actions (Screen Time's Review Restriction, Transfer or Reset iPhone's Get Started: IMG_5729,
491
+ 5730; owner 29.11), red for a danger action */
414
492
  :where([data-plex-layout="phone"]) .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
415
493
  --button-size: auto;
416
494
  --button-gutter: 0px;
@@ -437,13 +515,11 @@
437
515
  white-space: normal;
438
516
  }
439
517
 
440
- :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-primary-ghost); }
441
- :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="secondary"] { --tip-action-color: var(--color-text-secondary-ghost); }
518
+ :where([data-plex-layout="phone"]) .Tip > .Actions > :is([data-color="primary"], [data-color="secondary"], [data-color="info"]) { --tip-action-color: var(--color-text-accent); }
442
519
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
443
520
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
444
521
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
445
522
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
446
- :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
447
523
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
448
524
 
449
525
  /* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
@@ -471,36 +547,33 @@
471
547
  max-width: none;
472
548
  }
473
549
 
474
- /* On iOS a tip with button actions is TipKit's mini tip (its kit's Hint View): 22 over the title, 4 between the
475
- title and the message, 22 from the words to the action and 16 under it; the action a 50 capsule across the tip,
476
- its 17 Semibold label in the action's color (the accent for a primary one) on that color at 8% over the gray
477
- at 8% (rgba 116 116 128). The Android look keeps the Button as given. */
550
+ /* On iOS a tip with button actions is TipKit's (TipView on iOS 26 and 27.2, measured on the simulator): 22 over
551
+ the title, 4 between the title and the message, 22 from the words to the actions and 16 under them; the actions
552
+ capsules side by side, 8 apart, 48 tall with a 17/22 label, each its Button's own color and variant. TipKit's own
553
+ look is an accent action (`color="accent"`) beside iOS's Gray (`variant="outline"`, or a soft secondary one with
554
+ the words in the text color). The Android look keeps them across the tip. */
478
555
  :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) {
479
556
  --tip-padding-top: 22px;
480
557
  --tip-gap: 22px;
481
558
  --tip-description-gap: 4px;
482
559
  }
483
560
 
484
- :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant][data-color] {
485
- --tip-mini-ink: var(--tip-action-color, var(--color-accent));
486
- --button-size: 50px;
487
- --button-gutter: 20px;
488
- --button-font-size: 17px;
489
- --button-line-height: 18px;
490
- --button-font-weight: var(--font-weight-semibold);
491
- font-weight: var(--font-weight-semibold);
492
- }
493
-
494
- /* The colors for an action that takes presses: a disabled one keeps the Button's disabled look */
495
- :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant][data-color]:not([data-disabled]) {
496
- --button-text-color: var(--tip-mini-ink);
497
- --button-text-color-hover: var(--tip-mini-ink);
498
- --button-background-color: color-mix(in srgb, var(--tip-mini-ink) 8%, rgb(116 116 128 / 0.08));
499
- --button-background-color-hover: var(--button-background-color);
561
+ :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions {
562
+ flex-direction: row;
563
+ gap: 8px;
500
564
  }
501
565
 
502
- :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-color="primary"] {
503
- --tip-action-color: var(--color-accent);
566
+ /* A label too long for its half wraps to a second line and its capsule grows, as the native tip's words do */
567
+ :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant] {
568
+ --button-gutter: 20px;
569
+ flex: 1 1 0;
570
+ width: auto;
571
+ height: auto;
572
+ min-height: var(--button-size);
573
+ padding-block: calc((var(--button-size) - var(--button-line-height)) / 2);
574
+ text-align: center;
575
+ white-space: normal;
576
+ overflow-wrap: anywhere;
504
577
  }
505
578
 
506
579
  :where([data-plex-layout="phone"]) .Popover {
@@ -513,6 +586,15 @@
513
586
  backdrop-filter: var(--dialog-alert-backdrop-filter, none);
514
587
  }
515
588
 
589
+ /* On the popover's glass a gray action (a soft primary or secondary one, an outline one, iOS's Gray) takes the
590
+ alert's fill, see-through as the Dialog's alert actions, its press that fill faded as a soft button's */
591
+ :where([data-plex-layout="phone"]) .Popover > .Tip[data-mobile-actions="buttons"] > .Actions > :is([data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]), [data-variant="outline"]):not([data-disabled]):not(:where([data-platform="android"] *)) {
592
+ --button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
593
+ --button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
594
+ --button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
595
+ --button-outline-context-background: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
596
+ }
597
+
516
598
  :where([data-plex-layout="phone"]) .Arrow {
517
599
  background: var(--dialog-alert-background, var(--tip-popover-background));
518
600
  backdrop-filter: var(--dialog-alert-backdrop-filter, none);
@@ -537,6 +619,8 @@
537
619
  -moz-column-gap: 16px;
538
620
  column-gap: 16px;
539
621
  border-radius: 16px;
622
+ background: var(--mobile-surface-grouped-secondary, var(--tip-background));
623
+ box-shadow: none;
540
624
  }
541
625
 
542
626
  [data-platform="android"] .Tip .Title {
@@ -628,6 +712,8 @@
628
712
  -moz-column-gap: 16px;
629
713
  column-gap: 16px;
630
714
  border-radius: 16px;
715
+ background: var(--mobile-surface-grouped-secondary, var(--tip-background));
716
+ box-shadow: none;
631
717
  }
632
718
 
633
719
  :where([data-plex-layout="phone"]) [data-platform="android"] .Tip .Title {
@@ -278,6 +278,18 @@
278
278
  --slider-value-line-height: 20px;
279
279
  --slider-value-color: var(--android-accent-text);
280
280
  --slider-unit-color: var(--android-accent-text);
281
+ /* The marks stand over the track, as @plexui/react-native's Android slider writes them: 13/16 in the secondary
282
+ label, each centred over its value (no inset at the ends), their line's foot 16 over the track's middle (8 into
283
+ a 48 control) */
284
+ --slider-mark-font-size: 13px;
285
+ --slider-mark-line-height: 16px;
286
+ --slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
287
+ --slider-mark-end-inset: none;
288
+ --slider-marks-order: -1;
289
+ --slider-marks-row: 1;
290
+ --slider-control-row: 2;
291
+ --slider-marks-margin-top: 0px;
292
+ --slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
281
293
  }
282
294
  :root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
283
295
  --slider-track-color: #ebedf0;
@@ -605,6 +617,18 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
605
617
  --slider-value-line-height: 20px;
606
618
  --slider-value-color: var(--android-accent-text);
607
619
  --slider-unit-color: var(--android-accent-text);
620
+ /* The marks stand over the track, as @plexui/react-native's Android slider writes them: 13/16 in the secondary
621
+ label, each centred over its value (no inset at the ends), their line's foot 16 over the track's middle (8 into
622
+ a 48 control) */
623
+ --slider-mark-font-size: 13px;
624
+ --slider-mark-line-height: 16px;
625
+ --slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
626
+ --slider-mark-end-inset: none;
627
+ --slider-marks-order: -1;
628
+ --slider-marks-row: 1;
629
+ --slider-control-row: 2;
630
+ --slider-marks-margin-top: 0px;
631
+ --slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
608
632
  }
609
633
  :root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
610
634
  --slider-track-color: #ebedf0;
@@ -367,6 +367,15 @@
367
367
  --slider-value-line-height: 20px;
368
368
  --slider-value-color: var(--android-accent-text);
369
369
  --slider-unit-color: var(--android-accent-text);
370
+ --slider-mark-font-size: 13px;
371
+ --slider-mark-line-height: 16px;
372
+ --slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
373
+ --slider-mark-end-inset: none;
374
+ --slider-marks-order: -1;
375
+ --slider-marks-row: 1;
376
+ --slider-control-row: 2;
377
+ --slider-marks-margin-top: 0px;
378
+ --slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
370
379
  }
371
380
  :root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
372
381
  --slider-track-color: #ebedf0;
@@ -627,6 +636,15 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
627
636
  --slider-value-line-height: 20px;
628
637
  --slider-value-color: var(--android-accent-text);
629
638
  --slider-unit-color: var(--android-accent-text);
639
+ --slider-mark-font-size: 13px;
640
+ --slider-mark-line-height: 16px;
641
+ --slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
642
+ --slider-mark-end-inset: none;
643
+ --slider-marks-order: -1;
644
+ --slider-marks-row: 1;
645
+ --slider-control-row: 2;
646
+ --slider-marks-margin-top: 0px;
647
+ --slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
630
648
  }
631
649
  :root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
632
650
  --slider-track-color: #ebedf0;
@@ -1263,6 +1281,22 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
1263
1281
  --slider-thumb-radius: var(--radius-full);
1264
1282
  --slider-thumb-background: var(--white);
1265
1283
  --slider-thumb-shadow: 0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%);
1284
+ --slider-track-color: var(--alpha-10);
1285
+ --slider-tick-size: 3px;
1286
+ --slider-tick-offset: 8.5px;
1287
+ --slider-mark-font-size: 15px;
1288
+ --slider-mark-line-height: 20px;
1289
+ --slider-mark-color: var(--color-text);
1290
+ --slider-marks-baseline: 31px;
1291
+ --slider-mark-end-inset: 5px;
1292
+ --slider-marks-order: -1;
1293
+ --slider-marks-row: 1;
1294
+ --slider-control-row: 2;
1295
+ --slider-marks-margin-top: 0px;
1296
+ --slider-marks-margin-bottom: calc(
1297
+ var(--slider-marks-baseline) - var(--slider-control-height) / 2 - var(--slider-mark-line-height) / 2 + 0.36328 *
1298
+ var(--slider-mark-font-size)
1299
+ );
1266
1300
  --empty-message-title-size: 20px;
1267
1301
  --empty-message-title-leading: 25px;
1268
1302
  --empty-message-title-gap: 1px;
@@ -1389,6 +1423,7 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
1389
1423
  inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
1390
1424
  inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
1391
1425
  --menu-horizontal-selected-background: var(--alpha-12);
1426
+ --slider-tick-color: #c6c6c8;
1392
1427
  }
1393
1428
  html:root:where([data-theme="dark"]) {
1394
1429
  --menu-press-background: var(--alpha-10);
@@ -1399,6 +1434,7 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
1399
1434
  inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
1400
1435
  inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
1401
1436
  --menu-horizontal-selected-background: var(--alpha-15);
1437
+ --slider-tick-color: #38383a;
1402
1438
  }
1403
1439
  @layer components {
1404
1440
  html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
@@ -1971,6 +2007,22 @@ html:root :where([data-plex-layout="phone"]) {
1971
2007
  --slider-thumb-radius: var(--radius-full);
1972
2008
  --slider-thumb-background: var(--white);
1973
2009
  --slider-thumb-shadow: 0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%);
2010
+ --slider-track-color: var(--alpha-10);
2011
+ --slider-tick-size: 3px;
2012
+ --slider-tick-offset: 8.5px;
2013
+ --slider-mark-font-size: 15px;
2014
+ --slider-mark-line-height: 20px;
2015
+ --slider-mark-color: var(--color-text);
2016
+ --slider-marks-baseline: 31px;
2017
+ --slider-mark-end-inset: 5px;
2018
+ --slider-marks-order: -1;
2019
+ --slider-marks-row: 1;
2020
+ --slider-control-row: 2;
2021
+ --slider-marks-margin-top: 0px;
2022
+ --slider-marks-margin-bottom: calc(
2023
+ var(--slider-marks-baseline) - var(--slider-control-height) / 2 - var(--slider-mark-line-height) / 2 + 0.36328 *
2024
+ var(--slider-mark-font-size)
2025
+ );
1974
2026
  --empty-message-title-size: 20px;
1975
2027
  --empty-message-title-leading: 25px;
1976
2028
  --empty-message-title-gap: 1px;
@@ -2097,6 +2149,7 @@ html:root :where([data-plex-layout="phone"]), html:root:where([data-theme="light
2097
2149
  inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
2098
2150
  inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
2099
2151
  --menu-horizontal-selected-background: var(--alpha-12);
2152
+ --slider-tick-color: #c6c6c8;
2100
2153
  }
2101
2154
  html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:root :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
2102
2155
  --menu-press-background: var(--alpha-10);
@@ -2107,6 +2160,7 @@ html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:ro
2107
2160
  inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
2108
2161
  inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
2109
2162
  --menu-horizontal-selected-background: var(--alpha-15);
2163
+ --slider-tick-color: #38383a;
2110
2164
  }
2111
2165
  @layer components {
2112
2166
  html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {