@plexui/styles 0.17.8 → 0.17.10
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/ButtonGroup/ButtonGroup.module.css +2 -0
- package/dist/es/components/Field/Field.module.css +12 -8
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +12 -0
- package/dist/es/components/Input/Input.module.css +26 -4
- package/dist/es/components/Toolbar/Toolbar.module.css +2 -0
- package/dist/es/styles/android.css +34 -8
- package/dist/es/styles/touch.css +22 -8
- package/dist/es/styles/variables-components.css +3 -0
- package/dist/es/tokens/tokens.generated.js +10 -7
- package/dist/es/tokens/tokens.generated.js.map +1 -1
- package/package.json +1 -1
|
@@ -343,6 +343,7 @@
|
|
|
343
343
|
flex: none;
|
|
344
344
|
width: var(--toolbar-search-icon-size);
|
|
345
345
|
height: var(--toolbar-search-icon-size);
|
|
346
|
+
color: var(--toolbar-search-icon-color);
|
|
346
347
|
}
|
|
347
348
|
|
|
348
349
|
/* An invalid field keeps the Input's error line over the glass. */
|
|
@@ -601,6 +602,7 @@
|
|
|
601
602
|
flex: none;
|
|
602
603
|
width: var(--toolbar-search-icon-size);
|
|
603
604
|
height: var(--toolbar-search-icon-size);
|
|
605
|
+
color: var(--toolbar-search-icon-color);
|
|
604
606
|
}
|
|
605
607
|
|
|
606
608
|
/* An invalid field keeps the Input's error line over the glass. */
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
line starts to the card's edge. A card's last row, where no separator runs, ends 8 lower (a clear border, so its
|
|
876
876
|
padding and the line's place are the rows' above): its line stands as far under its text as theirs and 7 over
|
|
877
877
|
the card's edge (on the edge it read as the card's border), to where the card's 16 corner has curved in at that
|
|
878
|
-
height. An input card's field draws its own line. */
|
|
878
|
+
height, as far in from its end as from its start. An input card's field draws its own line. */
|
|
879
879
|
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)) {
|
|
880
880
|
position: relative;
|
|
881
881
|
}
|
|
@@ -899,8 +899,10 @@
|
|
|
899
899
|
border-block-end: 8px solid transparent;
|
|
900
900
|
}
|
|
901
901
|
|
|
902
|
+
/* Inside the card, off its rounded corner: as far in from its end as from its start, under the row's
|
|
903
|
+
content, not a bar that runs into the corner */
|
|
902
904
|
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child::before {
|
|
903
|
-
inset-inline-end:
|
|
905
|
+
inset-inline-end: var(--field-group-separator-inset-start, var(--field-group-separator-inset, var(--field-row-padding-inline, 0px)));
|
|
904
906
|
}
|
|
905
907
|
|
|
906
908
|
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [aria-hidden="true"]), textarea):focus:not([readonly]))::before {
|
|
@@ -1012,14 +1014,14 @@
|
|
|
1012
1014
|
|
|
1013
1015
|
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):-moz-placeholder-shown) > .LabelGroup > .Label {
|
|
1014
1016
|
width: 100%;
|
|
1015
|
-
color: var(--android-
|
|
1017
|
+
color: var(--android-on-surface-variant);
|
|
1016
1018
|
translate: 0 0;
|
|
1017
1019
|
scale: 1;
|
|
1018
1020
|
}
|
|
1019
1021
|
|
|
1020
1022
|
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):placeholder-shown) > .LabelGroup > .Label {
|
|
1021
1023
|
width: 100%;
|
|
1022
|
-
color: var(--android-
|
|
1024
|
+
color: var(--android-on-surface-variant);
|
|
1023
1025
|
translate: 0 0;
|
|
1024
1026
|
scale: 1;
|
|
1025
1027
|
}
|
|
@@ -1642,7 +1644,7 @@
|
|
|
1642
1644
|
line starts to the card's edge. A card's last row, where no separator runs, ends 8 lower (a clear border, so its
|
|
1643
1645
|
padding and the line's place are the rows' above): its line stands as far under its text as theirs and 7 over
|
|
1644
1646
|
the card's edge (on the edge it read as the card's border), to where the card's 16 corner has curved in at that
|
|
1645
|
-
height. An input card's field draws its own line. */
|
|
1647
|
+
height, as far in from its end as from its start. An input card's field draws its own line. */
|
|
1646
1648
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)) {
|
|
1647
1649
|
position: relative;
|
|
1648
1650
|
}
|
|
@@ -1666,8 +1668,10 @@
|
|
|
1666
1668
|
border-block-end: 8px solid transparent;
|
|
1667
1669
|
}
|
|
1668
1670
|
|
|
1671
|
+
/* Inside the card, off its rounded corner: as far in from its end as from its start, under the row's
|
|
1672
|
+
content, not a bar that runs into the corner */
|
|
1669
1673
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child::before {
|
|
1670
|
-
inset-inline-end:
|
|
1674
|
+
inset-inline-end: var(--field-group-separator-inset-start, var(--field-group-separator-inset, var(--field-row-padding-inline, 0px)));
|
|
1671
1675
|
}
|
|
1672
1676
|
|
|
1673
1677
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [aria-hidden="true"]), textarea):focus:not([readonly]))::before {
|
|
@@ -1776,14 +1780,14 @@
|
|
|
1776
1780
|
|
|
1777
1781
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):-moz-placeholder-shown) > .LabelGroup > .Label {
|
|
1778
1782
|
width: 100%;
|
|
1779
|
-
color: var(--android-
|
|
1783
|
+
color: var(--android-on-surface-variant);
|
|
1780
1784
|
translate: 0 0;
|
|
1781
1785
|
scale: 1;
|
|
1782
1786
|
}
|
|
1783
1787
|
|
|
1784
1788
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):placeholder-shown) > .LabelGroup > .Label {
|
|
1785
1789
|
width: 100%;
|
|
1786
|
-
color: var(--android-
|
|
1790
|
+
color: var(--android-on-surface-variant);
|
|
1787
1791
|
translate: 0 0;
|
|
1788
1792
|
scale: 1;
|
|
1789
1793
|
}
|
|
@@ -154,6 +154,12 @@
|
|
|
154
154
|
.ClearButton:last-child {
|
|
155
155
|
margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
|
|
156
156
|
}
|
|
157
|
+
|
|
158
|
+
/* The Plex Android look: the clear button shows while the field has focus and text, as Material Components'
|
|
159
|
+
clear-text end icon (ClearTextEndIconDelegate) */
|
|
160
|
+
[data-platform="android"] .Root:not(:focus-within) .ClearButton {
|
|
161
|
+
display: none;
|
|
162
|
+
}
|
|
157
163
|
}
|
|
158
164
|
/* On a phone the clear button is the filled circle with a cross of iOS (xmark.circle.fill, a 17px circle in
|
|
159
165
|
the tertiary label: kit iOS 27 Text Fields 5433:15635), drawn with the PlexUI XCircleFilled icon, whose
|
|
@@ -172,6 +178,12 @@
|
|
|
172
178
|
|
|
173
179
|
:where([data-plex-layout="phone"]) .ClearButton:last-child {
|
|
174
180
|
margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* The Plex Android look: the clear button shows while the field has focus and text, as Material Components'
|
|
184
|
+
clear-text end icon (ClearTextEndIconDelegate) */
|
|
185
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Root:not(:focus-within) .ClearButton {
|
|
186
|
+
display: none;
|
|
175
187
|
}/* Password reveal toggle — circular ghost button hugging the right edge */.RevealButton {
|
|
176
188
|
display: flex;
|
|
177
189
|
align-items: center;
|
|
@@ -589,6 +589,7 @@
|
|
|
589
589
|
flex: none;
|
|
590
590
|
width: var(--toolbar-search-icon-size);
|
|
591
591
|
height: var(--toolbar-search-icon-size);
|
|
592
|
+
color: var(--toolbar-search-icon-color);
|
|
592
593
|
}
|
|
593
594
|
|
|
594
595
|
/* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
|
|
@@ -749,8 +750,12 @@
|
|
|
749
750
|
--input-gap: 12px;
|
|
750
751
|
--input-font-size: 16px;
|
|
751
752
|
--input-adornment-offset: 0px;
|
|
752
|
-
--input-outline-border-color: var(--android-
|
|
753
|
-
--input-outline-border-color-hover: var(--android-
|
|
753
|
+
--input-outline-border-color: var(--android-outline);
|
|
754
|
+
--input-outline-border-color-hover: var(--android-outline);
|
|
755
|
+
/* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle in onSurfaceVariant (XCircleFilled draws
|
|
756
|
+
its circle 20 of 24) */
|
|
757
|
+
--input-clear-glyph-size: 20px;
|
|
758
|
+
--input-clear-glyph-color: var(--android-on-surface-variant);
|
|
754
759
|
--input-outline-border-color-focus: var(--android-accent-text);
|
|
755
760
|
--input-border-color-invalid: var(--android-danger-text);
|
|
756
761
|
--input-soft-background-color: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
@@ -766,6 +771,12 @@
|
|
|
766
771
|
caret-color: var(--color-text);
|
|
767
772
|
}
|
|
768
773
|
|
|
774
|
+
/* The clear button shows while the field has focus and text, as Material Components' clear-text end icon
|
|
775
|
+
(ClearTextEndIconDelegate); the search field (soft, led by its magnifier) keeps it with the text */
|
|
776
|
+
[data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *)):not(:focus-within):not([data-variant="soft"][data-has-start-adornment]) > .Clear {
|
|
777
|
+
display: none;
|
|
778
|
+
}
|
|
779
|
+
|
|
769
780
|
[data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="outline"]:not([data-disabled])[data-focused="true"] {
|
|
770
781
|
box-shadow: 0 0 0 1.5px var(--input-outline-border-color-focus) inset;
|
|
771
782
|
}
|
|
@@ -825,6 +836,7 @@
|
|
|
825
836
|
flex: none;
|
|
826
837
|
width: var(--toolbar-search-icon-size);
|
|
827
838
|
height: var(--toolbar-search-icon-size);
|
|
839
|
+
color: var(--toolbar-search-icon-color);
|
|
828
840
|
}
|
|
829
841
|
|
|
830
842
|
/* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
|
|
@@ -985,8 +997,12 @@
|
|
|
985
997
|
--input-gap: 12px;
|
|
986
998
|
--input-font-size: 16px;
|
|
987
999
|
--input-adornment-offset: 0px;
|
|
988
|
-
--input-outline-border-color: var(--android-
|
|
989
|
-
--input-outline-border-color-hover: var(--android-
|
|
1000
|
+
--input-outline-border-color: var(--android-outline);
|
|
1001
|
+
--input-outline-border-color-hover: var(--android-outline);
|
|
1002
|
+
/* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle in onSurfaceVariant (XCircleFilled draws
|
|
1003
|
+
its circle 20 of 24) */
|
|
1004
|
+
--input-clear-glyph-size: 20px;
|
|
1005
|
+
--input-clear-glyph-color: var(--android-on-surface-variant);
|
|
990
1006
|
--input-outline-border-color-focus: var(--android-accent-text);
|
|
991
1007
|
--input-border-color-invalid: var(--android-danger-text);
|
|
992
1008
|
--input-soft-background-color: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
@@ -1002,6 +1018,12 @@
|
|
|
1002
1018
|
caret-color: var(--color-text);
|
|
1003
1019
|
}
|
|
1004
1020
|
|
|
1021
|
+
/* The clear button shows while the field has focus and text, as Material Components' clear-text end icon
|
|
1022
|
+
(ClearTextEndIconDelegate); the search field (soft, led by its magnifier) keeps it with the text */
|
|
1023
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *)):not(:focus-within):not([data-variant="soft"][data-has-start-adornment]) > .Clear {
|
|
1024
|
+
display: none;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1005
1027
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="outline"]:not([data-disabled])[data-focused="true"] {
|
|
1006
1028
|
box-shadow: 0 0 0 1.5px var(--input-outline-border-color-focus) inset;
|
|
1007
1029
|
}
|
|
@@ -568,6 +568,7 @@
|
|
|
568
568
|
flex: none;
|
|
569
569
|
width: var(--toolbar-search-icon-size);
|
|
570
570
|
height: var(--toolbar-search-icon-size);
|
|
571
|
+
color: var(--toolbar-search-icon-color);
|
|
571
572
|
}
|
|
572
573
|
|
|
573
574
|
/* Title: centered in the 44px row. Native iOS 26 bars put its cap middle on the buttons' center
|
|
@@ -1848,6 +1849,7 @@
|
|
|
1848
1849
|
flex: none;
|
|
1849
1850
|
width: var(--toolbar-search-icon-size);
|
|
1850
1851
|
height: var(--toolbar-search-icon-size);
|
|
1852
|
+
color: var(--toolbar-search-icon-color);
|
|
1851
1853
|
}
|
|
1852
1854
|
|
|
1853
1855
|
/* Title: centered in the 44px row. Native iOS 26 bars put its cap middle on the buttons' center
|
|
@@ -163,11 +163,17 @@
|
|
|
163
163
|
light card and its lighter text at night; red text is the danger solid, its soft text at night; the line between
|
|
164
164
|
rows is a light gray, the darkest gray at night. */
|
|
165
165
|
:root[data-platform="android"] {
|
|
166
|
+
/* A search field's magnifier keeps the text color: the iOS hint gray (--toolbar-search-icon-color) is iOS's alone,
|
|
167
|
+
in a bar, a bar's group or a row */
|
|
168
|
+
--toolbar-search-icon-color: var(--color-text);
|
|
166
169
|
/* An off switch's track and an empty checkbox's outline: a mid gray, a darker one at night. A held solid button's
|
|
167
170
|
layer: black at 5.9%, white at 5.1% at night. */
|
|
168
171
|
/* A field's hint: a light gray, a dim one at night. A field's idle outline: a light gray, the text at 24% at
|
|
169
172
|
night. A search field in the content: the text at 5%, 7% at
|
|
170
173
|
night. */
|
|
174
|
+
/* Material 3's roles for a field, as @plexui/react-native's Material theme computes them for Plex's grays:
|
|
175
|
+
`outline` (tone 50, 60 at night) for an outlined field's line at rest, at least 3:1 on the surface, and
|
|
176
|
+
`onSurfaceVariant` (tone 30, 80) for its label and the clear-text icon, at least 4.5:1 */
|
|
171
177
|
--list-row-inset: 21px;
|
|
172
178
|
--field-row-min-height: 50px;
|
|
173
179
|
--field-row-text-padding-block: 12px;
|
|
@@ -199,6 +205,8 @@
|
|
|
199
205
|
--android-button-solid-press: rgb(0 0 0 / 5.9%);
|
|
200
206
|
--android-hint: #a8a8a8;
|
|
201
207
|
--android-field-line: #dbdbdb;
|
|
208
|
+
--android-outline: #777;
|
|
209
|
+
--android-on-surface-variant: #474747;
|
|
202
210
|
--android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
203
211
|
}
|
|
204
212
|
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
@@ -210,6 +218,8 @@
|
|
|
210
218
|
--android-button-solid-press: rgb(255 255 255 / 5.1%);
|
|
211
219
|
--android-hint: #7d7d7d;
|
|
212
220
|
--android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
|
|
221
|
+
--android-outline: #919191;
|
|
222
|
+
--android-on-surface-variant: #c6c6c6;
|
|
213
223
|
--android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
|
|
214
224
|
}
|
|
215
225
|
|
|
@@ -224,14 +234,17 @@
|
|
|
224
234
|
--floating-input-box-radius: 8px;
|
|
225
235
|
--floating-input-box-gutter: 14px;
|
|
226
236
|
--floating-input-font-size: 16px;
|
|
227
|
-
--floating-input-border-color: var(--android-
|
|
228
|
-
--floating-input-border-color-hover: var(--android-
|
|
237
|
+
--floating-input-border-color: var(--android-outline);
|
|
238
|
+
--floating-input-border-color-hover: var(--android-outline);
|
|
229
239
|
--floating-input-border-color-focus: var(--android-accent-text);
|
|
230
240
|
--floating-input-border-color-invalid: var(--android-danger-text);
|
|
231
|
-
--floating-input-label-color: var(--android-
|
|
241
|
+
--floating-input-label-color: var(--android-on-surface-variant);
|
|
232
242
|
--floating-input-label-color-focus: var(--android-accent-text);
|
|
233
243
|
--floating-input-label-color-invalid: var(--android-danger-text);
|
|
234
|
-
--floating-input-inside-label-color: var(--android-
|
|
244
|
+
--floating-input-inside-label-color: var(--android-on-surface-variant);
|
|
245
|
+
/* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle (XCircleFilled draws its circle 20 of 24) */
|
|
246
|
+
--floating-input-clear-glyph-size: 20px;
|
|
247
|
+
--floating-input-clear-glyph-color: var(--android-on-surface-variant);
|
|
235
248
|
--floating-input-label-scale: 0.75;
|
|
236
249
|
--floating-input-inside-label-scale: 0.75;
|
|
237
250
|
--floating-input-inside-label-shift: -12px;
|
|
@@ -484,11 +497,17 @@
|
|
|
484
497
|
light card and its lighter text at night; red text is the danger solid, its soft text at night; the line between
|
|
485
498
|
rows is a light gray, the darkest gray at night. */
|
|
486
499
|
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
500
|
+
/* A search field's magnifier keeps the text color: the iOS hint gray (--toolbar-search-icon-color) is iOS's alone,
|
|
501
|
+
in a bar, a bar's group or a row */
|
|
502
|
+
--toolbar-search-icon-color: var(--color-text);
|
|
487
503
|
/* An off switch's track and an empty checkbox's outline: a mid gray, a darker one at night. A held solid button's
|
|
488
504
|
layer: black at 5.9%, white at 5.1% at night. */
|
|
489
505
|
/* A field's hint: a light gray, a dim one at night. A field's idle outline: a light gray, the text at 24% at
|
|
490
506
|
night. A search field in the content: the text at 5%, 7% at
|
|
491
507
|
night. */
|
|
508
|
+
/* Material 3's roles for a field, as @plexui/react-native's Material theme computes them for Plex's grays:
|
|
509
|
+
`outline` (tone 50, 60 at night) for an outlined field's line at rest, at least 3:1 on the surface, and
|
|
510
|
+
`onSurfaceVariant` (tone 30, 80) for its label and the clear-text icon, at least 4.5:1 */
|
|
492
511
|
--list-row-inset: 21px;
|
|
493
512
|
--field-row-min-height: 50px;
|
|
494
513
|
--field-row-text-padding-block: 12px;
|
|
@@ -520,6 +539,8 @@
|
|
|
520
539
|
--android-button-solid-press: rgb(0 0 0 / 5.9%);
|
|
521
540
|
--android-hint: #a8a8a8;
|
|
522
541
|
--android-field-line: #dbdbdb;
|
|
542
|
+
--android-outline: #777;
|
|
543
|
+
--android-on-surface-variant: #474747;
|
|
523
544
|
--android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
524
545
|
}
|
|
525
546
|
:root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
@@ -531,6 +552,8 @@
|
|
|
531
552
|
--android-button-solid-press: rgb(255 255 255 / 5.1%);
|
|
532
553
|
--android-hint: #7d7d7d;
|
|
533
554
|
--android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
|
|
555
|
+
--android-outline: #919191;
|
|
556
|
+
--android-on-surface-variant: #c6c6c6;
|
|
534
557
|
--android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
|
|
535
558
|
}
|
|
536
559
|
/* A field with a floating label (FloatingLabelInput, FloatingLabelSelect; @plexui/react-native's on Android): an
|
|
@@ -544,14 +567,17 @@
|
|
|
544
567
|
--floating-input-box-radius: 8px;
|
|
545
568
|
--floating-input-box-gutter: 14px;
|
|
546
569
|
--floating-input-font-size: 16px;
|
|
547
|
-
--floating-input-border-color: var(--android-
|
|
548
|
-
--floating-input-border-color-hover: var(--android-
|
|
570
|
+
--floating-input-border-color: var(--android-outline);
|
|
571
|
+
--floating-input-border-color-hover: var(--android-outline);
|
|
549
572
|
--floating-input-border-color-focus: var(--android-accent-text);
|
|
550
573
|
--floating-input-border-color-invalid: var(--android-danger-text);
|
|
551
|
-
--floating-input-label-color: var(--android-
|
|
574
|
+
--floating-input-label-color: var(--android-on-surface-variant);
|
|
552
575
|
--floating-input-label-color-focus: var(--android-accent-text);
|
|
553
576
|
--floating-input-label-color-invalid: var(--android-danger-text);
|
|
554
|
-
--floating-input-inside-label-color: var(--android-
|
|
577
|
+
--floating-input-inside-label-color: var(--android-on-surface-variant);
|
|
578
|
+
/* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle (XCircleFilled draws its circle 20 of 24) */
|
|
579
|
+
--floating-input-clear-glyph-size: 20px;
|
|
580
|
+
--floating-input-clear-glyph-color: var(--android-on-surface-variant);
|
|
555
581
|
--floating-input-label-scale: 0.75;
|
|
556
582
|
--floating-input-inside-label-scale: 0.75;
|
|
557
583
|
--floating-input-inside-label-shift: -12px;
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -265,6 +265,7 @@
|
|
|
265
265
|
--android-header-menu-shadow: var(--android-bar-shadow), 0 0 0 100vmax rgb(0 0 0 / 10%);
|
|
266
266
|
}
|
|
267
267
|
:root[data-platform="android"] {
|
|
268
|
+
--toolbar-search-icon-color: var(--color-text);
|
|
268
269
|
--list-row-inset: 21px;
|
|
269
270
|
--field-row-min-height: 50px;
|
|
270
271
|
--field-row-text-padding-block: 12px;
|
|
@@ -296,6 +297,8 @@
|
|
|
296
297
|
--android-button-solid-press: rgb(0 0 0 / 5.9%);
|
|
297
298
|
--android-hint: #a8a8a8;
|
|
298
299
|
--android-field-line: #dbdbdb;
|
|
300
|
+
--android-outline: #777;
|
|
301
|
+
--android-on-surface-variant: #474747;
|
|
299
302
|
--android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
300
303
|
}
|
|
301
304
|
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
@@ -307,6 +310,8 @@
|
|
|
307
310
|
--android-button-solid-press: rgb(255 255 255 / 5.1%);
|
|
308
311
|
--android-hint: #7d7d7d;
|
|
309
312
|
--android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
|
|
313
|
+
--android-outline: #919191;
|
|
314
|
+
--android-on-surface-variant: #c6c6c6;
|
|
310
315
|
--android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
|
|
311
316
|
}
|
|
312
317
|
:root[data-platform="android"] {
|
|
@@ -315,14 +320,16 @@
|
|
|
315
320
|
--floating-input-box-radius: 8px;
|
|
316
321
|
--floating-input-box-gutter: 14px;
|
|
317
322
|
--floating-input-font-size: 16px;
|
|
318
|
-
--floating-input-border-color: var(--android-
|
|
319
|
-
--floating-input-border-color-hover: var(--android-
|
|
323
|
+
--floating-input-border-color: var(--android-outline);
|
|
324
|
+
--floating-input-border-color-hover: var(--android-outline);
|
|
320
325
|
--floating-input-border-color-focus: var(--android-accent-text);
|
|
321
326
|
--floating-input-border-color-invalid: var(--android-danger-text);
|
|
322
|
-
--floating-input-label-color: var(--android-
|
|
327
|
+
--floating-input-label-color: var(--android-on-surface-variant);
|
|
323
328
|
--floating-input-label-color-focus: var(--android-accent-text);
|
|
324
329
|
--floating-input-label-color-invalid: var(--android-danger-text);
|
|
325
|
-
--floating-input-inside-label-color: var(--android-
|
|
330
|
+
--floating-input-inside-label-color: var(--android-on-surface-variant);
|
|
331
|
+
--floating-input-clear-glyph-size: 20px;
|
|
332
|
+
--floating-input-clear-glyph-color: var(--android-on-surface-variant);
|
|
326
333
|
--floating-input-label-scale: 0.75;
|
|
327
334
|
--floating-input-inside-label-scale: 0.75;
|
|
328
335
|
--floating-input-inside-label-shift: -12px;
|
|
@@ -519,6 +526,7 @@
|
|
|
519
526
|
--android-header-menu-shadow: var(--android-bar-shadow), 0 0 0 100vmax rgb(0 0 0 / 10%);
|
|
520
527
|
}
|
|
521
528
|
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
529
|
+
--toolbar-search-icon-color: var(--color-text);
|
|
522
530
|
--list-row-inset: 21px;
|
|
523
531
|
--field-row-min-height: 50px;
|
|
524
532
|
--field-row-text-padding-block: 12px;
|
|
@@ -550,6 +558,8 @@
|
|
|
550
558
|
--android-button-solid-press: rgb(0 0 0 / 5.9%);
|
|
551
559
|
--android-hint: #a8a8a8;
|
|
552
560
|
--android-field-line: #dbdbdb;
|
|
561
|
+
--android-outline: #777;
|
|
562
|
+
--android-on-surface-variant: #474747;
|
|
553
563
|
--android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
554
564
|
}
|
|
555
565
|
:root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
@@ -561,6 +571,8 @@
|
|
|
561
571
|
--android-button-solid-press: rgb(255 255 255 / 5.1%);
|
|
562
572
|
--android-hint: #7d7d7d;
|
|
563
573
|
--android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
|
|
574
|
+
--android-outline: #919191;
|
|
575
|
+
--android-on-surface-variant: #c6c6c6;
|
|
564
576
|
--android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
|
|
565
577
|
}
|
|
566
578
|
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
@@ -569,14 +581,16 @@
|
|
|
569
581
|
--floating-input-box-radius: 8px;
|
|
570
582
|
--floating-input-box-gutter: 14px;
|
|
571
583
|
--floating-input-font-size: 16px;
|
|
572
|
-
--floating-input-border-color: var(--android-
|
|
573
|
-
--floating-input-border-color-hover: var(--android-
|
|
584
|
+
--floating-input-border-color: var(--android-outline);
|
|
585
|
+
--floating-input-border-color-hover: var(--android-outline);
|
|
574
586
|
--floating-input-border-color-focus: var(--android-accent-text);
|
|
575
587
|
--floating-input-border-color-invalid: var(--android-danger-text);
|
|
576
|
-
--floating-input-label-color: var(--android-
|
|
588
|
+
--floating-input-label-color: var(--android-on-surface-variant);
|
|
577
589
|
--floating-input-label-color-focus: var(--android-accent-text);
|
|
578
590
|
--floating-input-label-color-invalid: var(--android-danger-text);
|
|
579
|
-
--floating-input-inside-label-color: var(--android-
|
|
591
|
+
--floating-input-inside-label-color: var(--android-on-surface-variant);
|
|
592
|
+
--floating-input-clear-glyph-size: 20px;
|
|
593
|
+
--floating-input-clear-glyph-color: var(--android-on-surface-variant);
|
|
580
594
|
--floating-input-label-scale: 0.75;
|
|
581
595
|
--floating-input-inside-label-scale: 0.75;
|
|
582
596
|
--floating-input-inside-label-shift: -12px;
|
|
@@ -557,6 +557,9 @@
|
|
|
557
557
|
--toolbar-search-icon-gap: 6.43px;
|
|
558
558
|
--toolbar-search-icon-size: 23.75px;
|
|
559
559
|
--toolbar-search-font-weight: 400;
|
|
560
|
+
/* The magnifier in the hint's gray, typed in or not: an iOS 26 search capsule draws its glyph and its "Search" in
|
|
561
|
+
one color (a system sheet's bottom search field, at 3x: both 134 134 138 on the capsule's 249 249 252) */
|
|
562
|
+
--toolbar-search-icon-color: var(--toolbar-search-placeholder-color);
|
|
560
563
|
--toolbar-flat-opacity: 80%;
|
|
561
564
|
--toolbar-flat-blur: 60px;
|
|
562
565
|
/* The large title of iOS 27.2 (Files, Settings, UIKit and SwiftUI on an iPhone 17, plan 178 block 10): the top
|
|
@@ -1209,6 +1209,7 @@ export const tokenLayers = [
|
|
|
1209
1209
|
"--toolbar-search-icon-size": "23.75px",
|
|
1210
1210
|
"--toolbar-search-font-weight": "400",
|
|
1211
1211
|
"--toolbar-search-placeholder-color": "light-dark(var(--alpha-40), var(--alpha-60))",
|
|
1212
|
+
"--toolbar-search-icon-color": "var(--toolbar-search-placeholder-color)",
|
|
1212
1213
|
"--toolbar-flat-opacity": "80%",
|
|
1213
1214
|
"--toolbar-flat-blur": "60px",
|
|
1214
1215
|
"--toolbar-large-title-gap": "13.3px",
|
|
@@ -1674,7 +1675,7 @@ export const tokenLayers = [
|
|
|
1674
1675
|
1,
|
|
1675
1676
|
0
|
|
1676
1677
|
],
|
|
1677
|
-
"order":
|
|
1678
|
+
"order": 1496,
|
|
1678
1679
|
"tokens": {
|
|
1679
1680
|
"--radius-2xs": "0.125rem",
|
|
1680
1681
|
"--radius-xs": "0.25rem",
|
|
@@ -1706,7 +1707,7 @@ export const tokenLayers = [
|
|
|
1706
1707
|
1,
|
|
1707
1708
|
0
|
|
1708
1709
|
],
|
|
1709
|
-
"order":
|
|
1710
|
+
"order": 1517,
|
|
1710
1711
|
"when": {
|
|
1711
1712
|
"maxWidth": 767
|
|
1712
1713
|
},
|
|
@@ -1738,7 +1739,7 @@ export const tokenLayers = [
|
|
|
1738
1739
|
1,
|
|
1739
1740
|
0
|
|
1740
1741
|
],
|
|
1741
|
-
"order":
|
|
1742
|
+
"order": 1533,
|
|
1742
1743
|
"when": {
|
|
1743
1744
|
"maxWidth": 767
|
|
1744
1745
|
},
|
|
@@ -1779,7 +1780,7 @@ export const tokenLayers = [
|
|
|
1779
1780
|
1,
|
|
1780
1781
|
0
|
|
1781
1782
|
],
|
|
1782
|
-
"order":
|
|
1783
|
+
"order": 1558,
|
|
1783
1784
|
"when": {
|
|
1784
1785
|
"maxWidth": 767
|
|
1785
1786
|
},
|
|
@@ -1796,7 +1797,7 @@ export const tokenLayers = [
|
|
|
1796
1797
|
1,
|
|
1797
1798
|
1
|
|
1798
1799
|
],
|
|
1799
|
-
"order":
|
|
1800
|
+
"order": 1585,
|
|
1800
1801
|
"when": {
|
|
1801
1802
|
"maxWidth": 767
|
|
1802
1803
|
},
|
|
@@ -2271,7 +2272,7 @@ export const tokenLayers = [
|
|
|
2271
2272
|
1,
|
|
2272
2273
|
1
|
|
2273
2274
|
],
|
|
2274
|
-
"order":
|
|
2275
|
+
"order": 2137,
|
|
2275
2276
|
"when": {
|
|
2276
2277
|
"minWidth": 414,
|
|
2277
2278
|
"maxWidth": 767
|
|
@@ -2289,7 +2290,7 @@ export const tokenLayers = [
|
|
|
2289
2290
|
1,
|
|
2290
2291
|
1
|
|
2291
2292
|
],
|
|
2292
|
-
"order":
|
|
2293
|
+
"order": 2138,
|
|
2293
2294
|
"when": {
|
|
2294
2295
|
"maxWidth": 575
|
|
2295
2296
|
},
|
|
@@ -4047,6 +4048,7 @@ export const resolvedTokens = {
|
|
|
4047
4048
|
"--toolbar-row-gap": 10,
|
|
4048
4049
|
"--toolbar-search-font-weight": 400,
|
|
4049
4050
|
"--toolbar-search-gutter": 10.54,
|
|
4051
|
+
"--toolbar-search-icon-color": "rgba(13, 13, 13, 0.4)",
|
|
4050
4052
|
"--toolbar-search-icon-gap": 6.43,
|
|
4051
4053
|
"--toolbar-search-icon-size": 23.75,
|
|
4052
4054
|
"--toolbar-search-padding-bottom": 14,
|
|
@@ -5830,6 +5832,7 @@ export const resolvedTokens = {
|
|
|
5830
5832
|
"--toolbar-row-gap": 10,
|
|
5831
5833
|
"--toolbar-search-font-weight": 400,
|
|
5832
5834
|
"--toolbar-search-gutter": 10.54,
|
|
5835
|
+
"--toolbar-search-icon-color": "rgba(255, 255, 255, 0.6)",
|
|
5833
5836
|
"--toolbar-search-icon-gap": 6.43,
|
|
5834
5837
|
"--toolbar-search-icon-size": 23.75,
|
|
5835
5838
|
"--toolbar-search-padding-bottom": 14,
|