@onereach/styles 2.26.0 → 2.26.1-beta.1695.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/package.json +2 -3
- package/tailwind.config.preset.js +39 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "2.26.0",
|
|
3
|
+
"version": "2.26.1-beta.1695.0",
|
|
4
4
|
"description": "Styles for or-ui-next",
|
|
5
5
|
"main": "./main.css",
|
|
6
6
|
"unpkg": "./main.css",
|
|
@@ -49,6 +49,5 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@tailwindcss/typography": "^0.5.4",
|
|
51
51
|
"tailwindcss": "^3.1.3"
|
|
52
|
-
}
|
|
53
|
-
"gitHead": "13188671567c5c8ae206d3fb39dd94e97c1ec218"
|
|
52
|
+
}
|
|
54
53
|
}
|
|
@@ -155,7 +155,7 @@ module.exports = {
|
|
|
155
155
|
|
|
156
156
|
plugins: [
|
|
157
157
|
// Core
|
|
158
|
-
plugin(({ addVariant
|
|
158
|
+
plugin(({ addVariant }) => {
|
|
159
159
|
addVariant('enabled', '&:not([disabled])');
|
|
160
160
|
addVariant('disabled', '&[disabled]');
|
|
161
161
|
|
|
@@ -197,15 +197,6 @@ module.exports = {
|
|
|
197
197
|
addVariant('last-child', ['& > *:last-child']);
|
|
198
198
|
|
|
199
199
|
addVariant('links', ['& :any-link']);
|
|
200
|
-
|
|
201
|
-
// TODO: Remove when migration complete
|
|
202
|
-
addUtilities({
|
|
203
|
-
'.visually-hidden': {
|
|
204
|
-
width: 0,
|
|
205
|
-
height: 0,
|
|
206
|
-
visibility: 'hidden',
|
|
207
|
-
},
|
|
208
|
-
});
|
|
209
200
|
}),
|
|
210
201
|
|
|
211
202
|
// Interactivity
|
|
@@ -307,7 +298,7 @@ module.exports = {
|
|
|
307
298
|
}),
|
|
308
299
|
|
|
309
300
|
// Theme
|
|
310
|
-
plugin(({ matchUtilities, addUtilities, theme }) => {
|
|
301
|
+
plugin(({ matchUtilities, addUtilities, addBase, theme }) => {
|
|
311
302
|
// Presets
|
|
312
303
|
matchUtilities({
|
|
313
304
|
'theme-preset-1': (value) => {
|
|
@@ -832,6 +823,43 @@ module.exports = {
|
|
|
832
823
|
'current': 'current',
|
|
833
824
|
},
|
|
834
825
|
});
|
|
826
|
+
|
|
827
|
+
// Default Styles
|
|
828
|
+
addBase({
|
|
829
|
+
'*': {
|
|
830
|
+
scrollbarColor: `${theme('textColor.on-disabled')} ${theme('backgroundColor.surface-variant')}`,
|
|
831
|
+
|
|
832
|
+
'@media (prefers-color-scheme: dark)': {
|
|
833
|
+
scrollbarColor: `${theme('textColor.on-disabled-dark')} ${theme('backgroundColor.surface-variant-dark')}`,
|
|
834
|
+
},
|
|
835
|
+
|
|
836
|
+
scrollbarWidth: 'thin',
|
|
837
|
+
},
|
|
838
|
+
|
|
839
|
+
'::-webkit-scrollbar': {
|
|
840
|
+
width: theme('width.xs'),
|
|
841
|
+
|
|
842
|
+
'&-track': {
|
|
843
|
+
backgroundColor: theme('backgroundColor.surface-variant'),
|
|
844
|
+
|
|
845
|
+
'@media (prefers-color-scheme: dark)': {
|
|
846
|
+
backgroundColor: theme('backgroundColor.surface-variant-dark'),
|
|
847
|
+
},
|
|
848
|
+
|
|
849
|
+
borderRadius: theme('borderRadius.sm'),
|
|
850
|
+
},
|
|
851
|
+
|
|
852
|
+
'&-thumb': {
|
|
853
|
+
backgroundColor: theme('textColor.on-disabled'),
|
|
854
|
+
|
|
855
|
+
'@media (prefers-color-scheme: dark)': {
|
|
856
|
+
backgroundColor: theme('textColor.on-disabled-dark'),
|
|
857
|
+
},
|
|
858
|
+
|
|
859
|
+
borderRadius: theme('borderRadius.sm'),
|
|
860
|
+
},
|
|
861
|
+
},
|
|
862
|
+
});
|
|
835
863
|
}),
|
|
836
864
|
],
|
|
837
865
|
};
|