@plexui/styles 0.1.34 → 0.1.36

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 (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +12 -1
  2. package/dist/es/components/Alert/Alert.module.css +101 -0
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
  5. package/dist/es/components/Button/Button.module.css +53 -0
  6. package/dist/es/components/Button/NavigationButton.module.css +17 -0
  7. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
  8. package/dist/es/components/Card/Card.module.css +9 -0
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
  11. package/dist/es/components/DatePicker/Calendar.module.css +262 -2
  12. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  13. package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
  14. package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
  15. package/dist/es/components/Dialog/Dialog.module.css +660 -13
  16. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
  17. package/dist/es/components/Field/Field.module.css +387 -2
  18. package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
  19. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  20. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
  21. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
  22. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  23. package/dist/es/components/Input/Input.module.css +129 -1
  24. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  25. package/dist/es/components/Menu/Menu.module.css +324 -7
  26. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  27. package/dist/es/components/Page/Page.module.css +302 -10
  28. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  29. package/dist/es/components/Popover/Popover.module.css +7 -0
  30. package/dist/es/components/Select/Select.module.css +148 -0
  31. package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
  32. package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
  33. package/dist/es/components/Slider/Slider.module.css +80 -0
  34. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  35. package/dist/es/components/Switch/Switch.module.css +59 -4
  36. package/dist/es/components/TabBar/TabBar.module.css +255 -10
  37. package/dist/es/components/Tabs/Tabs.module.css +166 -1
  38. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  39. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  40. package/dist/es/components/Tip/Tip.module.css +456 -0
  41. package/dist/es/components/Toast/Toast.module.css +148 -5
  42. package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
  43. package/dist/es/styles/mobile-materials.css +103 -8
  44. package/dist/es/styles/mobile-surfaces.css +43 -0
  45. package/dist/es/styles/touch.css +619 -9
  46. package/dist/es/styles/variables-components.css +125 -5
  47. package/package.json +1 -1
  48. package/postcss/parseLightDark.mjs +20 -2
  49. package/postcss/phoneLayoutScope.mjs +139 -0
  50. package/postcss.config.mjs +3 -0
@@ -14,16 +14,34 @@
14
14
  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
15
  (IMG_5523/5526), so it takes alpha-12. Hover and press add more of the same; no native reference. */
16
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%)));
17
- /* The kit's edge in light: a 0.5px outline of #e8e8e8 (gray-100) all round, and the sides 0.5px darker in
18
- #d0d0d0 (gray-200), with a 2% shadow 8px down. Dark glass has neither in native frames, only its rim. */
17
+ /* The kit's edge in light: a 0.5px outline all round and the sides 0.5px darker, with a 2% shadow 8px
18
+ down. The kit burns the outline in (#e8e8e8 and #d0d0d0, linear burn), so it darkens whatever lies
19
+ under it by 23 and 47 levels: native glass on a page dimmed to 194 shows its edge at 170 to 177
20
+ (IMG_5533; plan 172). Black at 9% all round does the same on any background, where a fixed gray-100
21
+ vanished on a gray page and read lighter than a darker one; the sides lie over it, so 10% more
22
+ comes to 18% there. Dark glass has neither in native frames, only its rim. */
19
23
  /* The kit's Glass Effect frosts at a radius of 6 (iOS 27 Buttons - 44pt, 5720:29596; refraction 0.7,
20
- depth 30, light 0.25 are not drawn: CSS has no lens for a backdrop). */
21
- --mobile-glass-backdrop-filter: blur(6px);
24
+ depth 30, light 0.25 are not drawn: CSS has no lens for a backdrop). Native glass frosts much harder:
25
+ black 17pt text under a bottom capsule comes to 228 to 237 on 245 to 250 (Mail IMG_5551, Phone
26
+ IMG_5615), a smudge, where 6px left the letters legible through the capsule (plan 172). */
27
+ --mobile-glass-backdrop-filter: blur(12px);
28
+ /* A knob held down turns into a clear lens of glass, 58 x 38 around the 38 x 24 knob and on the same centre
29
+ (kit iOS 27, Toggles 29:56814 and Sliders 7:53847, State=Pressed): white at 9% over the track, a 0.5pt
30
+ edge burned in (#ccc, linear burn: black at 20%), a light rim 0.75pt in along the top and the bottom
31
+ (Specular Light, 40 levels added) and a soft shadow 7pt down (a black ring blurred by 6 at half opacity).
32
+ The knob grows by scale, so the lengths below are the kit's divided by it. The lens's refraction (0.8,
33
+ depth 7) has no CSS equivalent. */
34
+ --mobile-knob-lens-scale: calc(58 / 38) calc(38 / 24);
35
+ --mobile-knob-lens-background: rgb(255 255 255 / 9%);
36
+ --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%);
22
37
  /* Dark menus and Select lists are glass, as native iOS 26 pop-up menus and popovers are: the glass
23
38
  of the buttons, alpha-12, over a blurred backdrop (iOS2 IMG_5524, 5525, 5528: a sheet of 28 shows at
24
- 56, a card of 44 at 69, a switch behind spreads over about 10pt). Light menus keep the elevated
25
- surface; the blur applies in dark only. */
26
- --menu-mobile-backdrop-filter: blur(10px);
39
+ 56, a card of 44 at 69). The page under it does not read through: the white knob of a switch behind
40
+ the menu (37 by 24pt, IMG_5524) spreads to 55 by 37pt at half its height and keeps a third of its
41
+ strength (IMG_5525), a blur of 18 (14 to 20 by the width, the height and the peak); text under it is
42
+ 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. */
44
+ --menu-mobile-backdrop-filter: blur(18px);
27
45
  /* A popover takes the material of the menus: iOS 26 presents an action sheet from its source in the same
28
46
  dark glass (iOS2 IMG_5528: a card of 44 under it at 65 to 69, the sheet of 28 at 55). */
29
47
  --popover-mobile-background: var(--menu-mobile-background);
@@ -45,7 +63,7 @@
45
63
  --mobile-glass-background-hover: color-mix(in oklab, var(--gray-75) 65%, transparent);
46
64
  --mobile-glass-background-active: color-mix(in oklab, var(--gray-75) 75%, transparent);
47
65
  --mobile-glass-rim: rgb(255 255 255 / 100%);
48
- --mobile-glass-outline: 1.25px 0 0 -0.75px var(--gray-200), -1.25px 0 0 -0.75px var(--gray-200), 0 0 0 0.5px var(--gray-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%);
49
67
  --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);
50
68
  --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);
51
69
  --mobile-grabber-color: rgb(0 0 0 / 20%);
@@ -67,3 +85,80 @@
67
85
  --dialog-alert-fill: var(--alpha-12)
68
86
  }
69
87
  }
88
+ :root :where([data-plex-layout="phone"]) {
89
+ /* PlexUI colors. Light: the kit stacks white 25% over black 25%, 68/68/68 at 60% plus-lighter and 248 at 20%
90
+ luminosity, which comes to 248 over white and 133 over black: gray-75 (#f3f3f3) at 55%. Dark follows native
91
+ iOS 26 screens rather than the kit's flattened layers (about 10 on black): the glass lifts what is under it
92
+ 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
+ (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%)));
95
+ /* The kit's edge in light: a 0.5px outline all round and the sides 0.5px darker, with a 2% shadow 8px
96
+ down. The kit burns the outline in (#e8e8e8 and #d0d0d0, linear burn), so it darkens whatever lies
97
+ under it by 23 and 47 levels: native glass on a page dimmed to 194 shows its edge at 170 to 177
98
+ (IMG_5533; plan 172). Black at 9% all round does the same on any background, where a fixed gray-100
99
+ vanished on a gray page and read lighter than a darker one; the sides lie over it, so 10% more
100
+ comes to 18% there. Dark glass has neither in native frames, only its rim. */
101
+ /* The kit's Glass Effect frosts at a radius of 6 (iOS 27 Buttons - 44pt, 5720:29596; refraction 0.7,
102
+ depth 30, light 0.25 are not drawn: CSS has no lens for a backdrop). Native glass frosts much harder:
103
+ black 17pt text under a bottom capsule comes to 228 to 237 on 245 to 250 (Mail IMG_5551, Phone
104
+ IMG_5615), a smudge, where 6px left the letters legible through the capsule (plan 172). */
105
+ --mobile-glass-backdrop-filter: blur(12px);
106
+ /* A knob held down turns into a clear lens of glass, 58 x 38 around the 38 x 24 knob and on the same centre
107
+ (kit iOS 27, Toggles 29:56814 and Sliders 7:53847, State=Pressed): white at 9% over the track, a 0.5pt
108
+ edge burned in (#ccc, linear burn: black at 20%), a light rim 0.75pt in along the top and the bottom
109
+ (Specular Light, 40 levels added) and a soft shadow 7pt down (a black ring blurred by 6 at half opacity).
110
+ The knob grows by scale, so the lengths below are the kit's divided by it. The lens's refraction (0.8,
111
+ depth 7) has no CSS equivalent. */
112
+ --mobile-knob-lens-scale: calc(58 / 38) calc(38 / 24);
113
+ --mobile-knob-lens-background: rgb(255 255 255 / 9%);
114
+ --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
+ /* Dark menus and Select lists are glass, as native iOS 26 pop-up menus and popovers are: the glass
116
+ of the buttons, alpha-12, over a blurred backdrop (iOS2 IMG_5524, 5525, 5528: a sheet of 28 shows at
117
+ 56, a card of 44 at 69). The page under it does not read through: the white knob of a switch behind
118
+ the menu (37 by 24pt, IMG_5524) spreads to 55 by 37pt at half its height and keeps a third of its
119
+ strength (IMG_5525), a blur of 18 (14 to 20 by the width, the height and the peak); text under it is
120
+ 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. */
122
+ --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);
126
+ --popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
127
+ /* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
128
+ 08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
129
+ 235, an older frame to 233 (iOS2 IMG_5533). Dark: 34 to 45 over a page dimmed to 0 to 14 (IMG_5532). The
130
+ backdrop is blurred. The shadow is the raised glass one: 16 levels under the alert, gone within 33pt,
131
+ with the light rim along its edge (Files). */
132
+ --dialog-alert-backdrop-filter: blur(10px);
133
+ --dialog-alert-shadow: var(--mobile-glass-shadow-raised);
134
+ /* 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. */
136
+ --dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
137
+ /* A soft action and a field share one fill: Files 203 on 237 in light, 15% of black; dark 73 on 46. */
138
+ }
139
+ :root :where([data-plex-layout="phone"]), :root:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
140
+ --mobile-glass-background: color-mix(in oklab, var(--gray-75) 55%, transparent);
141
+ --mobile-glass-background-hover: color-mix(in oklab, var(--gray-75) 65%, transparent);
142
+ --mobile-glass-background-active: color-mix(in oklab, var(--gray-75) 75%, transparent);
143
+ --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%);
145
+ --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
+ --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);
149
+ --dialog-alert-background: rgb(255 255 255 / 65%);
150
+ --dialog-alert-fill: var(--alpha-15)
151
+ }
152
+ :root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
153
+ --mobile-glass-background: var(--alpha-12);
154
+ --mobile-glass-background-hover: var(--alpha-16);
155
+ --mobile-glass-background-active: var(--alpha-20);
156
+ --mobile-glass-rim: rgb(255 255 255 / 30%);
157
+ --mobile-glass-outline: 1.25px 0 0 -0.75px transparent, -1.25px 0 0 -0.75px transparent, 0 0 0 0.5px transparent;
158
+ --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
+ --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
+ --menu-mobile-background: var(--alpha-12);
162
+ --dialog-alert-background: var(--alpha-12);
163
+ --dialog-alert-fill: var(--alpha-12)
164
+ }
@@ -44,3 +44,46 @@
44
44
  --mobile-surface-elevated-grouped-tertiary: var(--gray-350);
45
45
  }
46
46
  }
47
+ :root :where([data-plex-layout="phone"]) {
48
+ /* The iOS label roles take the nearest PlexUI alpha of each theme, translucent like the native labels, so a
49
+ row on a card and a footer on the canvas read as in iOS 26. Native secondary is 60% (light: a count shows
50
+ at 138 on a white card, a subtitle at 133 on #f2f2f7, iOS2 IMG_5534; dark: 152 on a #1c1c1e card, 141 on
51
+ black, IMG_5530), tertiary 30% (a chevron at 197 on white, 89 on #1c1c1e), quaternary 18%. alpha-50 shows
52
+ at 134 on white and 141 on gray-150, alpha-25 at 194 and 85, alpha-15 at 219 and 62. A secondary
53
+ accessory (units and the pop-up chevrons of a row value) takes the secondary label: a pop-up shows at
54
+ 138 next to its value (iOS IMG_5442); a disclosure chevron is tertiary (197 next to a value at 138, IMG_5512). */
55
+ --mobile-label-secondary: var(--alpha-50);
56
+ --mobile-label-tertiary: var(--alpha-25);
57
+ --mobile-label-quaternary: var(--alpha-15);
58
+ --mobile-accessory-secondary: var(--mobile-label-secondary);
59
+ /* The iOS background roles take the nearest PlexUI gray of each theme: white stays gray-0, iOS #f2f2f7
60
+ is gray-75 (#f3f3f3, without the blue cast), #1c1c1e gray-150 (#1c1c1c), #2c2c2e gray-300 (#303030, the
61
+ PlexUI elevated surface), #3a3a3c gray-350 (#393939), and black the PlexUI canvas gray-0 (#0d0d0d). */
62
+ --mobile-surface-plain-primary: var(--gray-0);
63
+ }
64
+ :root :where([data-plex-layout="phone"]), :root:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
65
+ --mobile-surface-plain-secondary: var(--gray-75);
66
+ --mobile-surface-plain-tertiary: var(--gray-0);
67
+ --mobile-surface-grouped-primary: var(--gray-75);
68
+ --mobile-surface-grouped-secondary: var(--gray-0);
69
+ --mobile-surface-grouped-tertiary: var(--gray-75);
70
+ --mobile-surface-elevated-plain-primary: var(--gray-0);
71
+ --mobile-surface-elevated-plain-secondary: var(--gray-75);
72
+ --mobile-surface-elevated-plain-tertiary: var(--gray-0);
73
+ --mobile-surface-elevated-grouped-primary: var(--gray-75);
74
+ --mobile-surface-elevated-grouped-secondary: var(--gray-0);
75
+ --mobile-surface-elevated-grouped-tertiary: var(--gray-75);
76
+ }
77
+ :root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
78
+ --mobile-surface-plain-secondary: var(--gray-150);
79
+ --mobile-surface-plain-tertiary: var(--gray-300);
80
+ --mobile-surface-grouped-primary: var(--gray-0);
81
+ --mobile-surface-grouped-secondary: var(--gray-150);
82
+ --mobile-surface-grouped-tertiary: var(--gray-300);
83
+ --mobile-surface-elevated-plain-primary: var(--gray-150);
84
+ --mobile-surface-elevated-plain-secondary: var(--gray-300);
85
+ --mobile-surface-elevated-plain-tertiary: var(--gray-350);
86
+ --mobile-surface-elevated-grouped-primary: var(--gray-150);
87
+ --mobile-surface-elevated-grouped-secondary: var(--gray-300);
88
+ --mobile-surface-elevated-grouped-tertiary: var(--gray-350);
89
+ }