@plexui/styles 0.17.15 → 0.17.17

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
  }
@@ -280,7 +280,9 @@
280
280
  padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
281
281
  }
282
282
 
283
- /* 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 */
284
286
  .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
285
287
  --button-size: auto;
286
288
  --button-gutter: 0px;
@@ -307,13 +309,11 @@
307
309
  white-space: normal;
308
310
  }
309
311
 
310
- .Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-primary-ghost); }
311
- .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); }
312
313
  .Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
313
314
  .Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
314
315
  .Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
315
316
  .Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
316
- .Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
317
317
  .Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
318
318
 
319
319
  /* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
@@ -382,7 +382,7 @@
382
382
 
383
383
  /* On the popover's glass a gray action (a soft primary or secondary one, an outline one, iOS's Gray) takes the
384
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"] *)) {
385
+ .Popover:not([data-material="solid"]) > .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
386
  --button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
387
387
  --button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
388
388
  --button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
@@ -393,6 +393,14 @@
393
393
  background: var(--dialog-alert-background, var(--tip-popover-background));
394
394
  backdrop-filter: var(--dialog-alert-backdrop-filter, none);
395
395
  }
396
+
397
+ /* material="solid": the tip and its arrow on the opaque elevated surface iOS draws the tip on with Reduce
398
+ Transparency, nothing blurred under them (a tip over a photo); a gray action keeps its own fill */
399
+ .Popover[data-material="solid"]:not(:where([data-platform="android"] *)) > .Tip,
400
+ .Popover[data-material="solid"]:not(:where([data-platform="android"] *)) .Arrow {
401
+ background: var(--tip-popover-background);
402
+ backdrop-filter: none;
403
+ }
396
404
  }
397
405
  :where([data-plex-layout="phone"]) .Tip {
398
406
  --tip-padding-top: 14px;
@@ -486,7 +494,9 @@
486
494
  padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
487
495
  }
488
496
 
489
- /* Each action is a row of text in its own color under a separator ([data-variant]: over the Button's own) */
497
+ /* Each action is a row of text under a separator ([data-variant]: over the Button's own), in the tint as iOS
498
+ writes a tip's text actions (Screen Time's Review Restriction, Transfer or Reset iPhone's Get Started: IMG_5729,
499
+ 5730; owner 29.11), red for a danger action */
490
500
  :where([data-plex-layout="phone"]) .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
491
501
  --button-size: auto;
492
502
  --button-gutter: 0px;
@@ -513,13 +523,11 @@
513
523
  white-space: normal;
514
524
  }
515
525
 
516
- :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-primary-ghost); }
517
- :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="secondary"] { --tip-action-color: var(--color-text-secondary-ghost); }
526
+ :where([data-plex-layout="phone"]) .Tip > .Actions > :is([data-color="primary"], [data-color="secondary"], [data-color="info"]) { --tip-action-color: var(--color-text-accent); }
518
527
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
519
528
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
520
529
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
521
530
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
522
- :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
523
531
  :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
524
532
 
525
533
  /* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
@@ -588,7 +596,7 @@
588
596
 
589
597
  /* On the popover's glass a gray action (a soft primary or secondary one, an outline one, iOS's Gray) takes the
590
598
  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"] *)) {
599
+ :where([data-plex-layout="phone"]) .Popover:not([data-material="solid"]) > .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
600
  --button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
593
601
  --button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
594
602
  --button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
@@ -598,7 +606,15 @@
598
606
  :where([data-plex-layout="phone"]) .Arrow {
599
607
  background: var(--dialog-alert-background, var(--tip-popover-background));
600
608
  backdrop-filter: var(--dialog-alert-backdrop-filter, none);
601
- }/* The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's Tip on Android
609
+ }
610
+
611
+ /* material="solid": the tip and its arrow on the opaque elevated surface iOS draws the tip on with Reduce
612
+ Transparency, nothing blurred under them (a tip over a photo); a gray action keeps its own fill */
613
+ :where([data-plex-layout="phone"]) .Popover[data-material="solid"]:not(:where([data-platform="android"] *)) > .Tip,
614
+ :where([data-plex-layout="phone"]) .Popover[data-material="solid"]:not(:where([data-platform="android"] *)) .Arrow {
615
+ background: var(--tip-popover-background);
616
+ backdrop-filter: none;
617
+ }/* The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's Tip on Android
602
618
  (decision 0026): a card of the screen's cells with Material 3's rich tooltip inside: 16px corners and 16 inside, a
603
619
  24px symbol 16 before the text, a title 16/24 Medium over a message 14/20 in the secondary text 2 under it, 12 over
604
620
  the actions; Close a bare 24px glyph in the secondary label, in a 48px target 4 from the top and the end. The actions are text buttons side by
@@ -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"] {
@@ -1053,6 +1053,14 @@
1053
1053
  /* =============================================
1054
1054
  Slider
1055
1055
  ============================================= */
1056
+ /* `ticks`: a dot at each step under the track, where the thumb's centre stands on that step (the phone takes
1057
+ iOS 27.2's, touch.css). Its centre is the offset under the track's middle. */
1058
+ --slider-tick-size: 3px;
1059
+ --slider-tick-offset: 8.5px;
1060
+ /* The marks of the scale: under the track on a desktop, over it on an iOS phone (touch.css) */
1061
+ --slider-mark-font-size: 12px;
1062
+ --slider-mark-line-height: normal;
1063
+ --slider-mark-color: var(--color-text);
1056
1064
 
1057
1065
  /* =============================================
1058
1066
  Switch
@@ -1320,6 +1328,7 @@
1320
1328
  --tab-bar-item-color: var(--gray-750);
1321
1329
  --slider-track-color: var(--gray-150);
1322
1330
  --slider-range-color: var(--gray-450);
1331
+ --slider-tick-color: var(--gray-200);
1323
1332
  --switch-track-color: var(--gray-150);
1324
1333
  --switch-track-color-hover: var(--gray-200);
1325
1334
  --switch-track-color-checked: var(--gray-900);
@@ -1389,6 +1398,7 @@
1389
1398
  --tab-bar-item-color: var(--gray-850);
1390
1399
  --slider-track-color: var(--gray-400);
1391
1400
  --slider-range-color: var(--gray-600);
1401
+ --slider-tick-color: var(--gray-350);
1392
1402
  --switch-track-color: var(--gray-400);
1393
1403
  --switch-track-color-hover: var(--gray-450);
1394
1404
  --switch-track-color-checked: var(--blue-400);
@@ -1494,6 +1494,12 @@ export const tokenLayers = [
1494
1494
  "--select-control-font-weight": "var(--font-weight-normal)",
1495
1495
  "--slider-track-color": "light-dark(var(--gray-150), var(--gray-400))",
1496
1496
  "--slider-range-color": "light-dark(var(--gray-450), var(--gray-600))",
1497
+ "--slider-tick-size": "3px",
1498
+ "--slider-tick-offset": "8.5px",
1499
+ "--slider-tick-color": "light-dark(var(--gray-200), var(--gray-350))",
1500
+ "--slider-mark-font-size": "12px",
1501
+ "--slider-mark-line-height": "normal",
1502
+ "--slider-mark-color": "var(--color-text)",
1497
1503
  "--switch-track-width": "32px",
1498
1504
  "--switch-track-height": "19px",
1499
1505
  "--switch-track-color": "light-dark(var(--gray-150), var(--gray-400))",
@@ -1678,7 +1684,7 @@ export const tokenLayers = [
1678
1684
  1,
1679
1685
  0
1680
1686
  ],
1681
- "order": 1499,
1687
+ "order": 1505,
1682
1688
  "tokens": {
1683
1689
  "--radius-2xs": "0.125rem",
1684
1690
  "--radius-xs": "0.25rem",
@@ -1710,7 +1716,7 @@ export const tokenLayers = [
1710
1716
  1,
1711
1717
  0
1712
1718
  ],
1713
- "order": 1520,
1719
+ "order": 1526,
1714
1720
  "when": {
1715
1721
  "maxWidth": 767
1716
1722
  },
@@ -1742,7 +1748,7 @@ export const tokenLayers = [
1742
1748
  1,
1743
1749
  0
1744
1750
  ],
1745
- "order": 1536,
1751
+ "order": 1542,
1746
1752
  "when": {
1747
1753
  "maxWidth": 767
1748
1754
  },
@@ -1788,7 +1794,7 @@ export const tokenLayers = [
1788
1794
  1,
1789
1795
  0
1790
1796
  ],
1791
- "order": 1566,
1797
+ "order": 1572,
1792
1798
  "when": {
1793
1799
  "maxWidth": 767
1794
1800
  },
@@ -1805,7 +1811,7 @@ export const tokenLayers = [
1805
1811
  1,
1806
1812
  1
1807
1813
  ],
1808
- "order": 1593,
1814
+ "order": 1599,
1809
1815
  "when": {
1810
1816
  "maxWidth": 767
1811
1817
  },
@@ -2154,6 +2160,20 @@ export const tokenLayers = [
2154
2160
  "--slider-thumb-radius": "var(--radius-full)",
2155
2161
  "--slider-thumb-background": "var(--white)",
2156
2162
  "--slider-thumb-shadow": "0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%)",
2163
+ "--slider-track-color": "var(--alpha-10)",
2164
+ "--slider-tick-size": "3px",
2165
+ "--slider-tick-offset": "8.5px",
2166
+ "--slider-tick-color": "light-dark(#c6c6c8, #38383a)",
2167
+ "--slider-mark-font-size": "15px",
2168
+ "--slider-mark-line-height": "20px",
2169
+ "--slider-mark-color": "var(--color-text)",
2170
+ "--slider-marks-baseline": "31px",
2171
+ "--slider-mark-end-inset": "5px",
2172
+ "--slider-marks-order": "-1",
2173
+ "--slider-marks-row": "1",
2174
+ "--slider-control-row": "2",
2175
+ "--slider-marks-margin-top": "0px",
2176
+ "--slider-marks-margin-bottom": "calc( var(--slider-marks-baseline) - var(--slider-control-height) / 2 - var(--slider-mark-line-height) / 2 + 0.36328 * var(--slider-mark-font-size) )",
2157
2177
  "--empty-message-title-size": "20px",
2158
2178
  "--empty-message-title-leading": "25px",
2159
2179
  "--empty-message-title-gap": "1px",
@@ -2281,7 +2301,7 @@ export const tokenLayers = [
2281
2301
  1,
2282
2302
  1
2283
2303
  ],
2284
- "order": 2146,
2304
+ "order": 2166,
2285
2305
  "when": {
2286
2306
  "minWidth": 414,
2287
2307
  "maxWidth": 767
@@ -2299,7 +2319,7 @@ export const tokenLayers = [
2299
2319
  1,
2300
2320
  1
2301
2321
  ],
2302
- "order": 2147,
2322
+ "order": 2167,
2303
2323
  "when": {
2304
2324
  "maxWidth": 575
2305
2325
  },
@@ -3762,10 +3782,20 @@ export const resolvedTokens = {
3762
3782
  "--skeleton-background": "rgba(13, 13, 13, 0.08)",
3763
3783
  "--skeleton-radius": 8,
3764
3784
  "--slider-control-height": 52,
3785
+ "--slider-control-row": 2,
3765
3786
  "--slider-label-font-size": 17,
3766
3787
  "--slider-label-gap": 0,
3767
3788
  "--slider-label-height": 44,
3768
3789
  "--slider-label-line-height": 22,
3790
+ "--slider-mark-color": "#0d0d0d",
3791
+ "--slider-mark-end-inset": 5,
3792
+ "--slider-mark-font-size": 15,
3793
+ "--slider-mark-line-height": 20,
3794
+ "--slider-marks-baseline": 31,
3795
+ "--slider-marks-margin-bottom": 0.4492,
3796
+ "--slider-marks-margin-top": 0,
3797
+ "--slider-marks-order": -1,
3798
+ "--slider-marks-row": 1,
3769
3799
  "--slider-padding-bottom": 0,
3770
3800
  "--slider-range-color": "#767676",
3771
3801
  "--slider-thumb-background": "#ffffff",
@@ -3773,7 +3803,10 @@ export const resolvedTokens = {
3773
3803
  "--slider-thumb-radius": 9999,
3774
3804
  "--slider-thumb-shadow": "0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 13px rgba(0, 0, 0, 0.12)",
3775
3805
  "--slider-thumb-width": 38,
3776
- "--slider-track-color": "#dfdfdf",
3806
+ "--slider-tick-color": "#c6c6c8",
3807
+ "--slider-tick-offset": 8.5,
3808
+ "--slider-tick-size": 3,
3809
+ "--slider-track-color": "rgba(13, 13, 13, 0.1)",
3777
3810
  "--slider-track-radius": 3,
3778
3811
  "--slider-track-size": 6,
3779
3812
  "--slider-unit-color": "rgba(13, 13, 13, 0.5)",
@@ -5555,10 +5588,20 @@ export const resolvedTokens = {
5555
5588
  "--skeleton-background": "rgba(255, 255, 255, 0.12)",
5556
5589
  "--skeleton-radius": 8,
5557
5590
  "--slider-control-height": 52,
5591
+ "--slider-control-row": 2,
5558
5592
  "--slider-label-font-size": 17,
5559
5593
  "--slider-label-gap": 0,
5560
5594
  "--slider-label-height": 44,
5561
5595
  "--slider-label-line-height": 22,
5596
+ "--slider-mark-color": "#ffffff",
5597
+ "--slider-mark-end-inset": 5,
5598
+ "--slider-mark-font-size": 15,
5599
+ "--slider-mark-line-height": 20,
5600
+ "--slider-marks-baseline": 31,
5601
+ "--slider-marks-margin-bottom": 0.4492,
5602
+ "--slider-marks-margin-top": 0,
5603
+ "--slider-marks-order": -1,
5604
+ "--slider-marks-row": 1,
5562
5605
  "--slider-padding-bottom": 0,
5563
5606
  "--slider-range-color": "#8f8f8f",
5564
5607
  "--slider-thumb-background": "#ffffff",
@@ -5566,7 +5609,10 @@ export const resolvedTokens = {
5566
5609
  "--slider-thumb-radius": 9999,
5567
5610
  "--slider-thumb-shadow": "0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 13px rgba(0, 0, 0, 0.12)",
5568
5611
  "--slider-thumb-width": 38,
5569
- "--slider-track-color": "#414141",
5612
+ "--slider-tick-color": "#38383a",
5613
+ "--slider-tick-offset": 8.5,
5614
+ "--slider-tick-size": 3,
5615
+ "--slider-track-color": "rgba(255, 255, 255, 0.1)",
5570
5616
  "--slider-track-radius": 3,
5571
5617
  "--slider-track-size": 6,
5572
5618
  "--slider-unit-color": "rgba(255, 255, 255, 0.5)",