@plexui/styles 0.1.46 → 0.3.0

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.
Files changed (72) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +54 -1
  2. package/dist/es/components/Alert/Alert.module.css +75 -37
  3. package/dist/es/components/Button/Button.module.css +36 -28
  4. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
  5. package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
  6. package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
  7. package/dist/es/components/DatePicker/Calendar.module.css +17 -15
  8. package/dist/es/components/DateRangePicker/Calendar.module.css +17 -69
  9. package/dist/es/components/Dialog/Dialog.module.css +169 -70
  10. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +12 -8
  11. package/dist/es/components/Field/Field.module.css +56 -22
  12. package/dist/es/components/FieldGroup/FieldGroup.module.css +5 -5
  13. package/dist/es/components/FileUpload/FileUpload.module.css +2 -2
  14. package/dist/es/components/Input/Input.module.css +100 -18
  15. package/dist/es/components/Menu/Menu.module.css +38 -42
  16. package/dist/es/components/Page/Page.module.css +38 -0
  17. package/dist/es/components/Popover/Popover.module.css +10 -11
  18. package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
  19. package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
  20. package/dist/es/components/Select/Select.module.css +304 -42
  21. package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
  22. package/dist/es/components/Sidebar/Sidebar.module.css +6 -4
  23. package/dist/es/components/Slider/Slider.module.css +46 -2
  24. package/dist/es/components/Sortable/Sortable.module.css +3 -2
  25. package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
  26. package/dist/es/components/Stepper/Stepper.module.css +7 -4
  27. package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
  28. package/dist/es/components/Switch/Switch.module.css +6 -5
  29. package/dist/es/components/TabBar/TabBar.module.css +128 -12
  30. package/dist/es/components/Tabs/Tabs.module.css +240 -45
  31. package/dist/es/components/Toast/Toast.module.css +47 -24
  32. package/dist/es/components/Toolbar/Toolbar.module.css +120 -62
  33. package/dist/es/styles/geist-mono-fonts/LICENSE +93 -0
  34. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
  35. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  36. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
  37. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
  38. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
  39. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
  40. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-italic.woff2 +0 -0
  41. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-normal.woff2 +0 -0
  42. package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
  43. package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
  44. package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
  45. package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
  46. package/dist/es/styles/geist-mono.css +124 -0
  47. package/dist/es/styles/index.css +3 -0
  48. package/dist/es/styles/inter-fonts/LICENSE +93 -0
  49. package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
  50. package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
  51. package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
  52. package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
  53. package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
  54. package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
  55. package/dist/es/styles/inter-fonts/inter-greek-opsz-italic.woff2 +0 -0
  56. package/dist/es/styles/inter-fonts/inter-greek-opsz-normal.woff2 +0 -0
  57. package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
  58. package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
  59. package/dist/es/styles/inter-fonts/inter-latin-opsz-italic.woff2 +0 -0
  60. package/dist/es/styles/inter-fonts/inter-latin-opsz-normal.woff2 +0 -0
  61. package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
  62. package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
  63. package/dist/es/styles/inter.css +142 -0
  64. package/dist/es/styles/mobile-materials.css +65 -24
  65. package/dist/es/styles/tailwind-utilities.css +8 -0
  66. package/dist/es/styles/touch.css +357 -169
  67. package/dist/es/styles/variables-components.css +255 -138
  68. package/dist/es/styles/variables-semantic.css +30 -5
  69. package/dist/es/styles/variables-tailwind-theme.css +2 -4
  70. package/dist/es/styles/variables-tokens-root.css +70 -4
  71. package/package.json +1 -1
  72. package/dist/es/components/StatCard/StatCard.module.css +0 -234
@@ -285,7 +285,8 @@
285
285
  }.CloseButton {
286
286
  position: absolute;
287
287
  top: 0.75rem;
288
- right: 0.75rem;
288
+ /* Logical, as the header actions, so a right-to-left dialog keeps it clear of a leading action */
289
+ inset-inline-end: 0.75rem;
289
290
  display: inline-flex;
290
291
  align-items: center;
291
292
  justify-content: center;
@@ -367,8 +368,12 @@
367
368
  .HeaderAction > button {
368
369
  --button-size: 2rem;
369
370
  --button-radius: var(--radius-full);
370
- }.Panel:has(.HeaderAction) > .Header {
371
+ }.Panel:has(.HeaderAction:not([data-side="leading"])) > .Header {
371
372
  padding-inline-end: 4.75rem;
373
+ }/* A leading action, such as a step's Back, stands before the title: 8px between them */.HeaderAction[data-side="leading"] {
374
+ inset-inline: 0.75rem auto;
375
+ }.Panel:has(.HeaderAction[data-side="leading"]) > .Header {
376
+ padding-inline-start: 2rem;
372
377
  }.Title {
373
378
  margin: 0;
374
379
  font-size: 1.125rem;
@@ -392,7 +397,7 @@
392
397
 
393
398
  .CloseButton {
394
399
  top: 0.5rem;
395
- right: 0.5rem;
400
+ inset-inline-end: 0.5rem;
396
401
  width: var(--dialog-mobile-action-size);
397
402
  height: var(--dialog-mobile-action-size);
398
403
  border-radius: var(--radius-full);
@@ -480,7 +485,7 @@
480
485
 
481
486
  :where([data-plex-layout="phone"]) .CloseButton {
482
487
  top: 0.5rem;
483
- right: 0.5rem;
488
+ inset-inline-end: 0.5rem;
484
489
  width: var(--dialog-mobile-action-size);
485
490
  height: var(--dialog-mobile-action-size);
486
491
  border-radius: var(--radius-full);
@@ -555,7 +560,8 @@
555
560
  --button-radius: var(--dialog-mobile-action-radius);
556
561
  --button-font-size: var(--dialog-mobile-action-font-size);
557
562
  --button-gutter: var(--control-gutter-xl);
558
- }/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 767px) {
563
+ }/* On a phone every dialog is an iOS presentation: a sheet unless it is an alert (mobileVariant, owner 12.11). The
564
+ desktop placement and styles stay independent of it. */@media (width <= 767px) {
559
565
  /* A phone Sheet or Alert dims the page as iOS does: less than a desktop modal in light. */
560
566
  .Overlay:has(+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"])) {
561
567
  background: var(--dialog-mobile-scrim);
@@ -571,11 +577,12 @@
571
577
  --dialog-panel-radius: var(--dialog-alert-radius);
572
578
  }
573
579
 
574
- /* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
575
- title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
576
- 24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
577
- between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
578
- label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
580
+ /* The alert of iOS 27.2 (UIAlertController .alert on an iPhone 17, measures/alerts.md): 320 wide, glass, the
581
+ actions 16 from the edge and a field 15, the text 31 from the sides. The title is 17/22 semibold, its baseline
582
+ 38.33 from the top; the message 15/20 in the secondary label (native dark is dimmer, mobile-materials.css),
583
+ its first baseline 25.67 under the title's.
584
+ The actions stand 24.17 under the last baseline, 48 tall and 8 apart; a field 48 tall stands 20.17 under
585
+ the message and 20 over the actions. The colors follow native frames (mobile-materials.css). */
579
586
  .Content[data-mobile-variant="alert"] .Panel {
580
587
  gap: 10px;
581
588
  padding: var(--dialog-alert-padding);
@@ -590,8 +597,18 @@
590
597
  }
591
598
 
592
599
  .Content[data-mobile-variant="alert"] .Header {
593
- gap: var(--dialog-alert-header-gap, 10px);
594
- padding: var(--dialog-alert-header-padding, 8px 8px 14px);
600
+ gap: var(--dialog-alert-header-gap, 5.67px);
601
+ padding: var(--dialog-alert-header-padding, 5px 15px 5.5px);
602
+ }
603
+
604
+ /* A title alone stands centered, as native sets one without a message ("Unable to Connect", 27.2). */
605
+ .Content[data-mobile-variant="alert"] .Header:not(:has(.Description)) {
606
+ text-align: center;
607
+ }
608
+
609
+ /* The actions under the text stand 4 lower than a field does: 19.5 from the text's line box, 15.5 for a field. */
610
+ .Content[data-mobile-variant="alert"] .Header + .Footer {
611
+ margin-top: 4px;
595
612
  }
596
613
 
597
614
  .Content[data-mobile-variant="alert"] .Header > :first-child {
@@ -610,8 +627,8 @@
610
627
 
611
628
  .Content[data-mobile-variant="alert"] .Description {
612
629
  color: var(--dialog-alert-message-color, var(--color-text));
613
- font-size: var(--dialog-alert-message-size, 17px);
614
- line-height: var(--dialog-alert-message-leading, 22px);
630
+ font-size: var(--dialog-alert-message-size, 15px);
631
+ line-height: var(--dialog-alert-message-leading, 20px);
615
632
  }
616
633
 
617
634
  /* The message of an iOS alert is plain text: a code or a name in it reads as the rest of the message. A link
@@ -629,11 +646,12 @@
629
646
  text-decoration: none;
630
647
  }
631
648
 
632
- /* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
649
+ /* A text field fills the alert as its actions do: a 48px capsule 20 above the actions. Native draws it 290
650
+ wide over actions of 288, a point further out on each side. */
633
651
  .Content[data-mobile-variant="alert"] .Body {
634
- --control-size-3xl: var(--dialog-alert-field-height, 52px);
635
- margin-inline: 0;
636
- padding: 0 0 9px;
652
+ --control-size-3xl: var(--dialog-alert-field-height, 48px);
653
+ margin-inline: -1px;
654
+ padding: 0 0 10px;
637
655
  --dialog-steps-gutter: 0px;
638
656
  }
639
657
 
@@ -655,13 +673,14 @@
655
673
  overflow-wrap: anywhere;
656
674
  }
657
675
 
658
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]),
676
+ /* Two actions stand side by side; three or more stack, as native lays them out ("Unsaved Changes", 27.2). */
677
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))),
659
678
  .Content .Footer[data-mobile-layout="inline"] {
660
679
  flex-flow: row wrap;
661
680
  gap: 10px 16px;
662
681
  }
663
682
 
664
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > *, .Content .Footer[data-mobile-layout="inline"] > * {
683
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > *, .Content .Footer[data-mobile-layout="inline"] > * {
665
684
  flex: 1 0 auto;
666
685
  width: auto;
667
686
  min-width: calc(50% - 8px);
@@ -673,10 +692,17 @@
673
692
  overflow-wrap: anywhere;
674
693
  }
675
694
 
676
- /* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
677
- about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
695
+ /* Native alert actions are medium, the preferred one semibold (stems of 1.84 and 2.07pt at 17pt, against 1.45
696
+ for regular text, 27.2), and a soft action and a field share the fill of the glass, about 13% of the label
697
+ color in both themes (light 202 on 233, dark 60 on 32). The weight is set on the button itself: touch.css
698
+ gives every filled phone button a semibold --button-font-weight outside the layers, where a component's
699
+ value for it cannot reach. */
678
700
  .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
679
- --button-font-weight: var(--dialog-alert-action-font-weight, 600);
701
+ font-weight: var(--dialog-alert-action-font-weight, 510);
702
+ }
703
+
704
+ .Content[data-mobile-variant="alert"] .Footer > [data-variant="solid"]:not([data-color="danger"]) {
705
+ font-weight: var(--dialog-alert-preferred-font-weight, 590);
680
706
  }
681
707
 
682
708
  .Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
@@ -697,12 +723,15 @@
697
723
  --input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
698
724
  }
699
725
 
700
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
701
- -moz-column-gap: var(--dialog-alert-action-gap, 8px);
702
- column-gap: var(--dialog-alert-action-gap, 8px);
726
+ .Content[data-mobile-variant="alert"] .Footer {
727
+ gap: var(--dialog-alert-action-gap, 8px);
728
+ }
729
+
730
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
731
+ gap: var(--dialog-alert-action-gap, 8px);
703
732
  }
704
733
 
705
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
734
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > * {
706
735
  min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
707
736
  }
708
737
 
@@ -727,8 +756,8 @@
727
756
  overflow: hidden;
728
757
  }
729
758
 
730
- /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
731
- the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
759
+ /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the row of controls and the title
760
+ are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
732
761
  row leaves it. */
733
762
  .BarHeading > * {
734
763
  max-width: 100%;
@@ -762,17 +791,14 @@
762
791
 
763
792
  /* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
764
793
  control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
765
- edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
766
- than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
794
+ edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom; that fall is
795
+ not drawn, the glass stays flat with its rim (mobile-materials.css, owner 10.11: no gradients). In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
767
796
  and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
768
797
  The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
769
798
  darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
770
799
  bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
771
800
  155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
772
801
  round button read as an oval (owner, 08.11). */
773
- .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
774
- --mobile-glass-sheen: linear-gradient(light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 6%)), transparent 6px, transparent calc(100% - 8px), light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 4%)));
775
- }
776
802
  .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
777
803
  --mobile-glass-shadow: 0 4px 12px rgb(0 0 0 / 2%), 0 0 0 0.5px rgb(0 0 0 / 12%), 1.25px 0 0 -0.75px rgb(0 0 0 / 16%), -1.25px 0 0 -0.75px rgb(0 0 0 / 16%), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
778
804
  }
@@ -967,19 +993,46 @@
967
993
 
968
994
  /* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
969
995
  the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
970
- bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). */
971
- .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
996
+ bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
997
+ same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
998
+ native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. */
999
+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
972
1000
  --button-background-color: var(--toolbar-prominent-background);
973
1001
  --button-background-color-hover: var(--toolbar-prominent-background-hover);
974
1002
  --button-background-color-active: var(--toolbar-prominent-background-active);
975
1003
  --button-text-color: var(--toolbar-prominent-color);
976
1004
  }
977
1005
 
978
- .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
1006
+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
979
1007
  background-image: var(--toolbar-prominent-sheen);
980
1008
  box-shadow: var(--toolbar-prominent-shadow);
981
1009
  }
982
1010
 
1011
+ /* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
1012
+ a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
1013
+ Manually centred 35pt below it; owner 12.11, «нет такого в iOS»). A footer is written with its main action
1014
+ last, where a desktop row ends; Dialog.Footer turns the order in the page on a phone. Beside a solid action a
1015
+ soft, outline or ghost one takes the iOS tint (--color-accent, as the prominent bar button) or red for danger, at the
1016
+ regular weight; a disabled one keeps the Button's disabled color. */
1017
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]) {
1018
+ font-weight: var(--font-weight-normal);
1019
+ }
1020
+
1021
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where(:not([data-disabled])) {
1022
+ --button-text-color: var(--color-text-accent);
1023
+ --button-text-color-hover: var(--color-text-accent);
1024
+ }
1025
+
1026
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
1027
+ --button-text-color: var(--color-text-danger);
1028
+ --button-text-color-hover: var(--color-text-danger);
1029
+ }
1030
+
1031
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"])::before {
1032
+ background: none;
1033
+ box-shadow: none;
1034
+ }
1035
+
983
1036
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
984
1037
  min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
985
1038
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
@@ -1010,11 +1063,12 @@
1010
1063
  --dialog-panel-radius: var(--dialog-alert-radius);
1011
1064
  }
1012
1065
 
1013
- /* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
1014
- title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
1015
- 24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
1016
- between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
1017
- label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
1066
+ /* The alert of iOS 27.2 (UIAlertController .alert on an iPhone 17, measures/alerts.md): 320 wide, glass, the
1067
+ actions 16 from the edge and a field 15, the text 31 from the sides. The title is 17/22 semibold, its baseline
1068
+ 38.33 from the top; the message 15/20 in the secondary label (native dark is dimmer, mobile-materials.css),
1069
+ its first baseline 25.67 under the title's.
1070
+ The actions stand 24.17 under the last baseline, 48 tall and 8 apart; a field 48 tall stands 20.17 under
1071
+ the message and 20 over the actions. The colors follow native frames (mobile-materials.css). */
1018
1072
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Panel {
1019
1073
  gap: 10px;
1020
1074
  padding: var(--dialog-alert-padding);
@@ -1029,8 +1083,18 @@
1029
1083
  }
1030
1084
 
1031
1085
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header {
1032
- gap: var(--dialog-alert-header-gap, 10px);
1033
- padding: var(--dialog-alert-header-padding, 8px 8px 14px);
1086
+ gap: var(--dialog-alert-header-gap, 5.67px);
1087
+ padding: var(--dialog-alert-header-padding, 5px 15px 5.5px);
1088
+ }
1089
+
1090
+ /* A title alone stands centered, as native sets one without a message ("Unable to Connect", 27.2). */
1091
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header:not(:has(.Description)) {
1092
+ text-align: center;
1093
+ }
1094
+
1095
+ /* The actions under the text stand 4 lower than a field does: 19.5 from the text's line box, 15.5 for a field. */
1096
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header + .Footer {
1097
+ margin-top: 4px;
1034
1098
  }
1035
1099
 
1036
1100
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header > :first-child {
@@ -1049,8 +1113,8 @@
1049
1113
 
1050
1114
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Description {
1051
1115
  color: var(--dialog-alert-message-color, var(--color-text));
1052
- font-size: var(--dialog-alert-message-size, 17px);
1053
- line-height: var(--dialog-alert-message-leading, 22px);
1116
+ font-size: var(--dialog-alert-message-size, 15px);
1117
+ line-height: var(--dialog-alert-message-leading, 20px);
1054
1118
  }
1055
1119
 
1056
1120
  /* The message of an iOS alert is plain text: a code or a name in it reads as the rest of the message. A link
@@ -1068,11 +1132,12 @@
1068
1132
  text-decoration: none;
1069
1133
  }
1070
1134
 
1071
- /* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
1135
+ /* A text field fills the alert as its actions do: a 48px capsule 20 above the actions. Native draws it 290
1136
+ wide over actions of 288, a point further out on each side. */
1072
1137
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Body {
1073
- --control-size-3xl: var(--dialog-alert-field-height, 52px);
1074
- margin-inline: 0;
1075
- padding: 0 0 9px;
1138
+ --control-size-3xl: var(--dialog-alert-field-height, 48px);
1139
+ margin-inline: -1px;
1140
+ padding: 0 0 10px;
1076
1141
  --dialog-steps-gutter: 0px;
1077
1142
  }
1078
1143
 
@@ -1094,13 +1159,13 @@
1094
1159
  overflow-wrap: anywhere;
1095
1160
  }
1096
1161
 
1097
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]),
1098
- :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] {
1162
+ /* Two actions stand side by side; three or more stack, as native lays them out ("Unsaved Changes", 27.2). */
1163
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))), :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] {
1099
1164
  flex-flow: row wrap;
1100
1165
  gap: 10px 16px;
1101
1166
  }
1102
1167
 
1103
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > *, :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
1168
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > *, :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
1104
1169
  flex: 1 0 auto;
1105
1170
  width: auto;
1106
1171
  min-width: calc(50% - 8px);
@@ -1112,10 +1177,17 @@
1112
1177
  overflow-wrap: anywhere;
1113
1178
  }
1114
1179
 
1115
- /* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
1116
- about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
1180
+ /* Native alert actions are medium, the preferred one semibold (stems of 1.84 and 2.07pt at 17pt, against 1.45
1181
+ for regular text, 27.2), and a soft action and a field share the fill of the glass, about 13% of the label
1182
+ color in both themes (light 202 on 233, dark 60 on 32). The weight is set on the button itself: touch.css
1183
+ gives every filled phone button a semibold --button-font-weight outside the layers, where a component's
1184
+ value for it cannot reach. */
1117
1185
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
1118
- --button-font-weight: var(--dialog-alert-action-font-weight, 600);
1186
+ font-weight: var(--dialog-alert-action-font-weight, 510);
1187
+ }
1188
+
1189
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > [data-variant="solid"]:not([data-color="danger"]) {
1190
+ font-weight: var(--dialog-alert-preferred-font-weight, 590);
1119
1191
  }
1120
1192
 
1121
1193
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
@@ -1136,12 +1208,15 @@
1136
1208
  --input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
1137
1209
  }
1138
1210
 
1139
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
1140
- -moz-column-gap: var(--dialog-alert-action-gap, 8px);
1141
- column-gap: var(--dialog-alert-action-gap, 8px);
1211
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer {
1212
+ gap: var(--dialog-alert-action-gap, 8px);
1213
+ }
1214
+
1215
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
1216
+ gap: var(--dialog-alert-action-gap, 8px);
1142
1217
  }
1143
1218
 
1144
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
1219
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > * {
1145
1220
  min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
1146
1221
  }
1147
1222
 
@@ -1166,8 +1241,8 @@
1166
1241
  overflow: hidden;
1167
1242
  }
1168
1243
 
1169
- /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
1170
- the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
1244
+ /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the row of controls and the title
1245
+ are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
1171
1246
  row leaves it. */
1172
1247
  :where([data-plex-layout="phone"]) .BarHeading > * {
1173
1248
  max-width: 100%;
@@ -1201,17 +1276,14 @@
1201
1276
 
1202
1277
  /* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
1203
1278
  control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
1204
- edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
1205
- than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
1279
+ edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom; that fall is
1280
+ not drawn, the glass stays flat with its rim (mobile-materials.css, owner 10.11: no gradients). In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
1206
1281
  and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
1207
1282
  The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
1208
1283
  darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
1209
1284
  bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
1210
1285
  155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
1211
1286
  round button read as an oval (owner, 08.11). */
1212
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
1213
- --mobile-glass-sheen: linear-gradient(light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 6%)), transparent 6px, transparent calc(100% - 8px), light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 4%)));
1214
- }
1215
1287
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
1216
1288
  --mobile-glass-shadow: 0 4px 12px rgb(0 0 0 / 2%), 0 0 0 0.5px rgb(0 0 0 / 12%), 1.25px 0 0 -0.75px rgb(0 0 0 / 16%), -1.25px 0 0 -0.75px rgb(0 0 0 / 16%), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
1217
1289
  }
@@ -1406,19 +1478,46 @@
1406
1478
 
1407
1479
  /* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
1408
1480
  the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
1409
- bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). */
1410
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
1481
+ bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
1482
+ same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
1483
+ native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. */
1484
+ :where([data-plex-layout="phone"]) .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
1411
1485
  --button-background-color: var(--toolbar-prominent-background);
1412
1486
  --button-background-color-hover: var(--toolbar-prominent-background-hover);
1413
1487
  --button-background-color-active: var(--toolbar-prominent-background-active);
1414
1488
  --button-text-color: var(--toolbar-prominent-color);
1415
1489
  }
1416
1490
 
1417
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
1491
+ :where([data-plex-layout="phone"]) .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
1418
1492
  background-image: var(--toolbar-prominent-sheen);
1419
1493
  box-shadow: var(--toolbar-prominent-shadow);
1420
1494
  }
1421
1495
 
1496
+ /* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
1497
+ a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
1498
+ Manually centred 35pt below it; owner 12.11, «нет такого в iOS»). A footer is written with its main action
1499
+ last, where a desktop row ends; Dialog.Footer turns the order in the page on a phone. Beside a solid action a
1500
+ soft, outline or ghost one takes the iOS tint (--color-accent, as the prominent bar button) or red for danger, at the
1501
+ regular weight; a disabled one keeps the Button's disabled color. */
1502
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]) {
1503
+ font-weight: var(--font-weight-normal);
1504
+ }
1505
+
1506
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where(:not([data-disabled])) {
1507
+ --button-text-color: var(--color-text-accent);
1508
+ --button-text-color-hover: var(--color-text-accent);
1509
+ }
1510
+
1511
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
1512
+ --button-text-color: var(--color-text-danger);
1513
+ --button-text-color-hover: var(--color-text-danger);
1514
+ }
1515
+
1516
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"])::before {
1517
+ background: none;
1518
+ box-shadow: none;
1519
+ }
1520
+
1422
1521
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
1423
1522
  min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
1424
1523
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
@@ -26,11 +26,11 @@
26
26
  padding-bottom: var(--empty-message-padding-bottom, 0px);
27
27
  }
28
28
 
29
- /* On a phone (touch.css, the iOS 27 empty state) the text keeps a further inset, and a message that fills
30
- a screen can put its buttons at the bottom of the screen and centre the rest in the space above them:
31
- auto margins above the content and above the buttons, with the same inset above both, so the buttons
32
- keep their distance from the text. A text link stays under the text. Outside the phone layout these
33
- rules do not apply, so a caller's own spacing and button widths stand. */
29
+ /* On a phone (touch.css, the kit's empty state) the text can keep a further inset, and a message that fills
30
+ a screen can place its buttons apart from the text: margins above the content and above the buttons and
31
+ an inset above both, so the buttons keep their distance from the text (touch.css sets them across the
32
+ screen at its bottom, as iOS 27 does, the text centred above). A text link stays under the text. Outside
33
+ the phone layout these rules do not apply, so a caller's own spacing and button widths stand. */
34
34
  @media (max-width: 767px) {
35
35
  .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :is(.Title, .Description) {
36
36
  padding-inline: var(--empty-message-text-inset, 0px);
@@ -92,7 +92,7 @@
92
92
  margin-bottom: calc(var(--spacing) * 1);
93
93
  font-size: var(--font-text-sm-size);
94
94
  line-height: var(--font-text-sm-line-height);
95
- letter-spacing: normal;
95
+ letter-spacing: var(--font-sans-tracking);
96
96
  font-weight: var(--font-weight-semibold);
97
97
  }
98
98
 
@@ -101,7 +101,7 @@
101
101
  font-size: var(--empty-message-compact-description-size, var(--font-text-sm-size));
102
102
  font-weight: var(--font-weight-normal);
103
103
  line-height: var(--empty-message-compact-description-leading, var(--font-text-sm-line-height));
104
- letter-spacing: normal;
104
+ letter-spacing: var(--font-sans-tracking);
105
105
  }
106
106
 
107
107
  .EmptyMessage[data-size="sm"] .ActionRow {
@@ -187,7 +187,7 @@
187
187
  font-size: var(--empty-message-description-size, var(--font-text-sm-size));
188
188
  font-weight: var(--empty-message-description-weight, var(--font-weight-normal));
189
189
  line-height: var(--empty-message-description-leading, var(--font-text-sm-line-height));
190
- letter-spacing: var(--empty-message-description-tracking, normal);
190
+ letter-spacing: var(--empty-message-description-tracking, var(--font-sans-tracking));
191
191
  text-align: center;
192
192
  text-wrap: pretty;
193
193
  }.ActionRow {
@@ -209,6 +209,10 @@
209
209
  --button-font-size-xl: var(--empty-message-action-font-size, var(--control-font-size-md));
210
210
  --button-line-height-xl: var(--empty-message-action-line-height, 1);
211
211
  --button-gutter-xl: var(--empty-message-action-gutter, var(--control-gutter-lg));
212
+ }/* Every action button, a plain (ghost) one too, takes the message's label weight where it sets one (a phone: the
213
+ kit's 17 Medium for its Primary and its Tertiary). Set on the button, as touch.css sets a filled button's
214
+ Semibold on the button itself. */.EmptyMessage:not([data-size="sm"]) .ActionRow > [data-variant] {
215
+ font-weight: var(--empty-message-action-font-weight, var(--button-font-weight));
212
216
  }.EmptyMessage:not([data-size="sm"]) .ActionRow:has(> :nth-child(2)) {
213
217
  flex-direction: var(--empty-message-multi-direction, row);
214
218
  align-self: var(--empty-message-multi-align, auto);