@plexui/styles 0.1.33 → 0.1.35
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 +26 -1
- package/dist/es/components/Alert/Alert.module.css +213 -1
- package/dist/es/components/Badge/Badge.module.css +37 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +63 -0
- package/dist/es/components/Button/Button.module.css +123 -22
- package/dist/es/components/Button/NavigationButton.module.css +17 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
- package/dist/es/components/Card/Card.module.css +31 -6
- package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
- package/dist/es/components/CodeBlock/CodeBlock.module.css +34 -1
- package/dist/es/components/ColorPicker/ColorPicker.module.css +414 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +4 -0
- package/dist/es/components/DatePicker/Calendar.module.css +279 -6
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +226 -4
- package/dist/es/components/DateRangePicker/Trigger.module.css +45 -2
- package/dist/es/components/Dialog/Dialog.module.css +871 -89
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +52 -0
- package/dist/es/components/Field/Field.module.css +574 -24
- package/dist/es/components/FieldGroup/FieldGroup.module.css +188 -3
- package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +40 -1
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +28 -1
- package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
- package/dist/es/components/Input/Input.module.css +198 -1
- package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
- package/dist/es/components/Menu/Menu.module.css +544 -34
- package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
- package/dist/es/components/Page/Page.module.css +391 -31
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
- package/dist/es/components/Popover/Popover.module.css +17 -1
- package/dist/es/components/Select/Select.module.css +201 -9
- package/dist/es/components/SelectControl/SelectControl.module.css +151 -4
- package/dist/es/components/Sidebar/Sidebar.module.css +624 -71
- package/dist/es/components/Slider/Slider.module.css +132 -45
- package/dist/es/components/Sortable/Sortable.module.css +7 -3
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
- package/dist/es/components/Switch/Switch.module.css +59 -4
- package/dist/es/components/TabBar/TabBar.module.css +478 -0
- package/dist/es/components/Tabs/Tabs.module.css +315 -3
- package/dist/es/components/TagInput/TagInput.module.css +50 -9
- package/dist/es/components/Textarea/Textarea.module.css +6 -0
- package/dist/es/components/Tip/Tip.module.css +456 -0
- package/dist/es/components/Toast/Toast.module.css +197 -9
- package/dist/es/components/Toolbar/Toolbar.module.css +850 -21
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +145 -14
- package/dist/es/styles/mobile-surfaces.css +82 -32
- package/dist/es/styles/touch.css +940 -92
- package/dist/es/styles/variables-components.css +356 -17
- package/package.json +1 -1
- package/postcss/parseLightDark.mjs +20 -2
- package/postcss/phoneLayoutScope.mjs +134 -0
- package/postcss.config.mjs +3 -0
|
@@ -1,27 +1,158 @@
|
|
|
1
|
-
/* Mobile glass shared by Back, Close, More and the phone toolbar: Liquid Glass
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/* Mobile glass shared by Back, Close, More and the phone toolbar: the Liquid Glass of the iOS 27 kit's bar
|
|
2
|
+
buttons (Toolbars 507:25993, Buttons - 44pt 5432:23133). A translucent fill that lifts a dark backdrop and
|
|
3
|
+
dims a white one a little, a hairline outline with darker sides that keeps the capsule visible on any
|
|
4
|
+
background, a faint shadow, a sheen darker at the top and lighter at the bottom, and a thin rim of light
|
|
5
|
+
along the top and the bottom edges that fades out at the sides. The kit draws that rim on the top-left and
|
|
6
|
+
bottom-right corners; native glass lights the top and bottom alike and none of the sides (Photos Close,
|
|
7
|
+
IMG_5453; Calendar checkmark, IMG_5433; 08.11), and a rim on one diagonal made a round button read as an
|
|
8
|
+
oval. A deeper shadow comes once content is under the control. */
|
|
5
9
|
@media (max-width: 767px) {
|
|
6
10
|
:root {
|
|
11
|
+
/* PlexUI colors. Light: the kit stacks white 25% over black 25%, 68/68/68 at 60% plus-lighter and 248 at 20%
|
|
12
|
+
luminosity, which comes to 248 over white and 133 over black: gray-75 (#f3f3f3) at 55%. Dark follows native
|
|
13
|
+
iOS 26 screens rather than the kit's flattened layers (about 10 on black): the glass lifts what is under it
|
|
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
|
+
(IMG_5523/5526), so it takes alpha-12. Hover and press add more of the same; no native reference. */
|
|
7
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%)));
|
|
8
|
-
|
|
9
|
-
|
|
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. */
|
|
23
|
+
/* The kit's Glass Effect frosts at a radius of 6 (iOS 27 Buttons - 44pt, 5720:29596; refraction 0.7,
|
|
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%);
|
|
37
|
+
/* Dark menus and Select lists are glass, as native iOS 26 pop-up menus and popovers are: the glass
|
|
38
|
+
of the buttons, alpha-12, over a blurred backdrop (iOS2 IMG_5524, 5525, 5528: a sheet of 28 shows at
|
|
39
|
+
56, a card of 44 at 69, a switch behind spreads over about 10pt). Light menus keep the elevated
|
|
40
|
+
surface; the blur applies in dark only. */
|
|
41
|
+
--menu-mobile-backdrop-filter: blur(10px);
|
|
42
|
+
/* A popover takes the material of the menus: iOS 26 presents an action sheet from its source in the same
|
|
43
|
+
dark glass (iOS2 IMG_5528: a card of 44 under it at 65 to 69, the sheet of 28 at 55). */
|
|
44
|
+
--popover-mobile-background: var(--menu-mobile-background);
|
|
45
|
+
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
46
|
+
/* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
|
|
47
|
+
08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
|
|
48
|
+
235, an older frame to 233 (iOS2 IMG_5533). Dark: 34 to 45 over a page dimmed to 0 to 14 (IMG_5532). The
|
|
49
|
+
backdrop is blurred. The shadow is the raised glass one: 16 levels under the alert, gone within 33pt,
|
|
50
|
+
with the light rim along its edge (Files). */
|
|
51
|
+
--dialog-alert-backdrop-filter: blur(10px);
|
|
52
|
+
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
53
|
+
/* Native frames take precedence over the kit (plan 162): the message is the secondary label under a primary
|
|
54
|
+
title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. */
|
|
55
|
+
--dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
56
|
+
/* A soft action and a field share one fill: Files 203 on 237 in light, 15% of black; dark 73 on 46. */
|
|
10
57
|
}
|
|
11
58
|
:where(:root), :where([data-theme="light"]) {
|
|
12
|
-
--mobile-glass-background:
|
|
13
|
-
--mobile-glass-background-hover:
|
|
14
|
-
--mobile-glass-background-active:
|
|
59
|
+
--mobile-glass-background: color-mix(in oklab, var(--gray-75) 55%, transparent);
|
|
60
|
+
--mobile-glass-background-hover: color-mix(in oklab, var(--gray-75) 65%, transparent);
|
|
61
|
+
--mobile-glass-background-active: color-mix(in oklab, var(--gray-75) 75%, transparent);
|
|
15
62
|
--mobile-glass-rim: rgb(255 255 255 / 100%);
|
|
16
|
-
--mobile-glass-
|
|
63
|
+
--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%);
|
|
64
|
+
--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);
|
|
65
|
+
--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);
|
|
17
66
|
--mobile-grabber-color: rgb(0 0 0 / 20%);
|
|
67
|
+
--menu-mobile-background: var(--color-surface-elevated);
|
|
68
|
+
--dialog-alert-background: rgb(255 255 255 / 65%);
|
|
69
|
+
--dialog-alert-fill: var(--alpha-15)
|
|
18
70
|
}
|
|
19
71
|
:where([data-theme="dark"]) {
|
|
20
|
-
--mobile-glass-background:
|
|
21
|
-
--mobile-glass-background-hover:
|
|
22
|
-
--mobile-glass-background-active:
|
|
72
|
+
--mobile-glass-background: var(--alpha-12);
|
|
73
|
+
--mobile-glass-background-hover: var(--alpha-16);
|
|
74
|
+
--mobile-glass-background-active: var(--alpha-20);
|
|
23
75
|
--mobile-glass-rim: rgb(255 255 255 / 30%);
|
|
24
|
-
--mobile-glass-
|
|
76
|
+
--mobile-glass-outline: 1.25px 0 0 -0.75px transparent, -1.25px 0 0 -0.75px transparent, 0 0 0 0.5px transparent;
|
|
77
|
+
--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);
|
|
78
|
+
--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);
|
|
25
79
|
--mobile-grabber-color: rgb(255 255 255 / 20%);
|
|
80
|
+
--menu-mobile-background: var(--alpha-12);
|
|
81
|
+
--dialog-alert-background: var(--alpha-12);
|
|
82
|
+
--dialog-alert-fill: var(--alpha-12)
|
|
26
83
|
}
|
|
27
84
|
}
|
|
85
|
+
:root :where([data-plex-layout="phone"]) {
|
|
86
|
+
/* PlexUI colors. Light: the kit stacks white 25% over black 25%, 68/68/68 at 60% plus-lighter and 248 at 20%
|
|
87
|
+
luminosity, which comes to 248 over white and 133 over black: gray-75 (#f3f3f3) at 55%. Dark follows native
|
|
88
|
+
iOS 26 screens rather than the kit's flattened layers (about 10 on black): the glass lifts what is under it
|
|
89
|
+
by white at about 12.5%, 0 to 31/32 (Mail, iOS2 IMG_5530) and the 28/28/29 sheet to 57/57/59
|
|
90
|
+
(IMG_5523/5526), so it takes alpha-12. Hover and press add more of the same; no native reference. */
|
|
91
|
+
--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%)));
|
|
92
|
+
/* The kit's edge in light: a 0.5px outline all round and the sides 0.5px darker, with a 2% shadow 8px
|
|
93
|
+
down. The kit burns the outline in (#e8e8e8 and #d0d0d0, linear burn), so it darkens whatever lies
|
|
94
|
+
under it by 23 and 47 levels: native glass on a page dimmed to 194 shows its edge at 170 to 177
|
|
95
|
+
(IMG_5533; plan 172). Black at 9% all round does the same on any background, where a fixed gray-100
|
|
96
|
+
vanished on a gray page and read lighter than a darker one; the sides lie over it, so 10% more
|
|
97
|
+
comes to 18% there. Dark glass has neither in native frames, only its rim. */
|
|
98
|
+
/* The kit's Glass Effect frosts at a radius of 6 (iOS 27 Buttons - 44pt, 5720:29596; refraction 0.7,
|
|
99
|
+
depth 30, light 0.25 are not drawn: CSS has no lens for a backdrop). Native glass frosts much harder:
|
|
100
|
+
black 17pt text under a bottom capsule comes to 228 to 237 on 245 to 250 (Mail IMG_5551, Phone
|
|
101
|
+
IMG_5615), a smudge, where 6px left the letters legible through the capsule (plan 172). */
|
|
102
|
+
--mobile-glass-backdrop-filter: blur(12px);
|
|
103
|
+
/* 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
|
|
104
|
+
(kit iOS 27, Toggles 29:56814 and Sliders 7:53847, State=Pressed): white at 9% over the track, a 0.5pt
|
|
105
|
+
edge burned in (#ccc, linear burn: black at 20%), a light rim 0.75pt in along the top and the bottom
|
|
106
|
+
(Specular Light, 40 levels added) and a soft shadow 7pt down (a black ring blurred by 6 at half opacity).
|
|
107
|
+
The knob grows by scale, so the lengths below are the kit's divided by it. The lens's refraction (0.8,
|
|
108
|
+
depth 7) has no CSS equivalent. */
|
|
109
|
+
--mobile-knob-lens-scale: calc(58 / 38) calc(38 / 24);
|
|
110
|
+
--mobile-knob-lens-background: rgb(255 255 255 / 9%);
|
|
111
|
+
--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%);
|
|
112
|
+
/* Dark menus and Select lists are glass, as native iOS 26 pop-up menus and popovers are: the glass
|
|
113
|
+
of the buttons, alpha-12, over a blurred backdrop (iOS2 IMG_5524, 5525, 5528: a sheet of 28 shows at
|
|
114
|
+
56, a card of 44 at 69, a switch behind spreads over about 10pt). Light menus keep the elevated
|
|
115
|
+
surface; the blur applies in dark only. */
|
|
116
|
+
--menu-mobile-backdrop-filter: blur(10px);
|
|
117
|
+
/* A popover takes the material of the menus: iOS 26 presents an action sheet from its source in the same
|
|
118
|
+
dark glass (iOS2 IMG_5528: a card of 44 under it at 65 to 69, the sheet of 28 at 55). */
|
|
119
|
+
--popover-mobile-background: var(--menu-mobile-background);
|
|
120
|
+
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
121
|
+
/* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
|
|
122
|
+
08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
|
|
123
|
+
235, an older frame to 233 (iOS2 IMG_5533). Dark: 34 to 45 over a page dimmed to 0 to 14 (IMG_5532). The
|
|
124
|
+
backdrop is blurred. The shadow is the raised glass one: 16 levels under the alert, gone within 33pt,
|
|
125
|
+
with the light rim along its edge (Files). */
|
|
126
|
+
--dialog-alert-backdrop-filter: blur(10px);
|
|
127
|
+
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
128
|
+
/* Native frames take precedence over the kit (plan 162): the message is the secondary label under a primary
|
|
129
|
+
title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. */
|
|
130
|
+
--dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
131
|
+
/* A soft action and a field share one fill: Files 203 on 237 in light, 15% of black; dark 73 on 46. */
|
|
132
|
+
}
|
|
133
|
+
: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"]) {
|
|
134
|
+
--mobile-glass-background: color-mix(in oklab, var(--gray-75) 55%, transparent);
|
|
135
|
+
--mobile-glass-background-hover: color-mix(in oklab, var(--gray-75) 65%, transparent);
|
|
136
|
+
--mobile-glass-background-active: color-mix(in oklab, var(--gray-75) 75%, transparent);
|
|
137
|
+
--mobile-glass-rim: rgb(255 255 255 / 100%);
|
|
138
|
+
--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%);
|
|
139
|
+
--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);
|
|
140
|
+
--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);
|
|
141
|
+
--mobile-grabber-color: rgb(0 0 0 / 20%);
|
|
142
|
+
--menu-mobile-background: var(--color-surface-elevated);
|
|
143
|
+
--dialog-alert-background: rgb(255 255 255 / 65%);
|
|
144
|
+
--dialog-alert-fill: var(--alpha-15)
|
|
145
|
+
}
|
|
146
|
+
:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
147
|
+
--mobile-glass-background: var(--alpha-12);
|
|
148
|
+
--mobile-glass-background-hover: var(--alpha-16);
|
|
149
|
+
--mobile-glass-background-active: var(--alpha-20);
|
|
150
|
+
--mobile-glass-rim: rgb(255 255 255 / 30%);
|
|
151
|
+
--mobile-glass-outline: 1.25px 0 0 -0.75px transparent, -1.25px 0 0 -0.75px transparent, 0 0 0 0.5px transparent;
|
|
152
|
+
--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);
|
|
153
|
+
--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);
|
|
154
|
+
--mobile-grabber-color: rgb(255 255 255 / 20%);
|
|
155
|
+
--menu-mobile-background: var(--alpha-12);
|
|
156
|
+
--dialog-alert-background: var(--alpha-12);
|
|
157
|
+
--dialog-alert-fill: var(--alpha-12)
|
|
158
|
+
}
|
|
@@ -1,39 +1,89 @@
|
|
|
1
1
|
/* Contextual iOS background roles. Import with touch.css; no global body color is changed. */
|
|
2
2
|
@media (max-width: 767px) {
|
|
3
|
+
:root {
|
|
4
|
+
/* The iOS label roles take the nearest PlexUI alpha of each theme, translucent like the native labels, so a
|
|
5
|
+
row on a card and a footer on the canvas read as in iOS 26. Native secondary is 60% (light: a count shows
|
|
6
|
+
at 138 on a white card, a subtitle at 133 on #f2f2f7, iOS2 IMG_5534; dark: 152 on a #1c1c1e card, 141 on
|
|
7
|
+
black, IMG_5530), tertiary 30% (a chevron at 197 on white, 89 on #1c1c1e), quaternary 18%. alpha-50 shows
|
|
8
|
+
at 134 on white and 141 on gray-150, alpha-25 at 194 and 85, alpha-15 at 219 and 62. A secondary
|
|
9
|
+
accessory (units and the pop-up chevrons of a row value) takes the secondary label: a pop-up shows at
|
|
10
|
+
138 next to its value (iOS IMG_5442); a disclosure chevron is tertiary (197 next to a value at 138, IMG_5512). */
|
|
11
|
+
--mobile-label-secondary: var(--alpha-50);
|
|
12
|
+
--mobile-label-tertiary: var(--alpha-25);
|
|
13
|
+
--mobile-label-quaternary: var(--alpha-15);
|
|
14
|
+
--mobile-accessory-secondary: var(--mobile-label-secondary);
|
|
15
|
+
/* The iOS background roles take the nearest PlexUI gray of each theme: white stays gray-0, iOS #f2f2f7
|
|
16
|
+
is gray-75 (#f3f3f3, without the blue cast), #1c1c1e gray-150 (#1c1c1c), #2c2c2e gray-300 (#303030, the
|
|
17
|
+
PlexUI elevated surface), #3a3a3c gray-350 (#393939), and black the PlexUI canvas gray-0 (#0d0d0d). */
|
|
18
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
19
|
+
}
|
|
3
20
|
:where(:root), :where([data-theme="light"]) {
|
|
4
|
-
--mobile-
|
|
5
|
-
--mobile-
|
|
6
|
-
--mobile-
|
|
7
|
-
--mobile-
|
|
8
|
-
--mobile-surface-
|
|
9
|
-
--mobile-surface-plain-
|
|
10
|
-
--mobile-surface-plain-
|
|
11
|
-
--mobile-surface-
|
|
12
|
-
--mobile-surface-grouped-
|
|
13
|
-
--mobile-surface-grouped-
|
|
14
|
-
--mobile-surface-elevated-
|
|
15
|
-
--mobile-surface-elevated-plain-secondary: #f2f2f7;
|
|
16
|
-
--mobile-surface-elevated-plain-tertiary: #ffffff;
|
|
17
|
-
--mobile-surface-elevated-grouped-primary: #f2f2f7;
|
|
18
|
-
--mobile-surface-elevated-grouped-secondary: #ffffff;
|
|
19
|
-
--mobile-surface-elevated-grouped-tertiary: #f2f2f7
|
|
21
|
+
--mobile-surface-plain-secondary: var(--gray-75);
|
|
22
|
+
--mobile-surface-plain-tertiary: var(--gray-0);
|
|
23
|
+
--mobile-surface-grouped-primary: var(--gray-75);
|
|
24
|
+
--mobile-surface-grouped-secondary: var(--gray-0);
|
|
25
|
+
--mobile-surface-grouped-tertiary: var(--gray-75);
|
|
26
|
+
--mobile-surface-elevated-plain-primary: var(--gray-0);
|
|
27
|
+
--mobile-surface-elevated-plain-secondary: var(--gray-75);
|
|
28
|
+
--mobile-surface-elevated-plain-tertiary: var(--gray-0);
|
|
29
|
+
--mobile-surface-elevated-grouped-primary: var(--gray-75);
|
|
30
|
+
--mobile-surface-elevated-grouped-secondary: var(--gray-0);
|
|
31
|
+
--mobile-surface-elevated-grouped-tertiary: var(--gray-75);
|
|
20
32
|
}
|
|
21
33
|
:where([data-theme="dark"]) {
|
|
22
|
-
--mobile-
|
|
23
|
-
--mobile-
|
|
24
|
-
--mobile-
|
|
25
|
-
--mobile-
|
|
26
|
-
--mobile-surface-
|
|
27
|
-
--mobile-surface-plain-
|
|
28
|
-
--mobile-surface-plain-
|
|
29
|
-
--mobile-surface-
|
|
30
|
-
--mobile-surface-grouped-
|
|
31
|
-
--mobile-surface-grouped-
|
|
32
|
-
--mobile-surface-elevated-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
--mobile-surface-plain-secondary: var(--gray-150);
|
|
35
|
+
--mobile-surface-plain-tertiary: var(--gray-300);
|
|
36
|
+
--mobile-surface-grouped-primary: var(--gray-0);
|
|
37
|
+
--mobile-surface-grouped-secondary: var(--gray-150);
|
|
38
|
+
--mobile-surface-grouped-tertiary: var(--gray-300);
|
|
39
|
+
--mobile-surface-elevated-plain-primary: var(--gray-150);
|
|
40
|
+
--mobile-surface-elevated-plain-secondary: var(--gray-300);
|
|
41
|
+
--mobile-surface-elevated-plain-tertiary: var(--gray-350);
|
|
42
|
+
--mobile-surface-elevated-grouped-primary: var(--gray-150);
|
|
43
|
+
--mobile-surface-elevated-grouped-secondary: var(--gray-300);
|
|
44
|
+
--mobile-surface-elevated-grouped-tertiary: var(--gray-350);
|
|
45
|
+
}
|
|
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);
|
|
38
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);
|
|
39
89
|
}
|