@onereach/styles 2.26.0 → 2.26.1-beta.1696.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 +38 -1
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.1696.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
|
}
|
|
@@ -307,7 +307,7 @@ module.exports = {
|
|
|
307
307
|
}),
|
|
308
308
|
|
|
309
309
|
// Theme
|
|
310
|
-
plugin(({ matchUtilities, addUtilities, theme }) => {
|
|
310
|
+
plugin(({ matchUtilities, addUtilities, addBase, theme }) => {
|
|
311
311
|
// Presets
|
|
312
312
|
matchUtilities({
|
|
313
313
|
'theme-preset-1': (value) => {
|
|
@@ -832,6 +832,43 @@ module.exports = {
|
|
|
832
832
|
'current': 'current',
|
|
833
833
|
},
|
|
834
834
|
});
|
|
835
|
+
|
|
836
|
+
// Default Styles
|
|
837
|
+
addBase({
|
|
838
|
+
'*': {
|
|
839
|
+
scrollbarColor: `${theme('textColor.on-disabled')} ${theme('backgroundColor.surface-variant')}`,
|
|
840
|
+
|
|
841
|
+
'@media (prefers-color-scheme: dark)': {
|
|
842
|
+
scrollbarColor: `${theme('textColor.on-disabled-dark')} ${theme('backgroundColor.surface-variant-dark')}`,
|
|
843
|
+
},
|
|
844
|
+
|
|
845
|
+
scrollbarWidth: 'thin',
|
|
846
|
+
},
|
|
847
|
+
|
|
848
|
+
'::-webkit-scrollbar': {
|
|
849
|
+
width: theme('width.xs'),
|
|
850
|
+
|
|
851
|
+
'&-track': {
|
|
852
|
+
backgroundColor: theme('backgroundColor.surface-variant'),
|
|
853
|
+
|
|
854
|
+
'@media (prefers-color-scheme: dark)': {
|
|
855
|
+
backgroundColor: theme('backgroundColor.surface-variant-dark'),
|
|
856
|
+
},
|
|
857
|
+
|
|
858
|
+
borderRadius: theme('borderRadius.sm'),
|
|
859
|
+
},
|
|
860
|
+
|
|
861
|
+
'&-thumb': {
|
|
862
|
+
backgroundColor: theme('textColor.on-disabled'),
|
|
863
|
+
|
|
864
|
+
'@media (prefers-color-scheme: dark)': {
|
|
865
|
+
backgroundColor: theme('textColor.on-disabled-dark'),
|
|
866
|
+
},
|
|
867
|
+
|
|
868
|
+
borderRadius: theme('borderRadius.sm'),
|
|
869
|
+
},
|
|
870
|
+
},
|
|
871
|
+
});
|
|
835
872
|
}),
|
|
836
873
|
],
|
|
837
874
|
};
|