@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
@@ -126,8 +126,20 @@
126
126
  --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
127
127
  }
128
128
 
129
- /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. */
130
- .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a)) {
129
+ /* A bottom bar on a band (glass, hard or solid) is the top bar turned over (owner 12.11 «паддинги явно не верные»):
130
+ above its items the top bar's air under them (10), its side items at the bar's gutter, where the top bar's
131
+ corner items and the edges of a grouped list's rows stand (16, 20 from 414), and under them that gutter or
132
+ the home indicator's inset less 6. The iOS 26 kit's 4 above and 28 at the sides are for rounds standing on
133
+ the content with no band: a soft bar keeps them, and so do a sheet's bar and a single wide action. */
134
+ .Toolbar[data-placement="bottom"]:not([data-background="soft"], [data-host="dialog"]):not(:has(> .Content[data-fill] > :where(button, a, [role="link"]))) {
135
+ --toolbar-bottom-gutter: var(--toolbar-gutter);
136
+ --toolbar-bottom-padding-top: var(--toolbar-padding-bottom);
137
+ --toolbar-bottom-padding-bottom: max(var(--toolbar-gutter), calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) - 6px));
138
+ }
139
+
140
+ /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. A disabled ButtonLink renders a span with the link
141
+ role. */
142
+ .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a, [role="link"])) {
131
143
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
132
144
  --toolbar-bottom-item-top: var(--toolbar-bottom-fill-padding-top);
133
145
  }
@@ -196,14 +208,23 @@
196
208
  grid-template-areas: "leading content";
197
209
  }
198
210
 
199
- /* Large title: the controls stay in their own row and the title sits below it. */
211
+ /* Large title: the controls stay in their own row and the title sits below it. The row keeps the controls'
212
+ height with none in it, as Settings' title stands where Files' does under its buttons. With a subtitle the
213
+ title stands 3pt lower, as UIKit sets one with navigationItem.subtitle on iOS 27.2 (title-uikit-subtitle:
214
+ «F» from 130). */
200
215
  .Toolbar[data-title-style="large"] {
201
216
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
217
+ --toolbar-large-title-row-gap: var(--toolbar-large-title-gap);
202
218
  grid-template-areas:
203
219
  "leading . trailing"
204
220
  "heading heading heading";
205
221
  grid-template-columns: max-content minmax(0, 1fr) max-content;
206
- row-gap: var(--toolbar-large-title-gap);
222
+ grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
223
+ row-gap: var(--toolbar-large-title-row-gap);
224
+ }
225
+
226
+ .Toolbar[data-title-style="large"]:has(> .Heading > .Subtitle) {
227
+ --toolbar-large-title-row-gap: calc(var(--toolbar-large-title-gap) + 3px);
207
228
  }
208
229
 
209
230
  .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]),
@@ -256,8 +277,8 @@
256
277
  grid-area: content;
257
278
  }
258
279
 
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. */
280
+ /* 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
281
+ with 2 at the ends at the bottom. The capsule carries the shared mobile glass; the buttons inside it stay clear. */
261
282
  .Group {
262
283
  gap: var(--toolbar-group-gap);
263
284
  padding-inline: var(--toolbar-group-padding);
@@ -298,6 +319,17 @@
298
319
  --button-font-weight: var(--toolbar-label-font-weight);
299
320
  }
300
321
 
322
+ /* The label's weight on the button itself: touch.css gives a filled phone button a semibold --button-font-weight
323
+ outside the layers, which outweighs the one above. iOS 27.2 sets a bar's text in medium and a prominent
324
+ (solid) one in semibold. */
325
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]) {
326
+ font-weight: var(--toolbar-label-font-weight);
327
+ }
328
+
329
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"])[data-variant="solid"] {
330
+ font-weight: var(--toolbar-label-prominent-font-weight);
331
+ }
332
+
301
333
  /* A bar symbol, sized by its drawn glyph (--toolbar-icon-size: the kit's 29pt box, about 22pt of ink). */
302
334
  .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action]) {
303
335
  --button-icon-size: var(--toolbar-icon-size);
@@ -308,11 +340,12 @@
308
340
  --button-icon-size: var(--toolbar-icon-size-sm);
309
341
  }
310
342
 
311
- .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
343
+ /* A bar's text buttons keep the bar's gutters, a disabled ButtonLink too (a span with the link role). */
344
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
312
345
  --button-gutter: var(--toolbar-label-gutter);
313
346
  }
314
347
 
315
- .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
348
+ .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
316
349
  --button-gutter: var(--toolbar-bottom-label-gutter);
317
350
  }
318
351
 
@@ -427,10 +460,12 @@
427
460
  white-space: nowrap;
428
461
  }
429
462
 
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). */
463
+ /* Two lines: title 15/20 at 6px, subtitle 12/16 below it, their baselines where iOS 27.2 sets them (ref-app
464
+ 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
465
+ 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
466
+ when the Sheet opens). */
432
467
  .Heading:has(> .Subtitle) {
433
- transform: translateY(1px);
468
+ transform: translateY(-0.33px);
434
469
  }
435
470
 
436
471
  .Heading:has(> .Subtitle) .Title {
@@ -486,7 +521,10 @@
486
521
  line-height: var(--toolbar-medium-title-line-height);
487
522
  }
488
523
 
489
- /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet below its grabber. */
524
+ /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. iOS 27.2
525
+ sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
526
+ (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
527
+ PlexUI Sheet keeps one height. */
490
528
  .Toolbar[data-host="page"][data-placement="top"] {
491
529
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
492
530
  position: absolute;
@@ -537,10 +575,17 @@
537
575
  pointer-events: auto;
538
576
  }
539
577
 
578
+ /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152,
579
+ content 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
540
580
  .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
581
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
541
582
  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));
583
+ -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));
584
+ 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));
585
+ }
586
+
587
+ .Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
588
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
544
589
  }
545
590
 
546
591
  /* The inline title fades in over the last 8px of the large title's way. */
@@ -567,7 +612,7 @@
567
612
  justify-content: center;
568
613
  font-size: var(--toolbar-title-compact-font-size);
569
614
  line-height: var(--toolbar-title-compact-line-height);
570
- transform: translateY(1px);
615
+ transform: translateY(-0.33px);
571
616
  }
572
617
 
573
618
  .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
@@ -597,26 +642,10 @@
597
642
  border-radius: inherit;
598
643
  }
599
644
 
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
645
  :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
613
646
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
614
647
  }
615
648
 
616
- :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"]::after {
617
- display: none;
618
- }
619
-
620
649
  .Toolbar[data-host="dialog"][data-placement="bottom"] {
621
650
  --toolbar-background: var(--dialog-panel-background);
622
651
  }
@@ -746,8 +775,20 @@
746
775
  --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
747
776
  }
748
777
 
749
- /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. */
750
- :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a)) {
778
+ /* A bottom bar on a band (glass, hard or solid) is the top bar turned over (owner 12.11 «паддинги явно не верные»):
779
+ above its items the top bar's air under them (10), its side items at the bar's gutter, where the top bar's
780
+ corner items and the edges of a grouped list's rows stand (16, 20 from 414), and under them that gutter or
781
+ the home indicator's inset less 6. The iOS 26 kit's 4 above and 28 at the sides are for rounds standing on
782
+ the content with no band: a soft bar keeps them, and so do a sheet's bar and a single wide action. */
783
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]:not([data-background="soft"], [data-host="dialog"]):not(:has(> .Content[data-fill] > :where(button, a, [role="link"]))) {
784
+ --toolbar-bottom-gutter: var(--toolbar-gutter);
785
+ --toolbar-bottom-padding-top: var(--toolbar-padding-bottom);
786
+ --toolbar-bottom-padding-bottom: max(var(--toolbar-gutter), calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) - 6px));
787
+ }
788
+
789
+ /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. A disabled ButtonLink renders a span with the link
790
+ role. */
791
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a, [role="link"])) {
751
792
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
752
793
  --toolbar-bottom-item-top: var(--toolbar-bottom-fill-padding-top);
753
794
  }
@@ -814,14 +855,23 @@
814
855
  grid-template-areas: "leading content";
815
856
  }
816
857
 
817
- /* Large title: the controls stay in their own row and the title sits below it. */
858
+ /* Large title: the controls stay in their own row and the title sits below it. The row keeps the controls'
859
+ height with none in it, as Settings' title stands where Files' does under its buttons. With a subtitle the
860
+ title stands 3pt lower, as UIKit sets one with navigationItem.subtitle on iOS 27.2 (title-uikit-subtitle:
861
+ «F» from 130). */
818
862
  :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"] {
819
863
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
864
+ --toolbar-large-title-row-gap: var(--toolbar-large-title-gap);
820
865
  grid-template-areas:
821
866
  "leading . trailing"
822
867
  "heading heading heading";
823
868
  grid-template-columns: max-content minmax(0, 1fr) max-content;
824
- row-gap: var(--toolbar-large-title-gap);
869
+ grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
870
+ row-gap: var(--toolbar-large-title-row-gap);
871
+ }
872
+
873
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"]:has(> .Heading > .Subtitle) {
874
+ --toolbar-large-title-row-gap: calc(var(--toolbar-large-title-gap) + 3px);
825
875
  }
826
876
 
827
877
  :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 +923,8 @@
873
923
  grid-area: content;
874
924
  }
875
925
 
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. */
926
+ /* 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
927
+ with 2 at the ends at the bottom. The capsule carries the shared mobile glass; the buttons inside it stay clear. */
878
928
  :where([data-plex-layout="phone"]) .Group {
879
929
  gap: var(--toolbar-group-gap);
880
930
  padding-inline: var(--toolbar-group-padding);
@@ -915,6 +965,17 @@
915
965
  --button-font-weight: var(--toolbar-label-font-weight);
916
966
  }
917
967
 
968
+ /* The label's weight on the button itself: touch.css gives a filled phone button a semibold --button-font-weight
969
+ outside the layers, which outweighs the one above. iOS 27.2 sets a bar's text in medium and a prominent
970
+ (solid) one in semibold. */
971
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]) {
972
+ font-weight: var(--toolbar-label-font-weight);
973
+ }
974
+
975
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"])[data-variant="solid"] {
976
+ font-weight: var(--toolbar-label-prominent-font-weight);
977
+ }
978
+
918
979
  /* A bar symbol, sized by its drawn glyph (--toolbar-icon-size: the kit's 29pt box, about 22pt of ink). */
919
980
  :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action]) {
920
981
  --button-icon-size: var(--toolbar-icon-size);
@@ -925,11 +986,12 @@
925
986
  --button-icon-size: var(--toolbar-icon-size-sm);
926
987
  }
927
988
 
928
- :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
989
+ /* A bar's text buttons keep the bar's gutters, a disabled ButtonLink too (a span with the link role). */
990
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
929
991
  --button-gutter: var(--toolbar-label-gutter);
930
992
  }
931
993
 
932
- :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
994
+ :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
995
  --button-gutter: var(--toolbar-bottom-label-gutter);
934
996
  }
935
997
 
@@ -1044,10 +1106,12 @@
1044
1106
  white-space: nowrap;
1045
1107
  }
1046
1108
 
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). */
1109
+ /* Two lines: title 15/20 at 6px, subtitle 12/16 below it, their baselines where iOS 27.2 sets them (ref-app
1110
+ 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
1111
+ 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
1112
+ when the Sheet opens). */
1049
1113
  :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle) {
1050
- transform: translateY(1px);
1114
+ transform: translateY(-0.33px);
1051
1115
  }
1052
1116
 
1053
1117
  :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle) .Title {
@@ -1103,7 +1167,10 @@
1103
1167
  line-height: var(--toolbar-medium-title-line-height);
1104
1168
  }
1105
1169
 
1106
- /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet below its grabber. */
1170
+ /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. iOS 27.2
1171
+ sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
1172
+ (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
1173
+ PlexUI Sheet keeps one height. */
1107
1174
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"] {
1108
1175
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1109
1176
  position: absolute;
@@ -1154,10 +1221,17 @@
1154
1221
  pointer-events: auto;
1155
1222
  }
1156
1223
 
1224
+ /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152,
1225
+ content 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
1157
1226
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
1227
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
1158
1228
  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));
1229
+ -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));
1230
+ 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));
1231
+ }
1232
+
1233
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
1234
+ margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
1161
1235
  }
1162
1236
 
1163
1237
  /* The inline title fades in over the last 8px of the large title's way. */
@@ -1184,7 +1258,7 @@
1184
1258
  justify-content: center;
1185
1259
  font-size: var(--toolbar-title-compact-font-size);
1186
1260
  line-height: var(--toolbar-title-compact-line-height);
1187
- transform: translateY(1px);
1261
+ transform: translateY(-0.33px);
1188
1262
  }
1189
1263
 
1190
1264
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
@@ -1214,26 +1288,10 @@
1214
1288
  border-radius: inherit;
1215
1289
  }
1216
1290
 
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
1291
  :where([data-plex-layout="phone"]) :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
1230
1292
  --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1231
1293
  }
1232
1294
 
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
1295
  :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="bottom"] {
1238
1296
  --toolbar-background: var(--dialog-panel-background);
1239
1297
  }
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git) GeistMono-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,124 @@
1
+ /* Geist Mono (vercel/geist-font) by its variable files, any weight 100–900: the code face of the Plex UI Figma kit
2
+ (font/font-mono). Fontsource @fontsource-variable/geist-mono 5.3.0, SIL Open Font License 1.1 in
3
+ geist-mono-fonts/LICENSE. Split by script, so a page downloads only the scripts it shows. The kit sets it as
4
+ --font-mono (variables-tokens-root.css). */
5
+
6
+ /* geist-mono-cyrillic-ext-wght-normal */
7
+ @font-face {
8
+ font-family: "Geist Mono Variable";
9
+ font-style: normal;
10
+ font-display: swap;
11
+ font-weight: 100 900;
12
+ src: url("./geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2") format("woff2");
13
+ unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
14
+ }
15
+
16
+ /* geist-mono-cyrillic-wght-normal */
17
+ @font-face {
18
+ font-family: "Geist Mono Variable";
19
+ font-style: normal;
20
+ font-display: swap;
21
+ font-weight: 100 900;
22
+ src: url("./geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2") format("woff2");
23
+ unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
24
+ }
25
+
26
+ /* geist-mono-symbols2-wght-normal */
27
+ @font-face {
28
+ font-family: "Geist Mono Variable";
29
+ font-style: normal;
30
+ font-display: swap;
31
+ font-weight: 100 900;
32
+ src: url("./geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2") format("woff2");
33
+ unicode-range: U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F;
34
+ }
35
+
36
+ /* geist-mono-vietnamese-wght-normal */
37
+ @font-face {
38
+ font-family: "Geist Mono Variable";
39
+ font-style: normal;
40
+ font-display: swap;
41
+ font-weight: 100 900;
42
+ src: url("./geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2") format("woff2");
43
+ unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
44
+ }
45
+
46
+ /* geist-mono-latin-ext-wght-normal */
47
+ @font-face {
48
+ font-family: "Geist Mono Variable";
49
+ font-style: normal;
50
+ font-display: swap;
51
+ font-weight: 100 900;
52
+ src: url("./geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
53
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
54
+ }
55
+
56
+ /* geist-mono-latin-wght-normal */
57
+ @font-face {
58
+ font-family: "Geist Mono Variable";
59
+ font-style: normal;
60
+ font-display: swap;
61
+ font-weight: 100 900;
62
+ src: url("./geist-mono-fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
63
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
64
+ }
65
+
66
+ /* geist-mono-cyrillic-ext-wght-italic */
67
+ @font-face {
68
+ font-family: "Geist Mono Variable";
69
+ font-style: italic;
70
+ font-display: swap;
71
+ font-weight: 100 900;
72
+ src: url("./geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2") format("woff2");
73
+ unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
74
+ }
75
+
76
+ /* geist-mono-cyrillic-wght-italic */
77
+ @font-face {
78
+ font-family: "Geist Mono Variable";
79
+ font-style: italic;
80
+ font-display: swap;
81
+ font-weight: 100 900;
82
+ src: url("./geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2") format("woff2");
83
+ unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
84
+ }
85
+
86
+ /* geist-mono-symbols2-wght-italic */
87
+ @font-face {
88
+ font-family: "Geist Mono Variable";
89
+ font-style: italic;
90
+ font-display: swap;
91
+ font-weight: 100 900;
92
+ src: url("./geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2") format("woff2");
93
+ unicode-range: U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F;
94
+ }
95
+
96
+ /* geist-mono-vietnamese-wght-italic */
97
+ @font-face {
98
+ font-family: "Geist Mono Variable";
99
+ font-style: italic;
100
+ font-display: swap;
101
+ font-weight: 100 900;
102
+ src: url("./geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2") format("woff2");
103
+ unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
104
+ }
105
+
106
+ /* geist-mono-latin-ext-wght-italic */
107
+ @font-face {
108
+ font-family: "Geist Mono Variable";
109
+ font-style: italic;
110
+ font-display: swap;
111
+ font-weight: 100 900;
112
+ src: url("./geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2") format("woff2");
113
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
114
+ }
115
+
116
+ /* geist-mono-latin-wght-italic */
117
+ @font-face {
118
+ font-family: "Geist Mono Variable";
119
+ font-style: italic;
120
+ font-display: swap;
121
+ font-weight: 100 900;
122
+ src: url("./geist-mono-fonts/geist-mono-latin-wght-italic.woff2") format("woff2");
123
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
124
+ }
@@ -7,6 +7,9 @@
7
7
  Unlayered, they override the same names from Tailwind's theme layer,
8
8
  so the consumer's `rounded-*` and font utilities use the Plex values
9
9
  (see variables-tokens-root.css and /docs/installation). */
10
+ /* Inter, the face of --font-sans, from the kit itself */
11
+ @import "./inter";
12
+ @import "./geist-mono";
10
13
  @import "./variables-tokens-root";
11
14
  /* Tier 1 tokens: Primitives */
12
15
  @import "./variables-primitive";