@onereach/styles 2.29.0 → 2.29.1-beta.1852.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.29.0",
|
|
3
|
+
"version": "2.29.1-beta.1852.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": "df749de791ae89f5337130ea91bfbfff46eeaa15"
|
|
52
|
+
}
|
|
54
53
|
}
|
|
@@ -326,7 +326,7 @@ module.exports = {
|
|
|
326
326
|
}),
|
|
327
327
|
|
|
328
328
|
// Theme
|
|
329
|
-
plugin(({ matchUtilities, addUtilities, theme }) => {
|
|
329
|
+
plugin(({ matchUtilities, addUtilities, addBase, theme }) => {
|
|
330
330
|
// Presets
|
|
331
331
|
matchUtilities({
|
|
332
332
|
'theme-preset-1': (value) => {
|
|
@@ -851,6 +851,43 @@ module.exports = {
|
|
|
851
851
|
'current': 'current',
|
|
852
852
|
},
|
|
853
853
|
});
|
|
854
|
+
|
|
855
|
+
// Default Styles
|
|
856
|
+
addBase({
|
|
857
|
+
'*': {
|
|
858
|
+
scrollbarColor: `${theme('textColor.on-disabled')} ${theme('backgroundColor.surface-variant')}`,
|
|
859
|
+
|
|
860
|
+
'@media (prefers-color-scheme: dark)': {
|
|
861
|
+
scrollbarColor: `${theme('textColor.on-disabled-dark')} ${theme('backgroundColor.surface-variant-dark')}`,
|
|
862
|
+
},
|
|
863
|
+
|
|
864
|
+
scrollbarWidth: 'thin',
|
|
865
|
+
},
|
|
866
|
+
|
|
867
|
+
'::-webkit-scrollbar': {
|
|
868
|
+
width: theme('width.xs'),
|
|
869
|
+
|
|
870
|
+
'&-track': {
|
|
871
|
+
backgroundColor: theme('backgroundColor.surface-variant'),
|
|
872
|
+
|
|
873
|
+
'@media (prefers-color-scheme: dark)': {
|
|
874
|
+
backgroundColor: theme('backgroundColor.surface-variant-dark'),
|
|
875
|
+
},
|
|
876
|
+
|
|
877
|
+
borderRadius: theme('borderRadius.sm'),
|
|
878
|
+
},
|
|
879
|
+
|
|
880
|
+
'&-thumb': {
|
|
881
|
+
backgroundColor: theme('textColor.on-disabled'),
|
|
882
|
+
|
|
883
|
+
'@media (prefers-color-scheme: dark)': {
|
|
884
|
+
backgroundColor: theme('textColor.on-disabled-dark'),
|
|
885
|
+
},
|
|
886
|
+
|
|
887
|
+
borderRadius: theme('borderRadius.sm'),
|
|
888
|
+
},
|
|
889
|
+
},
|
|
890
|
+
});
|
|
854
891
|
}),
|
|
855
892
|
],
|
|
856
893
|
};
|