@plexui/styles 0.1.46 → 0.2.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 (34) 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 +16 -14
  8. package/dist/es/components/DateRangePicker/Calendar.module.css +16 -68
  9. package/dist/es/components/Dialog/Dialog.module.css +98 -59
  10. package/dist/es/components/Field/Field.module.css +56 -22
  11. package/dist/es/components/Input/Input.module.css +100 -18
  12. package/dist/es/components/Menu/Menu.module.css +30 -34
  13. package/dist/es/components/Page/Page.module.css +38 -0
  14. package/dist/es/components/Popover/Popover.module.css +10 -11
  15. package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
  16. package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
  17. package/dist/es/components/Select/Select.module.css +300 -38
  18. package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
  19. package/dist/es/components/Sidebar/Sidebar.module.css +4 -2
  20. package/dist/es/components/Slider/Slider.module.css +46 -2
  21. package/dist/es/components/Sortable/Sortable.module.css +3 -2
  22. package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
  23. package/dist/es/components/Stepper/Stepper.module.css +7 -4
  24. package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
  25. package/dist/es/components/Switch/Switch.module.css +6 -5
  26. package/dist/es/components/TabBar/TabBar.module.css +128 -12
  27. package/dist/es/components/Tabs/Tabs.module.css +238 -43
  28. package/dist/es/components/Toast/Toast.module.css +4 -3
  29. package/dist/es/components/Toolbar/Toolbar.module.css +92 -58
  30. package/dist/es/styles/mobile-materials.css +65 -24
  31. package/dist/es/styles/touch.css +321 -121
  32. package/dist/es/styles/variables-components.css +236 -124
  33. package/package.json +1 -1
  34. package/dist/es/components/StatCard/StatCard.module.css +0 -234
@@ -325,9 +325,10 @@
325
325
  Stack=1 0:11292): corners 24, padding 12 above and below and 14 at the sides, a 10px gap, the
326
326
  title at 15/17 semibold and the description at 15/18. The kit's -0.23 tracking of 15pt text is
327
327
  left to the system font, which tracks it itself. It keeps its own width and opaque surface, not
328
- the banner's glass and width. Its buttons are drawn as a medium phone Button (touch.css): a 34px
329
- capsule, 15/20 regular, gutter 14, its 44px target reaching 5px past it into the padding, so a
330
- one-line toast with a button is 58 high. */@media (max-width: 767px) {
328
+ the banner's glass and width. Its buttons are the 34px capsule of a medium phone Button (touch.css) with
329
+ the banner's 15/20 regular label and a 14px gutter (a medium Button's 17pt label would outsize the
330
+ banner's text), its 44px target reaching 5px past it into the padding, so a one-line toast with a
331
+ button is 58 high. */@media (max-width: 767px) {
331
332
  .Toast[data-styled="true"] {
332
333
  gap: 10px !important;
333
334
  padding: 12px 14px !important;
@@ -196,14 +196,23 @@
196
196
  grid-template-areas: "leading content";
197
197
  }
198
198
 
199
- /* Large title: the controls stay in their own row and the title sits below it. */
199
+ /* Large title: the controls stay in their own row and the title sits below it. The row keeps the controls'
200
+ height with none in it, as Settings' title stands where Files' does under its buttons. With a subtitle the
201
+ title stands 3pt lower, as UIKit sets one with navigationItem.subtitle on iOS 27.2 (title-uikit-subtitle:
202
+ «F» from 130). */
200
203
  .Toolbar[data-title-style="large"] {
201
204
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
205
+ --toolbar-large-title-row-gap: var(--toolbar-large-title-gap);
202
206
  grid-template-areas:
203
207
  "leading . trailing"
204
208
  "heading heading heading";
205
209
  grid-template-columns: max-content minmax(0, 1fr) max-content;
206
- row-gap: var(--toolbar-large-title-gap);
210
+ grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
211
+ row-gap: var(--toolbar-large-title-row-gap);
212
+ }
213
+
214
+ .Toolbar[data-title-style="large"]:has(> .Heading > .Subtitle) {
215
+ --toolbar-large-title-row-gap: calc(var(--toolbar-large-title-gap) + 3px);
207
216
  }
208
217
 
209
218
  .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]),
@@ -256,8 +265,8 @@
256
265
  grid-area: content;
257
266
  }
258
267
 
259
- /* Several buttons in one capsule (iOS 26 kit Buttons Top and Bottom: 2 to 6 Symbols). The capsule
260
- carries the shared mobile glass; the buttons inside it stay clear. */
268
+ /* Several buttons in one capsule, as iOS 27.2 groups a bar's symbols: 10 apart with 1 at the ends on top, 8 apart
269
+ with 2 at the ends at the bottom. The capsule carries the shared mobile glass; the buttons inside it stay clear. */
261
270
  .Group {
262
271
  gap: var(--toolbar-group-gap);
263
272
  padding-inline: var(--toolbar-group-padding);
@@ -298,6 +307,17 @@
298
307
  --button-font-weight: var(--toolbar-label-font-weight);
299
308
  }
300
309
 
310
+ /* The label's weight on the button itself: touch.css gives a filled phone button a semibold --button-font-weight
311
+ outside the layers, which outweighs the one above. iOS 27.2 sets a bar's text in medium and a prominent
312
+ (solid) one in semibold. */
313
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]) {
314
+ font-weight: var(--toolbar-label-font-weight);
315
+ }
316
+
317
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"])[data-variant="solid"] {
318
+ font-weight: var(--toolbar-label-prominent-font-weight);
319
+ }
320
+
301
321
  /* A bar symbol, sized by its drawn glyph (--toolbar-icon-size: the kit's 29pt box, about 22pt of ink). */
302
322
  .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action]) {
303
323
  --button-icon-size: var(--toolbar-icon-size);
@@ -308,11 +328,12 @@
308
328
  --button-icon-size: var(--toolbar-icon-size-sm);
309
329
  }
310
330
 
311
- .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
331
+ /* A bar's text buttons keep the bar's gutters, a disabled ButtonLink too (a span with the link role). */
332
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
312
333
  --button-gutter: var(--toolbar-label-gutter);
313
334
  }
314
335
 
315
- .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
336
+ .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
316
337
  --button-gutter: var(--toolbar-bottom-label-gutter);
317
338
  }
318
339
 
@@ -427,10 +448,12 @@
427
448
  white-space: nowrap;
428
449
  }
429
450
 
430
- /* Two lines: title 15/20 at 6px, subtitle 12/16 below it. The title of a Dialog's bar can sit in a wrapper of
431
- its own (one that takes focus when the Sheet opens). */
451
+ /* Two lines: title 15/20 at 6px, subtitle 12/16 below it, their baselines where iOS 27.2 sets them (ref-app
452
+ nav-subtitle, plan 178 block 15: 82.17 and 97.17, a third of a point above the row's middle; the kit's 1px
453
+ down left both 1.33 low). The title of a Dialog's bar can sit in a wrapper of its own (one that takes focus
454
+ when the Sheet opens). */
432
455
  .Heading:has(> .Subtitle) {
433
- transform: translateY(1px);
456
+ transform: translateY(-0.33px);
434
457
  }
435
458
 
436
459
  .Heading:has(> .Subtitle) .Title {
@@ -486,7 +509,10 @@
486
509
  line-height: var(--toolbar-medium-title-line-height);
487
510
  }
488
511
 
489
- /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet below its grabber. */
512
+ /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. iOS 27.2
513
+ sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
514
+ (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
515
+ PlexUI Sheet keeps one height. */
490
516
  .Toolbar[data-host="page"][data-placement="top"] {
491
517
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
492
518
  position: absolute;
@@ -537,10 +563,17 @@
537
563
  pointer-events: auto;
538
564
  }
539
565
 
566
+ /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152,
567
+ content 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
540
568
  .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
569
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
541
570
  transform: translateY(calc(-1 * var(--toolbar-large-title-scroll)));
542
- -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
543
- mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
571
+ -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
572
+ mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
573
+ }
574
+
575
+ .Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
576
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
544
577
  }
545
578
 
546
579
  /* The inline title fades in over the last 8px of the large title's way. */
@@ -567,7 +600,7 @@
567
600
  justify-content: center;
568
601
  font-size: var(--toolbar-title-compact-font-size);
569
602
  line-height: var(--toolbar-title-compact-line-height);
570
- transform: translateY(1px);
603
+ transform: translateY(-0.33px);
571
604
  }
572
605
 
573
606
  .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
@@ -597,26 +630,10 @@
597
630
  border-radius: inherit;
598
631
  }
599
632
 
600
- /* Grabber (iOS 26 kit Grabber: 36 × 5 at 5px). */
601
- .Toolbar[data-host="dialog"][data-placement="top"]::after {
602
- position: absolute;
603
- top: 5px;
604
- left: calc(50% - 18px);
605
- width: 36px;
606
- height: 5px;
607
- border-radius: var(--radius-full);
608
- background: var(--mobile-grabber-color, var(--color-background-secondary-soft-alpha));
609
- content: "";
610
- }
611
-
612
633
  :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
613
634
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
614
635
  }
615
636
 
616
- :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"]::after {
617
- display: none;
618
- }
619
-
620
637
  .Toolbar[data-host="dialog"][data-placement="bottom"] {
621
638
  --toolbar-background: var(--dialog-panel-background);
622
639
  }
@@ -814,14 +831,23 @@
814
831
  grid-template-areas: "leading content";
815
832
  }
816
833
 
817
- /* Large title: the controls stay in their own row and the title sits below it. */
834
+ /* Large title: the controls stay in their own row and the title sits below it. The row keeps the controls'
835
+ height with none in it, as Settings' title stands where Files' does under its buttons. With a subtitle the
836
+ title stands 3pt lower, as UIKit sets one with navigationItem.subtitle on iOS 27.2 (title-uikit-subtitle:
837
+ «F» from 130). */
818
838
  :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"] {
819
839
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
840
+ --toolbar-large-title-row-gap: var(--toolbar-large-title-gap);
820
841
  grid-template-areas:
821
842
  "leading . trailing"
822
843
  "heading heading heading";
823
844
  grid-template-columns: max-content minmax(0, 1fr) max-content;
824
- row-gap: var(--toolbar-large-title-gap);
845
+ grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
846
+ row-gap: var(--toolbar-large-title-row-gap);
847
+ }
848
+
849
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"]:has(> .Heading > .Subtitle) {
850
+ --toolbar-large-title-row-gap: calc(var(--toolbar-large-title-gap) + 3px);
825
851
  }
826
852
 
827
853
  :where([data-plex-layout="phone"]) .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]), :where([data-plex-layout="phone"]) .Toolbar:has(> .Heading > .Subtitle) {
@@ -873,8 +899,8 @@
873
899
  grid-area: content;
874
900
  }
875
901
 
876
- /* Several buttons in one capsule (iOS 26 kit Buttons Top and Bottom: 2 to 6 Symbols). The capsule
877
- carries the shared mobile glass; the buttons inside it stay clear. */
902
+ /* Several buttons in one capsule, as iOS 27.2 groups a bar's symbols: 10 apart with 1 at the ends on top, 8 apart
903
+ with 2 at the ends at the bottom. The capsule carries the shared mobile glass; the buttons inside it stay clear. */
878
904
  :where([data-plex-layout="phone"]) .Group {
879
905
  gap: var(--toolbar-group-gap);
880
906
  padding-inline: var(--toolbar-group-padding);
@@ -915,6 +941,17 @@
915
941
  --button-font-weight: var(--toolbar-label-font-weight);
916
942
  }
917
943
 
944
+ /* The label's weight on the button itself: touch.css gives a filled phone button a semibold --button-font-weight
945
+ outside the layers, which outweighs the one above. iOS 27.2 sets a bar's text in medium and a prominent
946
+ (solid) one in semibold. */
947
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]) {
948
+ font-weight: var(--toolbar-label-font-weight);
949
+ }
950
+
951
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"])[data-variant="solid"] {
952
+ font-weight: var(--toolbar-label-prominent-font-weight);
953
+ }
954
+
918
955
  /* A bar symbol, sized by its drawn glyph (--toolbar-icon-size: the kit's 29pt box, about 22pt of ink). */
919
956
  :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action]) {
920
957
  --button-icon-size: var(--toolbar-icon-size);
@@ -925,11 +962,12 @@
925
962
  --button-icon-size: var(--toolbar-icon-size-sm);
926
963
  }
927
964
 
928
- :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
965
+ /* A bar's text buttons keep the bar's gutters, a disabled ButtonLink too (a span with the link role). */
966
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
929
967
  --button-gutter: var(--toolbar-label-gutter);
930
968
  }
931
969
 
932
- :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
970
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
933
971
  --button-gutter: var(--toolbar-bottom-label-gutter);
934
972
  }
935
973
 
@@ -1044,10 +1082,12 @@
1044
1082
  white-space: nowrap;
1045
1083
  }
1046
1084
 
1047
- /* Two lines: title 15/20 at 6px, subtitle 12/16 below it. The title of a Dialog's bar can sit in a wrapper of
1048
- its own (one that takes focus when the Sheet opens). */
1085
+ /* Two lines: title 15/20 at 6px, subtitle 12/16 below it, their baselines where iOS 27.2 sets them (ref-app
1086
+ nav-subtitle, plan 178 block 15: 82.17 and 97.17, a third of a point above the row's middle; the kit's 1px
1087
+ down left both 1.33 low). The title of a Dialog's bar can sit in a wrapper of its own (one that takes focus
1088
+ when the Sheet opens). */
1049
1089
  :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle) {
1050
- transform: translateY(1px);
1090
+ transform: translateY(-0.33px);
1051
1091
  }
1052
1092
 
1053
1093
  :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle) .Title {
@@ -1103,7 +1143,10 @@
1103
1143
  line-height: var(--toolbar-medium-title-line-height);
1104
1144
  }
1105
1145
 
1106
- /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet below its grabber. */
1146
+ /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. iOS 27.2
1147
+ sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
1148
+ (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
1149
+ PlexUI Sheet keeps one height. */
1107
1150
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"] {
1108
1151
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1109
1152
  position: absolute;
@@ -1154,10 +1197,17 @@
1154
1197
  pointer-events: auto;
1155
1198
  }
1156
1199
 
1200
+ /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152,
1201
+ content 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
1157
1202
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
1203
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
1158
1204
  transform: translateY(calc(-1 * var(--toolbar-large-title-scroll)));
1159
- -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
1160
- mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
1205
+ -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
1206
+ mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
1207
+ }
1208
+
1209
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
1210
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
1161
1211
  }
1162
1212
 
1163
1213
  /* The inline title fades in over the last 8px of the large title's way. */
@@ -1184,7 +1234,7 @@
1184
1234
  justify-content: center;
1185
1235
  font-size: var(--toolbar-title-compact-font-size);
1186
1236
  line-height: var(--toolbar-title-compact-line-height);
1187
- transform: translateY(1px);
1237
+ transform: translateY(-0.33px);
1188
1238
  }
1189
1239
 
1190
1240
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
@@ -1214,26 +1264,10 @@
1214
1264
  border-radius: inherit;
1215
1265
  }
1216
1266
 
1217
- /* Grabber (iOS 26 kit Grabber: 36 × 5 at 5px). */
1218
- :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="top"]::after {
1219
- position: absolute;
1220
- top: 5px;
1221
- left: calc(50% - 18px);
1222
- width: 36px;
1223
- height: 5px;
1224
- border-radius: var(--radius-full);
1225
- background: var(--mobile-grabber-color, var(--color-background-secondary-soft-alpha));
1226
- content: "";
1227
- }
1228
-
1229
1267
  :where([data-plex-layout="phone"]) :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
1230
1268
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1231
1269
  }
1232
1270
 
1233
- :where([data-plex-layout="phone"]) :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"]::after {
1234
- display: none;
1235
- }
1236
-
1237
1271
  :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="bottom"] {
1238
1272
  --toolbar-background: var(--dialog-panel-background);
1239
1273
  }
@@ -1,8 +1,11 @@
1
1
  /* Mobile glass shared by Back, Close, More and the phone toolbar: the Liquid Glass of the iOS 27 kit's bar
2
2
  buttons (Toolbars 507:25993, Buttons - 44pt 5432:23133). A translucent fill that lifts a dark backdrop and
3
3
  dims a white one a little, a hairline outline with darker sides that keeps the capsule visible on any
4
- background, a faint shadow, a sheen darker at the top and lighter at the bottom, and a thin rim of light
5
- along the top and the bottom edges that fades out at the sides. The kit draws that rim on the top-left and
4
+ background, a faint shadow, and a thin rim of light along the top and the bottom edges that fades out at the
5
+ sides. No gradient across it (owner 10.11, again: «раз и навсегда»): native glass is flat from top to bottom
6
+ (ref-app glass-bands, iOS 27.2, @3x: bar and content buttons on white, the grouped background, gray, black,
7
+ blue and orange; light f9 on white and f3f3f8 on f2f2f7 all the way down, dark 1f on black), so the old
8
+ sheen, black 3% at the top and white 45% at the bottom, is gone. The kit draws that rim on the top-left and
6
9
  bottom-right corners; native glass lights the top and bottom alike and none of the sides (Photos Close,
7
10
  IMG_5453; Calendar checkmark, IMG_5433; 08.11), and a rim on one diagonal made a round button read as an
8
11
  oval. A deeper shadow comes once content is under the control. */
@@ -13,13 +16,18 @@
13
16
  iOS 26 screens rather than the kit's flattened layers (about 10 on black): the glass lifts what is under it
14
17
  by white at about 12.5%, 0 to 31/32 (Mail, iOS2 IMG_5530) and the 28/28/29 sheet to 57/57/59
15
18
  (IMG_5523/5526), so it takes alpha-12. Hover and press add more of the same; no native reference. */
16
- --mobile-glass-sheen: linear-gradient(light-dark(rgb(0 0 0 / 3%), rgb(0 0 0 / 6%)), transparent 50%, light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 3%)));
19
+ /* The rim (glass-bands, @3x): light, white along the top and the bottom, 2px of ff over an f9 fill; dark, 59 and
20
+ 49 over a 1f fill, white at about 24%, then a fall of a few levels within 2pt that is not drawn. */
21
+ --mobile-glass-sheen: none;
17
22
  /* The kit's edge in light: a 0.5px outline all round and the sides 0.5px darker, with a 2% shadow 8px
18
23
  down. The kit burns the outline in (#e8e8e8 and #d0d0d0, linear burn), so it darkens whatever lies
19
24
  under it by 23 and 47 levels: native glass on a page dimmed to 194 shows its edge at 170 to 177
20
25
  (IMG_5533; plan 172). Black at 9% all round does the same on any background, where a fixed gray-100
21
26
  vanished on a gray page and read lighter than a darker one; the sides lie over it, so 10% more
22
27
  comes to 18% there. Dark glass has neither in native frames, only its rim. */
28
+ /* Measured again on iOS 27.2 (glass-bands, @3x): a bar button over white has its top and bottom at e7 and e3
29
+ (black 9 to 11%) and its sides at b6 between e7 and ea, a darker core of about 29%; content glass d0 (18%).
30
+ The bar's buttons take the bar's: the sides 20% over the 9% ring, 27% together. */
23
31
  /* The kit's Glass Effect frosts at a radius of 6 (iOS 27 Buttons - 44pt, 5720:29596; refraction 0.7,
24
32
  depth 30, light 0.25 are not drawn: CSS has no lens for a backdrop). Native glass frosts much harder:
25
33
  black 17pt text under a bottom capsule comes to 228 to 237 on 245 to 250 (Mail IMG_5551, Phone
@@ -32,6 +40,10 @@
32
40
  The knob grows by scale, so the lengths below are the kit's divided by it. The lens's refraction (0.8,
33
41
  depth 7) has no CSS equivalent. */
34
42
  --mobile-knob-lens-scale: calc(58 / 38) calc(38 / 24);
43
+ /* A switch's 37 x 24 knob (touch.css) held down: native iOS 27.2 draws the lens 59 x 39.5 at its outer
44
+ ring, on the knob's centre (a SwiftUI Toggle held in the simulator), the kit 58 x 38. The lens keeps the
45
+ kit's 58 x 38 over the narrower knob. */
46
+ --mobile-switch-knob-lens-scale: calc(58 / 37) calc(38 / 24);
35
47
  --mobile-knob-lens-background: rgb(255 255 255 / 9%);
36
48
  --mobile-knob-lens-shadow: 0 4.5px 8px rgb(0 0 0 / 12%), 0 0 0 0.33px rgb(0 0 0 / 20%), inset 0 0.5px 0 rgb(255 255 255 / 16%), inset 0 -0.5px 0 rgb(255 255 255 / 16%);
37
49
  /* Dark menus and Select lists are glass, as native iOS 26 pop-up menus and popovers are: the glass
@@ -40,11 +52,18 @@
40
52
  the menu (37 by 24pt, IMG_5524) spreads to 55 by 37pt at half its height and keeps a third of its
41
53
  strength (IMG_5525), a blur of 18 (14 to 20 by the width, the height and the peak); text under it is
42
54
  gone. A blur of 10 left the page's text at 1.5 to 3:1 against its background, readable (plan 176).
43
- Light menus keep the elevated surface; the blur applies in dark only. */
55
+ Light menus are glass too in iOS 27.2 (ref-app menus, block 8, @3x): 254 over a white page, 249 to 252 over
56
+ the grouped 242, 227 to 236 over the 194 of a context menu's dimming; white at 65% comes to 255, 250 and 234,
57
+ as the glass Alert does. The page under them is blurred the same. */
44
58
  --menu-mobile-backdrop-filter: blur(18px);
45
- /* A popover takes the material of the menus: iOS 26 presents an action sheet from its source in the same
46
- dark glass (iOS2 IMG_5528: a card of 44 under it at 65 to 69, the sheet of 28 at 55). */
47
- --popover-mobile-background: var(--menu-mobile-background);
59
+ /* A popover is the glass of the menus in both themes, as iOS 27.2 draws one and an action sheet from its source
60
+ (ref-app popover, popover-row, popover-swiftui, actionsheet-source, block 14, @3x): in light 250 to 253 over
61
+ the grouped 242 and the white cells, as white at 65% comes to; in dark 54 over a cell of 28 and 35 over black,
62
+ as white at 12% comes to (iOS 26 drew the same dark glass, iOS2 IMG_5528). The pair is written out, not taken
63
+ from --menu-mobile-background: a var() declared here resolves here and would not follow a nested
64
+ [data-theme] root. The shadow and the edge are the menus' (--menu-shadow, touch.css, which the panel falls back
65
+ to in Popover.module.css; declared on the root, it keeps the root's theme as the menus' does): 20 levels
66
+ under the panel on a white cell, gone within 38pt. */
48
67
  --popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
49
68
  /* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
50
69
  08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
@@ -54,7 +73,10 @@
54
73
  --dialog-alert-backdrop-filter: blur(10px);
55
74
  --dialog-alert-shadow: var(--mobile-glass-shadow-raised);
56
75
  /* Native frames take precedence over the kit (plan 162): the message is the secondary label under a primary
57
- title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. */
76
+ title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. In dark
77
+ iOS 27.2 sets it dimmer, 109 on the glass of 32, about 3.1:1; the secondary label keeps 143, about 5:1, over
78
+ the 4.5:1 that WCAG and Apple's guidelines ask of text this size. Light stays below it, about 3.5:1, as
79
+ native draws it (plan 162). */
58
80
  --dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
59
81
  /* A soft action and a field share one fill: Files 203 on 237 in light, 15% of black; dark 73 on 46. */
60
82
  }
@@ -63,11 +85,11 @@
63
85
  --mobile-glass-background-hover: color-mix(in oklab, var(--gray-75) 65%, transparent);
64
86
  --mobile-glass-background-active: color-mix(in oklab, var(--gray-75) 75%, transparent);
65
87
  --mobile-glass-rim: rgb(255 255 255 / 100%);
66
- --mobile-glass-outline: 1.25px 0 0 -0.75px rgb(0 0 0 / 10%), -1.25px 0 0 -0.75px rgb(0 0 0 / 10%), 0 0 0 0.5px rgb(0 0 0 / 9%);
88
+ --mobile-glass-outline: 1.25px 0 0 -0.75px rgb(0 0 0 / 20%), -1.25px 0 0 -0.75px rgb(0 0 0 / 20%), 0 0 0 0.5px rgb(0 0 0 / 9%);
67
89
  --mobile-glass-shadow: 0 8px 15px rgb(0 0 0 / 2%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
68
90
  --mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 12%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
69
- --mobile-grabber-color: rgb(0 0 0 / 20%);
70
- --menu-mobile-background: var(--color-surface-elevated);
91
+ --menu-mobile-background: rgb(255 255 255 / 65%);
92
+ --popover-mobile-background: rgb(255 255 255 / 65%);
71
93
  --dialog-alert-background: rgb(255 255 255 / 65%);
72
94
  --dialog-alert-fill: var(--alpha-15)
73
95
  }
@@ -75,12 +97,12 @@
75
97
  --mobile-glass-background: var(--alpha-12);
76
98
  --mobile-glass-background-hover: var(--alpha-16);
77
99
  --mobile-glass-background-active: var(--alpha-20);
78
- --mobile-glass-rim: rgb(255 255 255 / 30%);
100
+ --mobile-glass-rim: rgb(255 255 255 / 24%);
79
101
  --mobile-glass-outline: 1.25px 0 0 -0.75px transparent, -1.25px 0 0 -0.75px transparent, 0 0 0 0.5px transparent;
80
102
  --mobile-glass-shadow: 0 8px 15px transparent, var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
81
103
  --mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 8%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
82
- --mobile-grabber-color: rgb(255 255 255 / 20%);
83
104
  --menu-mobile-background: var(--alpha-12);
105
+ --popover-mobile-background: var(--alpha-12);
84
106
  --dialog-alert-background: var(--alpha-12);
85
107
  --dialog-alert-fill: var(--alpha-12)
86
108
  }
@@ -91,13 +113,18 @@
91
113
  iOS 26 screens rather than the kit's flattened layers (about 10 on black): the glass lifts what is under it
92
114
  by white at about 12.5%, 0 to 31/32 (Mail, iOS2 IMG_5530) and the 28/28/29 sheet to 57/57/59
93
115
  (IMG_5523/5526), so it takes alpha-12. Hover and press add more of the same; no native reference. */
94
- --mobile-glass-sheen: linear-gradient(light-dark(rgb(0 0 0 / 3%), rgb(0 0 0 / 6%)), transparent 50%, light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 3%)));
116
+ /* The rim (glass-bands, @3x): light, white along the top and the bottom, 2px of ff over an f9 fill; dark, 59 and
117
+ 49 over a 1f fill, white at about 24%, then a fall of a few levels within 2pt that is not drawn. */
118
+ --mobile-glass-sheen: none;
95
119
  /* The kit's edge in light: a 0.5px outline all round and the sides 0.5px darker, with a 2% shadow 8px
96
120
  down. The kit burns the outline in (#e8e8e8 and #d0d0d0, linear burn), so it darkens whatever lies
97
121
  under it by 23 and 47 levels: native glass on a page dimmed to 194 shows its edge at 170 to 177
98
122
  (IMG_5533; plan 172). Black at 9% all round does the same on any background, where a fixed gray-100
99
123
  vanished on a gray page and read lighter than a darker one; the sides lie over it, so 10% more
100
124
  comes to 18% there. Dark glass has neither in native frames, only its rim. */
125
+ /* Measured again on iOS 27.2 (glass-bands, @3x): a bar button over white has its top and bottom at e7 and e3
126
+ (black 9 to 11%) and its sides at b6 between e7 and ea, a darker core of about 29%; content glass d0 (18%).
127
+ The bar's buttons take the bar's: the sides 20% over the 9% ring, 27% together. */
101
128
  /* The kit's Glass Effect frosts at a radius of 6 (iOS 27 Buttons - 44pt, 5720:29596; refraction 0.7,
102
129
  depth 30, light 0.25 are not drawn: CSS has no lens for a backdrop). Native glass frosts much harder:
103
130
  black 17pt text under a bottom capsule comes to 228 to 237 on 245 to 250 (Mail IMG_5551, Phone
@@ -110,6 +137,10 @@
110
137
  The knob grows by scale, so the lengths below are the kit's divided by it. The lens's refraction (0.8,
111
138
  depth 7) has no CSS equivalent. */
112
139
  --mobile-knob-lens-scale: calc(58 / 38) calc(38 / 24);
140
+ /* A switch's 37 x 24 knob (touch.css) held down: native iOS 27.2 draws the lens 59 x 39.5 at its outer
141
+ ring, on the knob's centre (a SwiftUI Toggle held in the simulator), the kit 58 x 38. The lens keeps the
142
+ kit's 58 x 38 over the narrower knob. */
143
+ --mobile-switch-knob-lens-scale: calc(58 / 37) calc(38 / 24);
113
144
  --mobile-knob-lens-background: rgb(255 255 255 / 9%);
114
145
  --mobile-knob-lens-shadow: 0 4.5px 8px rgb(0 0 0 / 12%), 0 0 0 0.33px rgb(0 0 0 / 20%), inset 0 0.5px 0 rgb(255 255 255 / 16%), inset 0 -0.5px 0 rgb(255 255 255 / 16%);
115
146
  /* Dark menus and Select lists are glass, as native iOS 26 pop-up menus and popovers are: the glass
@@ -118,11 +149,18 @@
118
149
  the menu (37 by 24pt, IMG_5524) spreads to 55 by 37pt at half its height and keeps a third of its
119
150
  strength (IMG_5525), a blur of 18 (14 to 20 by the width, the height and the peak); text under it is
120
151
  gone. A blur of 10 left the page's text at 1.5 to 3:1 against its background, readable (plan 176).
121
- Light menus keep the elevated surface; the blur applies in dark only. */
152
+ Light menus are glass too in iOS 27.2 (ref-app menus, block 8, @3x): 254 over a white page, 249 to 252 over
153
+ the grouped 242, 227 to 236 over the 194 of a context menu's dimming; white at 65% comes to 255, 250 and 234,
154
+ as the glass Alert does. The page under them is blurred the same. */
122
155
  --menu-mobile-backdrop-filter: blur(18px);
123
- /* A popover takes the material of the menus: iOS 26 presents an action sheet from its source in the same
124
- dark glass (iOS2 IMG_5528: a card of 44 under it at 65 to 69, the sheet of 28 at 55). */
125
- --popover-mobile-background: var(--menu-mobile-background);
156
+ /* A popover is the glass of the menus in both themes, as iOS 27.2 draws one and an action sheet from its source
157
+ (ref-app popover, popover-row, popover-swiftui, actionsheet-source, block 14, @3x): in light 250 to 253 over
158
+ the grouped 242 and the white cells, as white at 65% comes to; in dark 54 over a cell of 28 and 35 over black,
159
+ as white at 12% comes to (iOS 26 drew the same dark glass, iOS2 IMG_5528). The pair is written out, not taken
160
+ from --menu-mobile-background: a var() declared here resolves here and would not follow a nested
161
+ [data-theme] root. The shadow and the edge are the menus' (--menu-shadow, touch.css, which the panel falls back
162
+ to in Popover.module.css; declared on the root, it keeps the root's theme as the menus' does): 20 levels
163
+ under the panel on a white cell, gone within 38pt. */
126
164
  --popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
127
165
  /* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
128
166
  08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
@@ -132,7 +170,10 @@
132
170
  --dialog-alert-backdrop-filter: blur(10px);
133
171
  --dialog-alert-shadow: var(--mobile-glass-shadow-raised);
134
172
  /* Native frames take precedence over the kit (plan 162): the message is the secondary label under a primary
135
- title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. */
173
+ title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. In dark
174
+ iOS 27.2 sets it dimmer, 109 on the glass of 32, about 3.1:1; the secondary label keeps 143, about 5:1, over
175
+ the 4.5:1 that WCAG and Apple's guidelines ask of text this size. Light stays below it, about 3.5:1, as
176
+ native draws it (plan 162). */
136
177
  --dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
137
178
  /* A soft action and a field share one fill: Files 203 on 237 in light, 15% of black; dark 73 on 46. */
138
179
  }
@@ -141,11 +182,11 @@
141
182
  --mobile-glass-background-hover: color-mix(in oklab, var(--gray-75) 65%, transparent);
142
183
  --mobile-glass-background-active: color-mix(in oklab, var(--gray-75) 75%, transparent);
143
184
  --mobile-glass-rim: rgb(255 255 255 / 100%);
144
- --mobile-glass-outline: 1.25px 0 0 -0.75px rgb(0 0 0 / 10%), -1.25px 0 0 -0.75px rgb(0 0 0 / 10%), 0 0 0 0.5px rgb(0 0 0 / 9%);
185
+ --mobile-glass-outline: 1.25px 0 0 -0.75px rgb(0 0 0 / 20%), -1.25px 0 0 -0.75px rgb(0 0 0 / 20%), 0 0 0 0.5px rgb(0 0 0 / 9%);
145
186
  --mobile-glass-shadow: 0 8px 15px rgb(0 0 0 / 2%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
146
187
  --mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 12%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
147
- --mobile-grabber-color: rgb(0 0 0 / 20%);
148
- --menu-mobile-background: var(--color-surface-elevated);
188
+ --menu-mobile-background: rgb(255 255 255 / 65%);
189
+ --popover-mobile-background: rgb(255 255 255 / 65%);
149
190
  --dialog-alert-background: rgb(255 255 255 / 65%);
150
191
  --dialog-alert-fill: var(--alpha-15)
151
192
  }
@@ -153,12 +194,12 @@
153
194
  --mobile-glass-background: var(--alpha-12);
154
195
  --mobile-glass-background-hover: var(--alpha-16);
155
196
  --mobile-glass-background-active: var(--alpha-20);
156
- --mobile-glass-rim: rgb(255 255 255 / 30%);
197
+ --mobile-glass-rim: rgb(255 255 255 / 24%);
157
198
  --mobile-glass-outline: 1.25px 0 0 -0.75px transparent, -1.25px 0 0 -0.75px transparent, 0 0 0 0.5px transparent;
158
199
  --mobile-glass-shadow: 0 8px 15px transparent, var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
159
200
  --mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 8%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
160
- --mobile-grabber-color: rgb(255 255 255 / 20%);
161
201
  --menu-mobile-background: var(--alpha-12);
202
+ --popover-mobile-background: var(--alpha-12);
162
203
  --dialog-alert-background: var(--alpha-12);
163
204
  --dialog-alert-fill: var(--alpha-12)
164
205
  }