@plexui/styles 0.17.2 → 0.17.3
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.
|
@@ -869,6 +869,29 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
|
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
+
/* The screens of the Plex Android look stay on the PlexUI canvas at night (gray-0, #0d0d0d): Material's dark
|
|
873
|
+
surfaces are not black, unlike iOS's (mobile-surfaces.css). */
|
|
874
|
+
@media (max-width: 767px) {
|
|
875
|
+
:root[data-platform="android"] {
|
|
876
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
877
|
+
}
|
|
878
|
+
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
879
|
+
--mobile-surface-grouped-primary: var(--gray-75);
|
|
880
|
+
}
|
|
881
|
+
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
882
|
+
--mobile-surface-grouped-primary: var(--gray-0);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
886
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
887
|
+
}
|
|
888
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
889
|
+
--mobile-surface-grouped-primary: var(--gray-75);
|
|
890
|
+
}
|
|
891
|
+
: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"]) {
|
|
892
|
+
--mobile-surface-grouped-primary: var(--gray-0);
|
|
893
|
+
}
|
|
894
|
+
|
|
872
895
|
/* A segmented control in a bar's own row (Tabs.module.css, the Plex Android segmented control in a bar): the
|
|
873
896
|
reference's in-bar capsule shows its selected segment in the screen's gray, the grouped page's color (#f1f1f3 on
|
|
874
897
|
its white capsule), and at night the dark page's, under the glass of the bar. */
|
|
@@ -14,10 +14,13 @@
|
|
|
14
14
|
--mobile-accessory-secondary: var(--mobile-label-secondary);
|
|
15
15
|
/* The iOS background roles take the nearest PlexUI gray of each theme: white stays gray-0, iOS #f2f2f7
|
|
16
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)
|
|
18
|
-
|
|
17
|
+
PlexUI elevated surface), #3a3a3c gray-350 (#393939). Black is black (--black), as UIKit's systemBackground and
|
|
18
|
+
systemGroupedBackground at night: on the PlexUI canvas gray-0 (#0d0d0d) a grouped list's gray-150 cards were
|
|
19
|
+
hard to tell from the screen (owner 24.11). Android keeps gray-0 (android.css): Material's dark surfaces are
|
|
20
|
+
not black. */
|
|
19
21
|
}
|
|
20
22
|
:where(:root), :where([data-theme="light"]) {
|
|
23
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
21
24
|
--mobile-surface-plain-secondary: var(--gray-75);
|
|
22
25
|
--mobile-surface-plain-tertiary: var(--gray-0);
|
|
23
26
|
--mobile-surface-grouped-primary: var(--gray-75);
|
|
@@ -28,12 +31,13 @@
|
|
|
28
31
|
--mobile-surface-elevated-plain-tertiary: var(--gray-0);
|
|
29
32
|
--mobile-surface-elevated-grouped-primary: var(--gray-75);
|
|
30
33
|
--mobile-surface-elevated-grouped-secondary: var(--gray-0);
|
|
31
|
-
--mobile-surface-elevated-grouped-tertiary: var(--gray-75)
|
|
34
|
+
--mobile-surface-elevated-grouped-tertiary: var(--gray-75)
|
|
32
35
|
}
|
|
33
36
|
:where([data-theme="dark"]) {
|
|
37
|
+
--mobile-surface-plain-primary: var(--black);
|
|
34
38
|
--mobile-surface-plain-secondary: var(--gray-150);
|
|
35
39
|
--mobile-surface-plain-tertiary: var(--gray-300);
|
|
36
|
-
--mobile-surface-grouped-primary: var(--
|
|
40
|
+
--mobile-surface-grouped-primary: var(--black);
|
|
37
41
|
--mobile-surface-grouped-secondary: var(--gray-150);
|
|
38
42
|
--mobile-surface-grouped-tertiary: var(--gray-300);
|
|
39
43
|
--mobile-surface-elevated-plain-primary: var(--gray-150);
|
|
@@ -41,7 +45,7 @@
|
|
|
41
45
|
--mobile-surface-elevated-plain-tertiary: var(--gray-350);
|
|
42
46
|
--mobile-surface-elevated-grouped-primary: var(--gray-150);
|
|
43
47
|
--mobile-surface-elevated-grouped-secondary: var(--gray-300);
|
|
44
|
-
--mobile-surface-elevated-grouped-tertiary: var(--gray-350)
|
|
48
|
+
--mobile-surface-elevated-grouped-tertiary: var(--gray-350)
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
:root :where([data-plex-layout="phone"]) {
|
|
@@ -58,10 +62,13 @@
|
|
|
58
62
|
--mobile-accessory-secondary: var(--mobile-label-secondary);
|
|
59
63
|
/* The iOS background roles take the nearest PlexUI gray of each theme: white stays gray-0, iOS #f2f2f7
|
|
60
64
|
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)
|
|
62
|
-
|
|
65
|
+
PlexUI elevated surface), #3a3a3c gray-350 (#393939). Black is black (--black), as UIKit's systemBackground and
|
|
66
|
+
systemGroupedBackground at night: on the PlexUI canvas gray-0 (#0d0d0d) a grouped list's gray-150 cards were
|
|
67
|
+
hard to tell from the screen (owner 24.11). Android keeps gray-0 (android.css): Material's dark surfaces are
|
|
68
|
+
not black. */
|
|
63
69
|
}
|
|
64
70
|
: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"]) {
|
|
71
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
65
72
|
--mobile-surface-plain-secondary: var(--gray-75);
|
|
66
73
|
--mobile-surface-plain-tertiary: var(--gray-0);
|
|
67
74
|
--mobile-surface-grouped-primary: var(--gray-75);
|
|
@@ -72,12 +79,13 @@
|
|
|
72
79
|
--mobile-surface-elevated-plain-tertiary: var(--gray-0);
|
|
73
80
|
--mobile-surface-elevated-grouped-primary: var(--gray-75);
|
|
74
81
|
--mobile-surface-elevated-grouped-secondary: var(--gray-0);
|
|
75
|
-
--mobile-surface-elevated-grouped-tertiary: var(--gray-75)
|
|
82
|
+
--mobile-surface-elevated-grouped-tertiary: var(--gray-75)
|
|
76
83
|
}
|
|
77
84
|
:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
85
|
+
--mobile-surface-plain-primary: var(--black);
|
|
78
86
|
--mobile-surface-plain-secondary: var(--gray-150);
|
|
79
87
|
--mobile-surface-plain-tertiary: var(--gray-300);
|
|
80
|
-
--mobile-surface-grouped-primary: var(--
|
|
88
|
+
--mobile-surface-grouped-primary: var(--black);
|
|
81
89
|
--mobile-surface-grouped-secondary: var(--gray-150);
|
|
82
90
|
--mobile-surface-grouped-tertiary: var(--gray-300);
|
|
83
91
|
--mobile-surface-elevated-plain-primary: var(--gray-150);
|
|
@@ -85,5 +93,5 @@
|
|
|
85
93
|
--mobile-surface-elevated-plain-tertiary: var(--gray-350);
|
|
86
94
|
--mobile-surface-elevated-grouped-primary: var(--gray-150);
|
|
87
95
|
--mobile-surface-elevated-grouped-secondary: var(--gray-300);
|
|
88
|
-
--mobile-surface-elevated-grouped-tertiary: var(--gray-350)
|
|
96
|
+
--mobile-surface-elevated-grouped-tertiary: var(--gray-350)
|
|
89
97
|
}
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
--mobile-label-tertiary: var(--alpha-25);
|
|
6
6
|
--mobile-label-quaternary: var(--alpha-15);
|
|
7
7
|
--mobile-accessory-secondary: var(--mobile-label-secondary);
|
|
8
|
-
--mobile-surface-plain-primary: var(--gray-0);
|
|
9
8
|
}
|
|
10
9
|
:where(:root), :where([data-theme="light"]) {
|
|
10
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
11
11
|
--mobile-surface-plain-secondary: var(--gray-75);
|
|
12
12
|
--mobile-surface-plain-tertiary: var(--gray-0);
|
|
13
13
|
--mobile-surface-grouped-primary: var(--gray-75);
|
|
@@ -21,9 +21,10 @@
|
|
|
21
21
|
--mobile-surface-elevated-grouped-tertiary: var(--gray-75);
|
|
22
22
|
}
|
|
23
23
|
:where([data-theme="dark"]) {
|
|
24
|
+
--mobile-surface-plain-primary: var(--black);
|
|
24
25
|
--mobile-surface-plain-secondary: var(--gray-150);
|
|
25
26
|
--mobile-surface-plain-tertiary: var(--gray-300);
|
|
26
|
-
--mobile-surface-grouped-primary: var(--
|
|
27
|
+
--mobile-surface-grouped-primary: var(--black);
|
|
27
28
|
--mobile-surface-grouped-secondary: var(--gray-150);
|
|
28
29
|
--mobile-surface-grouped-tertiary: var(--gray-300);
|
|
29
30
|
--mobile-surface-elevated-plain-primary: var(--gray-150);
|
|
@@ -39,9 +40,9 @@
|
|
|
39
40
|
--mobile-label-tertiary: var(--alpha-25);
|
|
40
41
|
--mobile-label-quaternary: var(--alpha-15);
|
|
41
42
|
--mobile-accessory-secondary: var(--mobile-label-secondary);
|
|
42
|
-
--mobile-surface-plain-primary: var(--gray-0);
|
|
43
43
|
}
|
|
44
44
|
: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"]) {
|
|
45
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
45
46
|
--mobile-surface-plain-secondary: var(--gray-75);
|
|
46
47
|
--mobile-surface-plain-tertiary: var(--gray-0);
|
|
47
48
|
--mobile-surface-grouped-primary: var(--gray-75);
|
|
@@ -55,9 +56,10 @@
|
|
|
55
56
|
--mobile-surface-elevated-grouped-tertiary: var(--gray-75);
|
|
56
57
|
}
|
|
57
58
|
:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
59
|
+
--mobile-surface-plain-primary: var(--black);
|
|
58
60
|
--mobile-surface-plain-secondary: var(--gray-150);
|
|
59
61
|
--mobile-surface-plain-tertiary: var(--gray-300);
|
|
60
|
-
--mobile-surface-grouped-primary: var(--
|
|
62
|
+
--mobile-surface-grouped-primary: var(--black);
|
|
61
63
|
--mobile-surface-grouped-secondary: var(--gray-150);
|
|
62
64
|
--mobile-surface-grouped-tertiary: var(--gray-300);
|
|
63
65
|
--mobile-surface-elevated-plain-primary: var(--gray-150);
|
|
@@ -819,6 +821,26 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
|
|
|
819
821
|
--android-ripple-grow-duration: 0s;
|
|
820
822
|
}
|
|
821
823
|
}
|
|
824
|
+
@media (max-width: 767px) {
|
|
825
|
+
:root[data-platform="android"] {
|
|
826
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
827
|
+
}
|
|
828
|
+
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
829
|
+
--mobile-surface-grouped-primary: var(--gray-75);
|
|
830
|
+
}
|
|
831
|
+
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
832
|
+
--mobile-surface-grouped-primary: var(--gray-0);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
836
|
+
--mobile-surface-plain-primary: var(--gray-0);
|
|
837
|
+
}
|
|
838
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
839
|
+
--mobile-surface-grouped-primary: var(--gray-75);
|
|
840
|
+
}
|
|
841
|
+
: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"]) {
|
|
842
|
+
--mobile-surface-grouped-primary: var(--gray-0);
|
|
843
|
+
}
|
|
822
844
|
@media (max-width: 767px) {
|
|
823
845
|
:root[data-platform="android"] {
|
|
824
846
|
--android-bar-segment-thumb: var(--mobile-surface-grouped-primary);
|
|
@@ -1715,10 +1715,10 @@ export const tokenLayers = [
|
|
|
1715
1715
|
"--mobile-label-tertiary": "var(--alpha-25)",
|
|
1716
1716
|
"--mobile-label-quaternary": "var(--alpha-15)",
|
|
1717
1717
|
"--mobile-accessory-secondary": "var(--mobile-label-secondary)",
|
|
1718
|
-
"--mobile-surface-plain-primary": "var(--gray-0)",
|
|
1718
|
+
"--mobile-surface-plain-primary": "light-dark(var(--gray-0), var(--black))",
|
|
1719
1719
|
"--mobile-surface-plain-secondary": "light-dark(var(--gray-75), var(--gray-150))",
|
|
1720
1720
|
"--mobile-surface-plain-tertiary": "light-dark(var(--gray-0), var(--gray-300))",
|
|
1721
|
-
"--mobile-surface-grouped-primary": "light-dark(var(--gray-75), var(--
|
|
1721
|
+
"--mobile-surface-grouped-primary": "light-dark(var(--gray-75), var(--black))",
|
|
1722
1722
|
"--mobile-surface-grouped-secondary": "light-dark(var(--gray-0), var(--gray-150))",
|
|
1723
1723
|
"--mobile-surface-grouped-tertiary": "light-dark(var(--gray-75), var(--gray-300))",
|
|
1724
1724
|
"--mobile-surface-elevated-plain-primary": "light-dark(var(--gray-0), var(--gray-150))",
|
|
@@ -5181,10 +5181,10 @@ export const resolvedTokens = {
|
|
|
5181
5181
|
"--mobile-surface-elevated-plain-primary": "#1c1c1c",
|
|
5182
5182
|
"--mobile-surface-elevated-plain-secondary": "#303030",
|
|
5183
5183
|
"--mobile-surface-elevated-plain-tertiary": "#393939",
|
|
5184
|
-
"--mobile-surface-grouped-primary": "#
|
|
5184
|
+
"--mobile-surface-grouped-primary": "#000000",
|
|
5185
5185
|
"--mobile-surface-grouped-secondary": "#1c1c1c",
|
|
5186
5186
|
"--mobile-surface-grouped-tertiary": "#303030",
|
|
5187
|
-
"--mobile-surface-plain-primary": "#
|
|
5187
|
+
"--mobile-surface-plain-primary": "#000000",
|
|
5188
5188
|
"--mobile-surface-plain-secondary": "#1c1c1c",
|
|
5189
5189
|
"--mobile-surface-plain-tertiary": "#303030",
|
|
5190
5190
|
"--mobile-switch-knob-lens-scale": "1.5676 1.5833",
|