@plexui/styles 0.1.45 → 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.
- package/dist/es/components/Accordion/Accordion.module.css +54 -1
- package/dist/es/components/Alert/Alert.module.css +75 -37
- package/dist/es/components/Button/Button.module.css +36 -28
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
- package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
- package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
- package/dist/es/components/DatePicker/Calendar.module.css +16 -14
- package/dist/es/components/DateRangePicker/Calendar.module.css +16 -68
- package/dist/es/components/Dialog/Dialog.module.css +98 -59
- package/dist/es/components/Field/Field.module.css +56 -22
- package/dist/es/components/Input/Input.module.css +100 -18
- package/dist/es/components/Menu/Menu.module.css +30 -34
- package/dist/es/components/Page/Page.module.css +38 -0
- package/dist/es/components/Popover/Popover.module.css +10 -11
- package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
- package/dist/es/components/Select/Select.module.css +300 -38
- package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
- package/dist/es/components/Sidebar/Sidebar.module.css +4 -2
- package/dist/es/components/Slider/Slider.module.css +86 -4
- package/dist/es/components/Sortable/Sortable.module.css +3 -2
- package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
- package/dist/es/components/Stepper/Stepper.module.css +7 -4
- package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
- package/dist/es/components/Switch/Switch.module.css +6 -5
- package/dist/es/components/TabBar/TabBar.module.css +128 -12
- package/dist/es/components/Tabs/Tabs.module.css +238 -43
- package/dist/es/components/Toast/Toast.module.css +4 -3
- package/dist/es/components/Toolbar/Toolbar.module.css +92 -58
- package/dist/es/styles/mobile-materials.css +65 -24
- package/dist/es/styles/touch.css +321 -121
- package/dist/es/styles/variables-components.css +236 -124
- package/package.json +1 -1
- package/dist/es/components/StatCard/StatCard.module.css +0 -234
|
@@ -156,18 +156,20 @@
|
|
|
156
156
|
--button-group-text-border-color: var(--color-border-secondary-outline, var(--color-border));
|
|
157
157
|
--button-group-text-font-size: var(--font-text-sm-size);
|
|
158
158
|
--button-group-text-font-weight: var(--font-weight-medium);
|
|
159
|
-
/* A glass group on a phone (`mobileMaterial="glass"`, or any group in a Toolbar)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
4 + 48 + 6 + 48 + 6 + 48 + 4 (the kit's padding 10, gap 18
|
|
164
|
-
|
|
159
|
+
/* A glass group on a phone (`mobileMaterial="glass"`, or any group in a Toolbar). A row is the 44pt top bar's
|
|
160
|
+
capsule as iOS 27.2 groups a bar's symbols (ref-app nav-group3, plan 178 block 15), 154 wide with three:
|
|
161
|
+
1 + 44 + 10 + 44 + 10 + 44 + 1, the symbols as far apart as the bar's separate items (the iOS 27 kit, Toolbars
|
|
162
|
+
507:25993, Type=Button Group, drew 2 and 12 for 160). A column is the kit's only vertical one, the 48pt capsule
|
|
163
|
+
(_Buttons - 48pt), 48 x 164 with three symbols: 4 + 48 + 6 + 48 + 6 + 48 + 4 (the kit's padding 10, gap 18
|
|
164
|
+
around 36pt symbols); iOS has no column of bar items to measure, so it keeps the kit's sizes while the bottom
|
|
165
|
+
bar's row takes those of iOS 27.2. Groups side by side keep the 10px of the top bar's items. In a Toolbar a
|
|
166
|
+
group takes the bar's own sizes instead. */
|
|
165
167
|
--button-group-glass-item-size: var(--toolbar-top-item-size);
|
|
166
168
|
--button-group-glass-gap: var(--toolbar-group-gap);
|
|
167
169
|
--button-group-glass-padding: var(--toolbar-group-padding);
|
|
168
170
|
--button-group-glass-vertical-item-size: var(--toolbar-bottom-item-size);
|
|
169
|
-
--button-group-glass-vertical-gap:
|
|
170
|
-
--button-group-glass-vertical-padding:
|
|
171
|
+
--button-group-glass-vertical-gap: 6px;
|
|
172
|
+
--button-group-glass-vertical-padding: 4px;
|
|
171
173
|
--button-group-glass-nested-gap: var(--toolbar-top-item-gap);
|
|
172
174
|
--button-group-glass-label-gutter: var(--toolbar-label-gutter);
|
|
173
175
|
|
|
@@ -187,10 +189,14 @@
|
|
|
187
189
|
--accordion-trigger-focus-radius: var(--radius-sm);
|
|
188
190
|
--accordion-icon-color: var(--color-text-secondary);
|
|
189
191
|
--accordion-icon-size: 16px;
|
|
192
|
+
--accordion-icon-margin-inline-end: 0px;
|
|
190
193
|
--accordion-content-color: var(--color-text);
|
|
191
194
|
--accordion-content-font-size: var(--font-text-sm-size);
|
|
192
195
|
--accordion-content-line-height: var(--font-text-sm-line-height);
|
|
196
|
+
--accordion-content-padding-top: 0px;
|
|
193
197
|
--accordion-content-padding-bottom: calc(var(--spacing) * 2.5);
|
|
198
|
+
--accordion-content-padding-inline-start: 0px;
|
|
199
|
+
--accordion-content-divider-width: 0px;
|
|
194
200
|
--accordion-transition-duration: var(--transition-duration-basic);
|
|
195
201
|
--accordion-transition-ease: var(--transition-ease-basic);
|
|
196
202
|
|
|
@@ -313,34 +319,35 @@
|
|
|
313
319
|
/* =============================================
|
|
314
320
|
Swipe actions
|
|
315
321
|
============================================= */
|
|
316
|
-
/* Actions behind a row of a list,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
/* Actions behind a row of a list, as iOS 27.2 draws a list's swipe actions (iPhone 17, ref-app swipe-* in rows of
|
|
323
|
+
52 to 90, measures/swipe.md). The actions stand 4px inside the top and bottom of the row (52: 44 tall), 10px
|
|
324
|
+
apart, 10px from the edge and 10px from the content, whose corners round by 26px. A symbol alone is a capsule
|
|
325
|
+
of 60 up to a 50px circle (from a row of 58). With a label inside, every action takes the width of the widest:
|
|
326
|
+
the symbol (17pt draws 14 tall, an 18px PlexUI icon) 6.67px before a 13px regular label, 16px ends. A label alone
|
|
327
|
+
is a rounded rectangle of 16px corners, 16px ends. From a row of 60 iOS puts the label under the symbol: the
|
|
328
|
+
capsule 4.33px from the top takes what a 13px regular secondary label 7px under it leaves (64: 36, 72: 44) and
|
|
329
|
+
is a 50px circle from a row of 78, the two standing in the middle of a taller row. */
|
|
324
330
|
--swipe-actions-gap: 10px;
|
|
325
|
-
--swipe-actions-edge-inset:
|
|
331
|
+
--swipe-actions-edge-inset: 10px;
|
|
326
332
|
--swipe-actions-content-gap: 10px;
|
|
327
|
-
--swipe-actions-content-radius:
|
|
328
|
-
--swipe-actions-
|
|
333
|
+
--swipe-actions-content-radius: 26px;
|
|
334
|
+
--swipe-actions-inset-block: 4px;
|
|
329
335
|
--swipe-actions-action-min-width: 60px;
|
|
330
336
|
--swipe-actions-action-padding-inline: 8px;
|
|
337
|
+
--swipe-actions-circle-size: 50px;
|
|
331
338
|
--swipe-actions-icon-size: 20px;
|
|
332
|
-
--swipe-actions-labeled-
|
|
333
|
-
--swipe-actions-labeled-padding-inline: 4px;
|
|
339
|
+
--swipe-actions-labeled-padding-inline: 16px;
|
|
334
340
|
--swipe-actions-labeled-icon-size: 18px;
|
|
335
|
-
--swipe-actions-label-gap:
|
|
341
|
+
--swipe-actions-label-gap: 6.67px;
|
|
336
342
|
--swipe-actions-label-font-size: 13px;
|
|
337
|
-
--swipe-actions-label-line-height:
|
|
343
|
+
--swipe-actions-label-line-height: 16px;
|
|
338
344
|
--swipe-actions-label-font-weight: var(--font-weight-normal);
|
|
339
|
-
--swipe-actions-
|
|
340
|
-
--swipe-actions-
|
|
341
|
-
--swipe-actions-tall-padding-
|
|
342
|
-
--swipe-actions-
|
|
343
|
-
--swipe-actions-caption-
|
|
345
|
+
--swipe-actions-text-padding-inline: 16px;
|
|
346
|
+
--swipe-actions-text-radius: 16px;
|
|
347
|
+
--swipe-actions-tall-padding-top: 4.33px;
|
|
348
|
+
--swipe-actions-tall-padding-bottom: 3.67px;
|
|
349
|
+
--swipe-actions-caption-gap: 4px;
|
|
350
|
+
--swipe-actions-caption-font-weight: var(--font-weight-normal);
|
|
344
351
|
--swipe-actions-duration: 250ms;
|
|
345
352
|
|
|
346
353
|
/* =============================================
|
|
@@ -419,9 +426,10 @@
|
|
|
419
426
|
--dialog-max-width: 450px;
|
|
420
427
|
--dialog-container-inner-padding: calc(var(--spacing) * 5);
|
|
421
428
|
--dialog-backdrop-fade-background: color-mix(in oklab, var(--color-surface-elevated) 60%, transparent);
|
|
422
|
-
|
|
429
|
+
/* iOS 27.2 alert on an iPhone 17 (402pt): 320 wide, the actions 16 from its edge (measures/alerts.md) */
|
|
430
|
+
--dialog-alert-width: 320px;
|
|
423
431
|
--dialog-alert-radius: 34px;
|
|
424
|
-
--dialog-alert-padding:
|
|
432
|
+
--dialog-alert-padding: 16px;
|
|
425
433
|
--dialog-alert-action-height: 48px;
|
|
426
434
|
/* The capsule of a sheet's footer action: native setup sheets draw it 53pt tall (IMG_5432 Wallet, 159px at
|
|
427
435
|
3x; IMG_5509, 160px), owner 08.11. */
|
|
@@ -481,10 +489,16 @@
|
|
|
481
489
|
--toolbar-top-item-gap: 10px;
|
|
482
490
|
--toolbar-bottom-item-gap: 12px;
|
|
483
491
|
--toolbar-bottom-gutter: 28px;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
--toolbar-
|
|
492
|
+
/* Several symbols in one capsule of a top bar (iOS 27.2 UINavigationBar, ref-app nav-inline and nav-group3,
|
|
493
|
+
plan 178 block 15): 44pt items 10 apart, as the bar's separate items stand, with 1 at the ends; two make
|
|
494
|
+
100, three 154.33. The iOS 26 kit drew 12 and 2. */
|
|
495
|
+
--toolbar-group-gap: 10px;
|
|
496
|
+
--toolbar-group-padding: 1px;
|
|
497
|
+
/* Several symbols in one capsule of a bottom bar (iOS 27.2 UIToolbar, ref-app tb-circles2 and tb-circles3, plan
|
|
498
|
+
178 block 16): 48pt items 8 apart with 2 at the ends; two make 108, three 164, their centers 56 apart (12 more,
|
|
499
|
+
60, between capsules of their own). The iOS 26 kit drew 6 and 4, the same 164 with centers 54 apart. */
|
|
500
|
+
--toolbar-bottom-group-gap: 8px;
|
|
501
|
+
--toolbar-bottom-group-padding: 2px;
|
|
488
502
|
--toolbar-padding-bottom: 10px;
|
|
489
503
|
--toolbar-sheet-padding-top: 16px;
|
|
490
504
|
--toolbar-bottom-padding-top: 4px;
|
|
@@ -505,9 +519,14 @@
|
|
|
505
519
|
--toolbar-search-font-weight: 400;
|
|
506
520
|
--toolbar-flat-opacity: 80%;
|
|
507
521
|
--toolbar-flat-blur: 60px;
|
|
508
|
-
/* The large title
|
|
509
|
-
|
|
510
|
-
|
|
522
|
+
/* The large title of iOS 27.2 (Files, Settings, UIKit and SwiftUI on an iPhone 17, plan 178 block 10): the top
|
|
523
|
+
of its capitals 22pt under the row of controls (row 62 to 106, «H» from 128, baseline 152). The 41px line
|
|
524
|
+
box puts them 8.7px below its top. iOS 26 Mail and Freeform, with a subtitle, set it 8pt lower (IMG_5530). */
|
|
525
|
+
--toolbar-large-title-gap: 13.3px;
|
|
526
|
+
/* On a page the bar ends at the title's baseline, so the content starts 16pt (--page-content-padding-top)
|
|
527
|
+
under it, as at 168 on iOS 27.2: the part of the 41px line below the baseline, and of a subtitle's 20px. */
|
|
528
|
+
--toolbar-large-title-descent: 8.3px;
|
|
529
|
+
--toolbar-large-subtitle-descent: 4.6px;
|
|
511
530
|
/* A bar symbol, sized by its drawn glyph (plan 162): the kit's 44pt bar button holds a 29pt symbol box
|
|
512
531
|
that draws about 22pt (Apps 2.4, Toolbar button top 39972:316665: a check of 21.75 × 15.7, a heart of
|
|
513
532
|
22 × 20), and native Freeform draws its ellipsis 19.7pt wide with 4pt dots (IMG_5684). A PlexUI icon
|
|
@@ -518,9 +537,14 @@
|
|
|
518
537
|
--toolbar-icon-size-sm: 23.56px;
|
|
519
538
|
--toolbar-label-font-size: 17px;
|
|
520
539
|
--toolbar-label-line-height: 22px;
|
|
540
|
+
/* A bar's text button (ref-app nav-inline, nav-text): 17pt medium, a prominent one semibold (stems of 1.8 and
|
|
541
|
+
2.1pt), 16 from the capsule's edge to the text (Edit 63.33 wide, Cancel 86.33, Done 74); the kit drew 14. */
|
|
521
542
|
--toolbar-label-font-weight: 510;
|
|
522
|
-
--toolbar-label-
|
|
523
|
-
--toolbar-
|
|
543
|
+
--toolbar-label-prominent-font-weight: 590;
|
|
544
|
+
--toolbar-label-gutter: 16px;
|
|
545
|
+
/* The same 16 in a bottom bar (ref-app tb-text, tb-mixed: Select All, Done and Updated Just Now all start and
|
|
546
|
+
end 16 inside their capsules, Done 74.67 wide as on top); it was 12. */
|
|
547
|
+
--toolbar-bottom-label-gutter: 16px;
|
|
524
548
|
--toolbar-title-font-size: 17px;
|
|
525
549
|
--toolbar-title-line-height: 22px;
|
|
526
550
|
--toolbar-title-font-weight: 590;
|
|
@@ -649,28 +673,64 @@
|
|
|
649
673
|
--segmented-control-gutter: 2px;
|
|
650
674
|
--segmented-control-font-weight: var(--font-weight-semibold);
|
|
651
675
|
--segmented-control-thumb-shadow: 0 1px 4px -1px rgb(0 0 0 / 20%);
|
|
652
|
-
/* Phone (touch.css): the
|
|
676
|
+
/* Phone (touch.css), in content: the plain control of iOS 27.2, its track the tertiary fill (118/118/128 at 12%
|
|
677
|
+
and 24%: 238 on white, 28 on black) as alpha-06 and alpha-12, and its thumb white in light and white at about
|
|
678
|
+
25% on the track in dark (90 there), gray-0 and alpha-25. */
|
|
679
|
+
/* Phone, in a bar: the thumb on the glass track, as native frames show it: about 8% black in light (228 on a
|
|
653
680
|
247 track, Calendar IMG_5433/5434) and darker than the track in dark (32-34 on 54-58, IMG_5522/5523). */
|
|
681
|
+
/* Phone, the large control's glass (touch.css): lighter than the screen under it. Native iOS 27.2 draws the track
|
|
682
|
+
247/247/252 on the 242/242/247 sheet (Xcode segmented-sheet, Calendar IMG_5433), +5, where the shared button
|
|
683
|
+
glass (gray-75 at 55%) comes to the page's own 243 and the control was lost on it (owner 10.11: «цвет фона
|
|
684
|
+
верный? как-то теряется»). White at 40% gives 248 on the 243 grouped page and white on white; dark keeps the
|
|
685
|
+
shared glass, 42 on the 13 canvas as native 58 on 28. */
|
|
686
|
+
/* Phone, the large control held (Xcode segmented-sheet, recorded 10.11, owner: «анимация переключения не верная»):
|
|
687
|
+
the capsule grows by 7% (709 to 757px wide and 145 to 155px tall at @3x), its glass turns white (253 on the 242
|
|
688
|
+
sheet) and the held segment's label fades to about a fifth (black to 203 on 253); the selected label keeps its
|
|
689
|
+
color. Dark was not recorded and takes the shared glass's pressed step, alpha-20. Released, the selection
|
|
690
|
+
travels as a lens (Tabs playThumbLens). */
|
|
691
|
+
--segmented-control-mobile-pressed-scale: 1.07;
|
|
692
|
+
--segmented-control-mobile-pressed-label-opacity: 0.2;
|
|
693
|
+
/* The lens a switch lifts the selection into (Tabs playThumbLens), as iOS 27.2 draws it (ref-app
|
|
694
|
+
segmented-bar-text4 switched Day to Year, recorded 11.11 after the owner's «анимация не правильная и стиль»;
|
|
695
|
+
segmented-bar-symbols before it). At its widest it is the selection and 36pt (268 around 160 @3x) and at its
|
|
696
|
+
tallest 11pt over it (150 around 118), past the 48pt capsule. It is nearly clear, a shade over the track darker
|
|
697
|
+
at its top (230 under its top edge to 242 under its bottom on 245; 26 on 30 in dark). Its rim is a dark line
|
|
698
|
+
(204 then 195 on 240 at 2px @3x in light, 10 on 26 in dark) with a light one inside it, the capsule's edge shows
|
|
699
|
+
through it as a band along its top and its bottom (216 and 222 on the 245 track, 3pt), and a faint shade falls
|
|
700
|
+
under it (232 on 238). */
|
|
701
|
+
--segmented-control-mobile-thumb-lens-outset: 36px 11px;
|
|
654
702
|
--segmented-control-option-highlight-gutter: 1px;
|
|
655
703
|
|
|
656
704
|
/* =============================================
|
|
657
705
|
Color picker
|
|
658
706
|
============================================= */
|
|
659
|
-
/* A desktop scale of the iOS
|
|
660
|
-
28px tracks and fields
|
|
707
|
+
/* A desktop scale of the iOS picker in PlexUI sizes: a 264px column, 22px grid cells (square, as in iOS 27.2),
|
|
708
|
+
28px tracks and fields, and saved colors in rows of six, 8 apart, two rows as tall as the 56px current color.
|
|
709
|
+
The phone takes the native sizes of iOS 27.2 (touch.css). */
|
|
661
710
|
--color-picker-width: 264px;
|
|
662
711
|
--color-picker-modes-gap: 16px;
|
|
663
|
-
--color-picker-body-aspect-ratio:
|
|
712
|
+
--color-picker-body-aspect-ratio: 6 / 5;
|
|
664
713
|
--color-picker-body-radius: var(--radius-xl);
|
|
665
714
|
--color-picker-section-gap: 16px;
|
|
666
715
|
--color-picker-row-gap: 4px;
|
|
667
716
|
--color-picker-opacity-padding-bottom: 16px;
|
|
668
717
|
--color-picker-label-font-size: var(--font-text-sm-size);
|
|
669
718
|
--color-picker-label-line-height: var(--font-text-sm-line-height);
|
|
719
|
+
--color-picker-label-font-weight: var(--font-weight-semibold);
|
|
720
|
+
--color-picker-label-color: var(--color-text);
|
|
721
|
+
--color-picker-label-text-transform: none;
|
|
722
|
+
--color-picker-sliders-justify: space-between;
|
|
723
|
+
--color-picker-channel-gap: 0px;
|
|
724
|
+
--color-picker-hex-justify: space-between;
|
|
725
|
+
--color-picker-hex-margin-block: 0px;
|
|
726
|
+
--color-picker-hex-label-font-size: var(--font-text-sm-size);
|
|
727
|
+
--color-picker-hex-label-line-height: var(--font-text-sm-line-height);
|
|
728
|
+
--color-picker-hex-label-font-weight: var(--font-weight-semibold);
|
|
670
729
|
--color-picker-selection-color: #fff;
|
|
671
730
|
--color-picker-selection-width: 2px;
|
|
672
731
|
--color-picker-track-height: 28px;
|
|
673
732
|
--color-picker-track-inset: 2px;
|
|
733
|
+
--color-picker-checker: repeating-conic-gradient(#fff 0 25%, #000 0 50%);
|
|
674
734
|
--color-picker-checker-size: 6px;
|
|
675
735
|
--color-picker-knob-size: 24px;
|
|
676
736
|
--color-picker-knob-border: 2px;
|
|
@@ -683,27 +743,26 @@
|
|
|
683
743
|
--color-picker-field-radius: var(--radius-md);
|
|
684
744
|
--color-picker-field-font-size: var(--font-text-sm-size);
|
|
685
745
|
--color-picker-field-line-height: var(--font-text-sm-line-height);
|
|
746
|
+
--color-picker-field-font-weight: var(--font-weight-semibold);
|
|
686
747
|
--color-picker-field-background: var(--color-background-secondary-soft-alpha);
|
|
687
748
|
--color-picker-separator-color: var(--color-border);
|
|
688
749
|
--color-picker-current-size: 56px;
|
|
689
750
|
--color-picker-current-radius: var(--radius-xl);
|
|
690
751
|
--color-picker-current-gap: 24px;
|
|
752
|
+
--color-picker-swatches-padding-top: 16px;
|
|
691
753
|
--color-picker-swatch-size: 24px;
|
|
692
|
-
--color-picker-swatch-row-gap:
|
|
754
|
+
--color-picker-swatch-row-gap: 8px;
|
|
693
755
|
--color-picker-swatch-ring-inset: 2px;
|
|
694
756
|
--color-picker-swatch-ring-width: 2px;
|
|
695
757
|
--color-picker-add-icon-size: 16px;
|
|
758
|
+
--color-picker-add-background: var(--color-picker-field-background);
|
|
759
|
+
--color-picker-add-color: var(--color-text);
|
|
696
760
|
--color-picker-page-control-row-height: 8px;
|
|
697
761
|
--color-picker-page-control-empty-display: none;
|
|
698
762
|
--color-picker-popover-padding: 12px 16px 16px;
|
|
699
763
|
--color-picker-popover-header-gap: 12px;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
and its separator (198 on white) alpha-25. */
|
|
703
|
-
--color-picker-mobile-field-background: var(--alpha-12);
|
|
704
|
-
/* The picker's Mode control is the plain kit segmented control: Fills/Tertiary (118/118/128 at 12% and 24%: 240
|
|
705
|
-
on white, 28 on black) is alpha-06 and alpha-12; the Selected Fill thumb (white, white at 27%) gray-0 and alpha-25. */
|
|
706
|
-
--color-picker-mobile-separator-color: var(--alpha-25);
|
|
764
|
+
/* Phone (touch.css): the separator iOS 27.2 draws is 190 on the 243 sheet in light (alpha-20) and 58 on 20 in
|
|
765
|
+
dark (alpha-15). */
|
|
707
766
|
|
|
708
767
|
/* =============================================
|
|
709
768
|
Color well
|
|
@@ -729,9 +788,11 @@
|
|
|
729
788
|
/* =============================================
|
|
730
789
|
Context menu
|
|
731
790
|
============================================= */
|
|
732
|
-
/* The iOS 26 kit Context Menu - Dimming Overlay (507:25994): black
|
|
733
|
-
|
|
734
|
-
the
|
|
791
|
+
/* The iOS 26 kit Context Menu - Dimming Overlay (507:25994): black over a 30px background blur; the kit shows
|
|
792
|
+
light only, so dark takes the Dialog's dark scrim. Light is black at 20%, as iOS 27.2 dims a list for a
|
|
793
|
+
context menu (ref-app menus-context, block 8: the grouped 242 to 194, a white row to 200 to 202); the kit's
|
|
794
|
+
23% came darker. The preview keeps the element's own corner, or the kit's Content Area radius 30, and its
|
|
795
|
+
drop shadow 32 at 20%. */
|
|
735
796
|
--context-menu-dimming-backdrop-filter: blur(30px);
|
|
736
797
|
--context-menu-preview-radius: 30px;
|
|
737
798
|
--context-menu-preview-shadow: 0 0 32px rgb(0 0 0 / 20%);
|
|
@@ -739,18 +800,21 @@
|
|
|
739
800
|
/* =============================================
|
|
740
801
|
Index bar (phone)
|
|
741
802
|
============================================= */
|
|
742
|
-
/* The section index of a phone list,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
803
|
+
/* The section index of a phone list, measured on iOS 27.2 (iPhone 17, UITableView and SwiftUI List with
|
|
804
|
+
26 sections, plan 178 block 19): letters of 11pt (a cap height of 7.7-8pt) 13.79pt apart, centred 7.5pt
|
|
805
|
+
from the trailing edge, in the semibold weight. Contacts (IMG_5737) agrees on the spacing. At 590 the
|
|
806
|
+
letters A to V carry the ink of native ones (515 against 515pt²; medium gave 453). In a 14.67px column each
|
|
807
|
+
letter centres where its native one does (7.4px from the edge on average). The country list of a sheet
|
|
808
|
+
(IMG_5491: 15pt apart, 10pt from the edge) is the exception. iOS tints them systemBlue (0088ff); PlexUI
|
|
809
|
+
draws that tint as info, as it does the prominent toolbar button. A drag along the letters highlights
|
|
810
|
+
nothing, as on iOS. The target reaches 30px in from the edge (the native frames show no target). A list
|
|
811
|
+
keeps its margins beside the index, whose letters sit in the trailing one (Contacts rows end 16pt from the
|
|
812
|
+
edge). */
|
|
813
|
+
--index-bar-width: 14.67px;
|
|
750
814
|
--index-bar-inset-inline-end: 0px;
|
|
751
815
|
--index-bar-font-size: 11px;
|
|
752
|
-
--index-bar-line-height:
|
|
753
|
-
--index-bar-font-weight:
|
|
816
|
+
--index-bar-line-height: 13.79px;
|
|
817
|
+
--index-bar-font-weight: 590;
|
|
754
818
|
--index-bar-color: var(--color-text-info);
|
|
755
819
|
--index-bar-target-width: 30px;
|
|
756
820
|
|
|
@@ -793,11 +857,14 @@
|
|
|
793
857
|
--stepper-icon-size: var(--control-icon-size-md);
|
|
794
858
|
--stepper-icon-color: var(--color-text);
|
|
795
859
|
--stepper-icon-disabled-color: var(--color-text-disabled);
|
|
796
|
-
/* Phone (touch.css),
|
|
797
|
-
|
|
798
|
-
and
|
|
799
|
-
|
|
800
|
-
|
|
860
|
+
/* Phone (touch.css), a native iOS 27.2 UIStepper in PlexUI alpha colors: each segment has its own fill, the
|
|
861
|
+
tertiary fill (eeeeef on white, 2c2c2f on a #1c1c1e card, 121213 on black), alpha-06 and alpha-08 (f0f0f0
|
|
862
|
+
and 2e2e2e; the kit's 24% in dark, alpha-12, showed at 373737). Held down, a segment darkens in both themes,
|
|
863
|
+
to black at 15% over what lies under it (dadadb on white, 18181b on #1c1c1e, black on black; the kit's
|
|
864
|
+
lighter Fills/Quaternary is not what iOS draws). A segment at the end of the range keeps its fill and only
|
|
865
|
+
its symbol turns tertiary, held or not. The separator (60/60/67 and 235/235/245 at 30%: b9b9bc, 65656a) is
|
|
866
|
+
alpha-25. */
|
|
867
|
+
--stepper-mobile-segment-background-disabled: var(--stepper-mobile-segment-background);
|
|
801
868
|
--stepper-mobile-separator-color: var(--alpha-25);
|
|
802
869
|
|
|
803
870
|
/* =============================================
|
|
@@ -809,7 +876,11 @@
|
|
|
809
876
|
circle 8px away; minimized, two 48px circles. The selection pill (237 burnt into the light glass, 18
|
|
810
877
|
dodged into the dark one: about 8% either way) is alpha-08. The kit tints the selected tab systemBlue;
|
|
811
878
|
PlexUI colors navigation as its Sidebar does: the selected tab in the primary text, the others
|
|
812
|
-
--gray-750 (dark --gray-850). Minimized, the symbol is the primary label, as in the kit.
|
|
879
|
+
--gray-750 (dark --gray-850). Minimized, the symbol is the primary label, as in the kit.
|
|
880
|
+
iOS 27.2 (TabView in Xcode, ref-app tabs3, tabs4 and tabs5) keeps the capsule, the pill and the label,
|
|
881
|
+
and four or five tabs share the width as here (85 each). Three hug their tabs in a 275 capsule, centres
|
|
882
|
+
86 apart with 8.5 at the ends; PlexUI keeps its 10 and sets 85, the capsule exact and the centres 1 off,
|
|
883
|
+
where the kit's 94 made 302. The symbols draw larger: house.fill 27 x 24, gear 26, the magnifier 22.33. */
|
|
813
884
|
--tab-bar-gutter: 21px;
|
|
814
885
|
--tab-bar-gap: 8px;
|
|
815
886
|
--tab-bar-padding-top: 12px;
|
|
@@ -821,11 +892,13 @@
|
|
|
821
892
|
--tab-bar-minimized-padding-bottom: max(28px, calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) - 6px));
|
|
822
893
|
--tab-bar-capsule-padding-block: 4px;
|
|
823
894
|
--tab-bar-capsule-padding-inline: 10px;
|
|
824
|
-
--tab-bar-item-width:
|
|
895
|
+
--tab-bar-item-width: 85px;
|
|
825
896
|
--tab-bar-item-height: 54px;
|
|
826
897
|
--tab-bar-pill-outset: 6px;
|
|
827
898
|
--tab-bar-icon-box: 28px;
|
|
828
|
-
|
|
899
|
+
/* PlexUI icons draw their ink about 0.8 of the box (Search 19 of 24), so a 28 box draws the 22 of the
|
|
900
|
+
native magnifier; it was 24. */
|
|
901
|
+
--tab-bar-icon-size: 28px;
|
|
829
902
|
--tab-bar-label-font-size: 10px;
|
|
830
903
|
--tab-bar-label-line-height: 12px;
|
|
831
904
|
--tab-bar-label-font-weight: var(--font-weight-semibold);
|
|
@@ -834,6 +907,27 @@
|
|
|
834
907
|
--tab-bar-item-color-selected: var(--color-text);
|
|
835
908
|
--tab-bar-item-color-minimized: var(--color-text);
|
|
836
909
|
--tab-bar-item-background-selected: var(--alpha-08);
|
|
910
|
+
/* A badge on a tab (iOS 27.2 TabView .badge, ref-app tabs4-badge): an 18 red capsule, a count or a word in
|
|
911
|
+
12 regular 5 inside it ("New" 33.67 wide), its top 2.33 below the top of the tab and its leading edge
|
|
912
|
+
11.67 past the tab's middle. Native red (ff383c, dark ff4245) is the danger solid of PlexUI. */
|
|
913
|
+
--tab-bar-badge-size: 18px;
|
|
914
|
+
--tab-bar-badge-padding-inline: 5px;
|
|
915
|
+
--tab-bar-badge-font-size: 12px;
|
|
916
|
+
--tab-bar-badge-font-weight: var(--font-weight-normal);
|
|
917
|
+
--tab-bar-badge-top: 2.33px;
|
|
918
|
+
--tab-bar-badge-start: 11.67px;
|
|
919
|
+
--tab-bar-badge-background: var(--color-background-danger-solid);
|
|
920
|
+
--tab-bar-badge-color: var(--color-text-danger-solid);
|
|
921
|
+
/* Minimized, the circle of the selected tab keeps its badge, 2 below the circle's top and its leading edge 9.67
|
|
922
|
+
past the middle, so it reaches 4 past the circle (ref-app tabs-minimize-badge). */
|
|
923
|
+
--tab-bar-minimized-badge-top: 2px;
|
|
924
|
+
--tab-bar-minimized-badge-start: 9.67px;
|
|
925
|
+
/* The bottom accessory (iOS 27.2 tabViewBottomAccessory, ref-app tabs-accessory and tabs-minimize): a 48
|
|
926
|
+
glass capsule across the bar, 8 above the tabs; minimized, it stands between the two 48 circles, 13.33
|
|
927
|
+
from each. The bar keeps its height (151) in both states, so the Page under it does not move. */
|
|
928
|
+
--tab-bar-accessory-height: 48px;
|
|
929
|
+
--tab-bar-accessory-gap: 8px;
|
|
930
|
+
--tab-bar-minimized-accessory-gap: 13.33px;
|
|
837
931
|
|
|
838
932
|
/* =============================================
|
|
839
933
|
Tabs — Underline variant
|
|
@@ -999,49 +1093,49 @@
|
|
|
999
1093
|
--sidebar-card-active-scale: 0.98;
|
|
1000
1094
|
|
|
1001
1095
|
/* =============================================
|
|
1002
|
-
|
|
1096
|
+
StatsCard
|
|
1003
1097
|
============================================= */
|
|
1004
|
-
--
|
|
1005
|
-
--
|
|
1006
|
-
/* spacing is per-section:
|
|
1007
|
-
--
|
|
1008
|
-
--
|
|
1009
|
-
--
|
|
1010
|
-
--
|
|
1011
|
-
--
|
|
1012
|
-
--
|
|
1013
|
-
--
|
|
1014
|
-
--
|
|
1015
|
-
--
|
|
1016
|
-
--
|
|
1017
|
-
--
|
|
1018
|
-
--
|
|
1019
|
-
--
|
|
1020
|
-
--
|
|
1021
|
-
--
|
|
1022
|
-
--
|
|
1023
|
-
--
|
|
1024
|
-
--
|
|
1025
|
-
--
|
|
1026
|
-
/*
|
|
1027
|
-
--
|
|
1028
|
-
--
|
|
1029
|
-
--
|
|
1030
|
-
--
|
|
1031
|
-
--
|
|
1098
|
+
--stats-card-padding: calc(var(--spacing) * 5);
|
|
1099
|
+
--stats-card-radius: var(--radius-xl);
|
|
1100
|
+
/* spacing is per-section: 12px label→value, 4px value→trend row→description, 16px → progress */
|
|
1101
|
+
--stats-card-background: var(--color-surface);
|
|
1102
|
+
--stats-card-border-color: var(--color-border);
|
|
1103
|
+
--stats-card-label-font-size: var(--font-text-sm-size);
|
|
1104
|
+
--stats-card-label-color: var(--color-text-secondary);
|
|
1105
|
+
--stats-card-value-font-size: var(--font-heading-xl-size);
|
|
1106
|
+
--stats-card-value-font-weight: var(--font-weight-semibold);
|
|
1107
|
+
--stats-card-value-color: var(--color-text);
|
|
1108
|
+
--stats-card-description-font-size: var(--font-text-sm-size);
|
|
1109
|
+
--stats-card-description-color: var(--color-text-tertiary);
|
|
1110
|
+
--stats-card-trend-font-size: var(--font-text-sm-size);
|
|
1111
|
+
--stats-card-trend-font-weight: var(--font-weight-semibold);
|
|
1112
|
+
--stats-card-trend-positive-color: var(--color-text-success-soft);
|
|
1113
|
+
--stats-card-trend-negative-color: var(--color-text-danger-soft);
|
|
1114
|
+
--stats-card-trend-neutral-color: var(--color-text-tertiary);
|
|
1115
|
+
--stats-card-progress-height: 4px;
|
|
1116
|
+
--stats-card-progress-radius: var(--radius-full);
|
|
1117
|
+
--stats-card-progress-fill: var(--color-background-primary-solid);
|
|
1118
|
+
--stats-card-icon-size: 16px;
|
|
1119
|
+
--stats-card-icon-color: var(--color-text-primary);
|
|
1120
|
+
/* A small tile at the end of the header (shadcn's metric card with an icon: p-2 around a 16 icon) */
|
|
1121
|
+
--stats-card-icon-wrapper-size: 32px;
|
|
1122
|
+
--stats-card-icon-wrapper-radius: var(--radius-md);
|
|
1123
|
+
--stats-card-icon-wrapper-background: var(--color-background-primary-soft-alpha);
|
|
1124
|
+
--stats-card-accent-width: 4px;
|
|
1125
|
+
--stats-card-info-icon-size: 16px;
|
|
1032
1126
|
|
|
1033
1127
|
/* sm size overrides */
|
|
1034
|
-
--
|
|
1035
|
-
--
|
|
1036
|
-
--
|
|
1037
|
-
--
|
|
1038
|
-
--
|
|
1039
|
-
--
|
|
1040
|
-
--
|
|
1041
|
-
/*
|
|
1042
|
-
--
|
|
1043
|
-
--
|
|
1044
|
-
--
|
|
1128
|
+
--stats-card-sm-padding-block: calc(var(--spacing) * 3);
|
|
1129
|
+
--stats-card-sm-padding-inline: calc(var(--spacing) * 4);
|
|
1130
|
+
--stats-card-sm-label-font-size: var(--font-text-xs-size);
|
|
1131
|
+
--stats-card-sm-value-font-size: var(--font-heading-md-size);
|
|
1132
|
+
--stats-card-sm-trend-font-size: var(--font-text-xs-size);
|
|
1133
|
+
--stats-card-sm-description-font-size: var(--font-text-xs-size);
|
|
1134
|
+
--stats-card-sm-icon-size: 14px;
|
|
1135
|
+
/* 7 around a 14 icon */
|
|
1136
|
+
--stats-card-sm-icon-wrapper-size: 28px;
|
|
1137
|
+
--stats-card-sm-icon-wrapper-radius: var(--radius-sm);
|
|
1138
|
+
--stats-card-sm-info-icon-size: 14px;
|
|
1045
1139
|
|
|
1046
1140
|
/* =============================================
|
|
1047
1141
|
Table
|
|
@@ -1092,15 +1186,24 @@
|
|
|
1092
1186
|
--page-bar-hard-line: rgb(0 0 0 / 12%);
|
|
1093
1187
|
--segmented-control-background: var(--gray-100);
|
|
1094
1188
|
--segmented-control-thumb-background: var(--gray-0);
|
|
1189
|
+
--segmented-control-mobile-plain-background: var(--alpha-06);
|
|
1190
|
+
--segmented-control-mobile-plain-thumb-background: var(--gray-0);
|
|
1095
1191
|
--segmented-control-mobile-thumb-background: var(--alpha-08);
|
|
1192
|
+
--segmented-control-mobile-glass-background: color-mix(in oklab, var(--gray-0) 40%, transparent);
|
|
1193
|
+
--segmented-control-mobile-glass-background-pressed: color-mix(in oklab, var(--gray-0) 85%, transparent);
|
|
1194
|
+
--segmented-control-mobile-thumb-lens-background: transparent;
|
|
1195
|
+
--segmented-control-mobile-thumb-lens-shadow: 0 0 0 0.5px rgb(0 0 0 / 22%),
|
|
1196
|
+
inset 0 0 0 0.5px rgb(255 255 255 / 60%),
|
|
1197
|
+
inset 0 3px 0 rgb(0 0 0 / 11%),
|
|
1198
|
+
inset 0 -3px 0 rgb(0 0 0 / 9%),
|
|
1199
|
+
inset 0 12px 12px -6px rgb(0 0 0 / 5%),
|
|
1200
|
+
0 2px 4px rgb(0 0 0 / 6%);
|
|
1096
1201
|
--segmented-control-option-highlight-background-color: var(--gray-200);
|
|
1097
|
-
--color-picker-mobile-
|
|
1098
|
-
--
|
|
1099
|
-
--context-menu-dimming-background: rgb(0 0 0 / 23%);
|
|
1202
|
+
--color-picker-mobile-separator-color: var(--alpha-20);
|
|
1203
|
+
--context-menu-dimming-background: rgb(0 0 0 / 20%);
|
|
1100
1204
|
--stepper-background: var(--gray-100);
|
|
1101
1205
|
--stepper-mobile-segment-background: var(--alpha-06);
|
|
1102
|
-
--stepper-mobile-segment-background-active: var(--alpha-
|
|
1103
|
-
--stepper-mobile-segment-background-disabled: var(--alpha-05);
|
|
1206
|
+
--stepper-mobile-segment-background-active: var(--alpha-15);
|
|
1104
1207
|
--tab-bar-item-color: var(--gray-750);
|
|
1105
1208
|
--slider-track-color: var(--gray-150);
|
|
1106
1209
|
--slider-range-color: var(--gray-450);
|
|
@@ -1116,7 +1219,7 @@
|
|
|
1116
1219
|
--sidebar-menu-text: var(--gray-750);
|
|
1117
1220
|
--sidebar-mobile-backdrop-color: rgb(0 0 0 / 15%);
|
|
1118
1221
|
--sidebar-footer-shadow: 0 -2px 10px rgb(0 0 0 / 6%);
|
|
1119
|
-
--
|
|
1222
|
+
--stats-card-progress-background: var(--alpha-08);
|
|
1120
1223
|
--table-row-hover-background: var(--alpha-02);
|
|
1121
1224
|
--skeleton-background: var(--alpha-08);
|
|
1122
1225
|
}
|
|
@@ -1148,15 +1251,24 @@
|
|
|
1148
1251
|
--page-bar-hard-line: var(--color-border);
|
|
1149
1252
|
--segmented-control-background: var(--alpha-08);
|
|
1150
1253
|
--segmented-control-thumb-background: var(--alpha-12);
|
|
1254
|
+
--segmented-control-mobile-plain-background: var(--alpha-12);
|
|
1255
|
+
--segmented-control-mobile-plain-thumb-background: var(--alpha-25);
|
|
1151
1256
|
--segmented-control-mobile-thumb-background: var(--gray-200);
|
|
1257
|
+
--segmented-control-mobile-glass-background: var(--alpha-12);
|
|
1258
|
+
--segmented-control-mobile-glass-background-pressed: var(--alpha-20);
|
|
1259
|
+
--segmented-control-mobile-thumb-lens-background: rgb(0 0 0 / 13%);
|
|
1260
|
+
--segmented-control-mobile-thumb-lens-shadow: 0 0 0 0.5px rgb(0 0 0 / 60%),
|
|
1261
|
+
inset 0 0 0 0.5px rgb(255 255 255 / 6%),
|
|
1262
|
+
inset 0 3px 0 rgb(0 0 0 / 20%),
|
|
1263
|
+
inset 0 -3px 0 rgb(0 0 0 / 20%),
|
|
1264
|
+
inset 0 12px 12px -6px rgb(0 0 0 / 10%),
|
|
1265
|
+
0 2px 4px rgb(0 0 0 / 6%);
|
|
1152
1266
|
--segmented-control-option-highlight-background-color: var(--alpha-08);
|
|
1153
|
-
--color-picker-mobile-
|
|
1154
|
-
--color-picker-mobile-mode-thumb-background: var(--alpha-25);
|
|
1267
|
+
--color-picker-mobile-separator-color: var(--alpha-15);
|
|
1155
1268
|
--context-menu-dimming-background: rgb(0 0 0 / 50%);
|
|
1156
1269
|
--stepper-background: var(--alpha-08);
|
|
1157
|
-
--stepper-mobile-segment-background: var(--alpha-
|
|
1158
|
-
--stepper-mobile-segment-background-active:
|
|
1159
|
-
--stepper-mobile-segment-background-disabled: var(--alpha-08);
|
|
1270
|
+
--stepper-mobile-segment-background: var(--alpha-08);
|
|
1271
|
+
--stepper-mobile-segment-background-active: rgb(0 0 0 / 15%);
|
|
1160
1272
|
--tab-bar-item-color: var(--gray-850);
|
|
1161
1273
|
--slider-track-color: var(--gray-400);
|
|
1162
1274
|
--slider-range-color: var(--gray-600);
|
|
@@ -1172,7 +1284,7 @@
|
|
|
1172
1284
|
--sidebar-menu-text: var(--gray-850);
|
|
1173
1285
|
--sidebar-mobile-backdrop-color: rgb(0 0 0 / 35%);
|
|
1174
1286
|
--sidebar-footer-shadow: 0 -2px 10px rgb(0 0 0 / 35%);
|
|
1175
|
-
--
|
|
1287
|
+
--stats-card-progress-background: var(--alpha-12);
|
|
1176
1288
|
--table-row-hover-background: var(--alpha-04);
|
|
1177
1289
|
--skeleton-background: var(--alpha-12);
|
|
1178
1290
|
}
|