@onereach/styles 2.32.2 → 2.32.3-beta.2041.0

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/font.css CHANGED
@@ -1,2 +1,5 @@
1
+ /* Typography */
1
2
  @import "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap";
3
+
4
+ /* Iconography */
2
5
  @import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24..48,400..700,0..1,0";
package/main.css CHANGED
@@ -2,7 +2,7 @@
2
2
  @import "tailwindcss/components.css";
3
3
  @import "tailwindcss/utilities.css";
4
4
 
5
- @import "./font.css";
6
- @import "./scrollbar.css";
5
+ @import "font.css";
6
+ @import "scrollbar.css";
7
7
 
8
- @import "./dist/index.css";
8
+ @import "dist/index.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "2.32.2",
3
+ "version": "2.32.3-beta.2041.0",
4
4
  "description": "Styles for or-ui-next",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./main.css",
@@ -53,6 +53,5 @@
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
56
- },
57
- "gitHead": "e6740b4d3475ce24c7217ecd85e630c8af80bfe1"
56
+ }
58
57
  }
package/scrollbar.css CHANGED
@@ -1,17 +1,9 @@
1
- * {
2
- scrollbar-color: theme('textColor.on-disabled') theme('backgroundColor.surface-variant');
3
-
4
- /* @media (prefers-color-scheme: dark) {
5
- scrollbar-color: theme('textColor.on-disabled-dark') theme('backgroundColor.surface-variant-dark');
6
- } */
7
-
8
- scrollbar-width: thin;
9
- }
10
-
1
+ /* Webkit */
11
2
  ::-webkit-scrollbar {
12
3
  width: theme('width.xs');
13
4
  }
14
5
 
6
+ /* Webkit (light) */
15
7
  ::-webkit-scrollbar-track {
16
8
  background-color: theme('backgroundColor.surface-variant');
17
9
 
@@ -32,14 +24,27 @@
32
24
  border-radius: theme('borderRadius.sm');
33
25
  }
34
26
 
35
-
36
- :is(.dark, [data-theme="dark"]) * {
37
- scrollbar-color: theme('textColor.on-disabled-dark') theme('backgroundColor.surface-variant-dark');
38
- }
39
-
27
+ /* Webkit (dark) */
40
28
  :is(.dark, [data-theme="dark"]) ::-webkit-scrollbar-track {
41
29
  background-color: theme('backgroundColor.surface-variant-dark');
42
30
  }
31
+
43
32
  :is(.dark, [data-theme="dark"]) ::-webkit-scrollbar-thumb {
44
33
  background-color: theme('textColor.on-disabled-dark');
45
34
  }
35
+
36
+ /* Gecko (light) */
37
+ * {
38
+ scrollbar-color: theme('textColor.on-disabled') theme('backgroundColor.surface-variant');
39
+
40
+ /* @media (prefers-color-scheme: dark) {
41
+ scrollbar-color: theme('textColor.on-disabled-dark') theme('backgroundColor.surface-variant-dark');
42
+ } */
43
+
44
+ scrollbar-width: thin;
45
+ }
46
+
47
+ /* Gecko (dark) */
48
+ :is(.dark, [data-theme="dark"]) * {
49
+ scrollbar-color: theme('textColor.on-disabled-dark') theme('backgroundColor.surface-variant-dark');
50
+ }
@@ -227,6 +227,29 @@ module.exports = {
227
227
  });
228
228
  }),
229
229
 
230
+ // Layout
231
+ plugin(({ matchUtilities }) => {
232
+ matchUtilities({
233
+ 'layout': (value) => {
234
+ const { prefix = '', direction } = /^(?:(?<prefix>inline-)\.\.)?(?<direction>.+)$/.exec(value).groups;
235
+
236
+ return {
237
+ display: prefix + 'flex',
238
+ flexDirection: direction,
239
+ alignItems: direction === 'row' ? 'center' : 'normal',
240
+ };
241
+ },
242
+ }, {
243
+ values: {
244
+ 'row': 'row',
245
+ 'column': 'column',
246
+
247
+ 'inline-row': 'inline-..row',
248
+ 'inline-column': 'inline-..column',
249
+ },
250
+ });
251
+ }),
252
+
230
253
  // Interactivity
231
254
  plugin(({ addUtilities }) => {
232
255
  addUtilities({