@onereach/styles 2.26.1-beta.1720.0 → 2.26.1-beta.1732.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
CHANGED
|
@@ -599,30 +599,9 @@
|
|
|
599
599
|
"name": "dark-overlay",
|
|
600
600
|
"value": "rgba(27,27,29,0.8)",
|
|
601
601
|
"groupName": "dark/overlay"
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
"name": "light-skeleton",
|
|
605
|
-
"value": "#F6F8FD",
|
|
606
|
-
"groupName": "light/skeleton"
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
"name": "dark-skeleton",
|
|
610
|
-
"value": "#202123",
|
|
611
|
-
"groupName": "dark/skeleton"
|
|
612
|
-
}
|
|
613
|
-
],
|
|
614
|
-
"Gradients": [
|
|
615
|
-
{
|
|
616
|
-
"name": "light-skeleton-gradient",
|
|
617
|
-
"value": "linear-gradient(90deg, #F6F8FD 0%, #FFFFFF 50.01%, #F6F8FD 99.22%)",
|
|
618
|
-
"groupName": "light/skeleton/gradient"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"name": "dark-skeleton-gradient",
|
|
622
|
-
"value": "linear-gradient(90deg, #202123 0%, #1B1B1D 50.01%, #202123 99.22%)",
|
|
623
|
-
"groupName": "dark/skeleton/gradient"
|
|
624
602
|
}
|
|
625
603
|
],
|
|
604
|
+
"Gradients": [],
|
|
626
605
|
"Shadows": [
|
|
627
606
|
{
|
|
628
607
|
"name": "light-modal",
|
|
@@ -14,7 +14,6 @@ const {
|
|
|
14
14
|
const {
|
|
15
15
|
SpacePatterns: spacingTokens,
|
|
16
16
|
colors: colorTokens,
|
|
17
|
-
Gradients: gradientTokens,
|
|
18
17
|
BorderRadiuses: borderRadiusTokens,
|
|
19
18
|
Borders: borderWidthTokens,
|
|
20
19
|
Shadows: boxShadowTokens,
|
|
@@ -41,10 +40,6 @@ module.exports = {
|
|
|
41
40
|
'transparent': 'transparent',
|
|
42
41
|
},
|
|
43
42
|
|
|
44
|
-
backgroundImage: {
|
|
45
|
-
...parseColorTokens(gradientTokens, ['generic', 'background']),
|
|
46
|
-
},
|
|
47
|
-
|
|
48
43
|
textColor: {
|
|
49
44
|
...parseColorTokens(colorTokens, ['generic', 'text']),
|
|
50
45
|
'transparent': 'transparent',
|
|
@@ -81,7 +76,6 @@ module.exports = {
|
|
|
81
76
|
animation: {
|
|
82
77
|
'circular-loader': 'circular-loader 1400ms linear infinite',
|
|
83
78
|
'linear-loader': 'linear-loader 1400ms linear infinite',
|
|
84
|
-
'skeleton-loader': 'skeleton-loader 1.5s linear .5s infinite',
|
|
85
79
|
},
|
|
86
80
|
|
|
87
81
|
keyframes: {
|
|
@@ -116,16 +110,6 @@ module.exports = {
|
|
|
116
110
|
strokeDashoffset: '-250%',
|
|
117
111
|
},
|
|
118
112
|
},
|
|
119
|
-
|
|
120
|
-
'skeleton-loader': {
|
|
121
|
-
'0%': {
|
|
122
|
-
transform: 'translateX(-100%)',
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
'100%': {
|
|
126
|
-
transform: 'translateX(100%)',
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
113
|
},
|
|
130
114
|
|
|
131
115
|
borderRadius: {
|
|
@@ -323,7 +307,7 @@ module.exports = {
|
|
|
323
307
|
}),
|
|
324
308
|
|
|
325
309
|
// Theme
|
|
326
|
-
plugin(({ matchUtilities, addUtilities, theme }) => {
|
|
310
|
+
plugin(({ matchUtilities, addUtilities, addBase, theme }) => {
|
|
327
311
|
// Presets
|
|
328
312
|
matchUtilities({
|
|
329
313
|
'theme-preset-1': (value) => {
|
|
@@ -848,6 +832,43 @@ module.exports = {
|
|
|
848
832
|
'current': 'current',
|
|
849
833
|
},
|
|
850
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
|
+
});
|
|
851
872
|
}),
|
|
852
873
|
],
|
|
853
874
|
};
|
package/tokens.css
CHANGED
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
--or-c-warning-opacity-0-12: rgba(153,112,0,0.12);
|
|
63
63
|
--or-c-warning-opacity-0-16: rgba(153,112,0,0.16);
|
|
64
64
|
--or-c-overlay: rgba(27,27,29,0.8);
|
|
65
|
-
--or-c-skeleton: #F6F8FD;
|
|
66
65
|
}
|
|
67
66
|
[data-theme="dark-mode"], [data-theme="dark"] {
|
|
68
67
|
--or-c-primary: rgba(164,200,255,1);
|
|
@@ -124,5 +123,4 @@
|
|
|
124
123
|
--or-c-warning-opacity-0-12: rgba(251,188,12,0.12);
|
|
125
124
|
--or-c-warning-opacity-0-16: rgba(251,188,12,0.16);
|
|
126
125
|
--or-c-overlay: rgba(27,27,29,0.8);
|
|
127
|
-
--or-c-skeleton: #202123;
|
|
128
126
|
}
|