@plexui/styles 0.17.1 → 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.
@@ -1241,7 +1241,9 @@
1241
1241
  the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
1242
1242
  bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
1243
1243
  same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
1244
- native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. */
1244
+ native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. The alert's is one flat color, top to
1245
+ bottom, with no sheen and no edge (iOS 27.2 ref-app alert-2: 0082f7 on every row of Allow, 24.11): only the
1246
+ sheet's takes them. */
1245
1247
  .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
1246
1248
  --button-background-color: var(--toolbar-prominent-background);
1247
1249
  --button-background-color-hover: var(--toolbar-prominent-background-hover);
@@ -1249,10 +1251,10 @@
1249
1251
  --button-text-color: var(--toolbar-prominent-color);
1250
1252
  }
1251
1253
 
1252
- .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
1253
- background-image: var(--toolbar-prominent-sheen);
1254
- box-shadow: var(--toolbar-prominent-shadow);
1255
- }
1254
+ .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
1255
+ background-image: var(--toolbar-prominent-sheen);
1256
+ box-shadow: var(--toolbar-prominent-shadow);
1257
+ }
1256
1258
 
1257
1259
  /* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
1258
1260
  a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
@@ -1840,7 +1842,9 @@
1840
1842
  the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
1841
1843
  bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
1842
1844
  same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
1843
- native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. */
1845
+ native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. The alert's is one flat color, top to
1846
+ bottom, with no sheen and no edge (iOS 27.2 ref-app alert-2: 0082f7 on every row of Allow, 24.11): only the
1847
+ sheet's takes them. */
1844
1848
  :where([data-plex-layout="phone"]) .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
1845
1849
  --button-background-color: var(--toolbar-prominent-background);
1846
1850
  --button-background-color-hover: var(--toolbar-prominent-background-hover);
@@ -1848,10 +1852,10 @@
1848
1852
  --button-text-color: var(--toolbar-prominent-color);
1849
1853
  }
1850
1854
 
1851
- :where([data-plex-layout="phone"]) .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
1852
- background-image: var(--toolbar-prominent-sheen);
1853
- box-shadow: var(--toolbar-prominent-shadow);
1854
- }
1855
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
1856
+ background-image: var(--toolbar-prominent-sheen);
1857
+ box-shadow: var(--toolbar-prominent-shadow);
1858
+ }
1855
1859
 
1856
1860
  /* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
1857
1861
  a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
@@ -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), and black the PlexUI canvas gray-0 (#0d0d0d). */
18
- --mobile-surface-plain-primary: var(--gray-0);
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(--gray-0);
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), and black the PlexUI canvas gray-0 (#0d0d0d). */
62
- --mobile-surface-plain-primary: var(--gray-0);
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(--gray-0);
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
  }
@@ -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(--gray-0);
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(--gray-0);
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(--gray-0))",
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": "#0d0d0d",
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": "#0d0d0d",
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",