@onereach/styles 2.29.1-beta.1852.0 → 2.30.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 +23 -19
- package/tailwind.config.preset.js +1 -38
package/package.json
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.30.0",
|
|
4
4
|
"description": "Styles for or-ui-next",
|
|
5
|
+
"license": "UNLICENSED",
|
|
5
6
|
"main": "./main.css",
|
|
6
7
|
"unpkg": "./main.css",
|
|
7
8
|
"style": "./main.css",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "pnpm build:scss -- --watch",
|
|
10
|
-
"build": "npm-run-all build:tokens build:scss build:autoprefixer build:cleancss build:tokens:css",
|
|
11
|
-
"build:scss": "sass --embed-source-map ./src/main.scss dist/index.css",
|
|
12
|
-
"build:cleancss": "cleancss -o dist/index.min.css dist/index.css",
|
|
13
|
-
"build:autoprefixer": "npx postcss --use autoprefixer --map false --output dist/index.css dist/index.css",
|
|
14
|
-
"build:tokens": "pnpm json-to-scss",
|
|
15
|
-
"build:tokens:css": "node ./utils/makeCssVaribales.js",
|
|
16
|
-
"lint": "stylelint '**/*.scss'",
|
|
17
|
-
"fix": "stylelint --fix '**/*.scss'",
|
|
18
|
-
"clean": "rimraf dist",
|
|
19
|
-
"json-to-scss": "json-to-scss mock/design-tokens.json src/variables/tokens"
|
|
20
|
-
},
|
|
21
9
|
"files": [
|
|
22
10
|
"dist",
|
|
23
11
|
"src",
|
|
@@ -34,7 +22,23 @@
|
|
|
34
22
|
"main-v3.css",
|
|
35
23
|
"font.css"
|
|
36
24
|
],
|
|
37
|
-
"
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "pnpm build:scss -- --watch",
|
|
27
|
+
"build": "npm-run-all build:tokens build:scss build:autoprefixer build:cleancss build:tokens:css",
|
|
28
|
+
"build:scss": "sass --embed-source-map ./src/main.scss dist/index.css",
|
|
29
|
+
"build:cleancss": "cleancss -o dist/index.min.css dist/index.css",
|
|
30
|
+
"build:autoprefixer": "npx postcss --use autoprefixer --map false --output dist/index.css dist/index.css",
|
|
31
|
+
"build:tokens": "pnpm json-to-scss",
|
|
32
|
+
"build:tokens:css": "node ./utils/makeCssVaribales.js",
|
|
33
|
+
"lint": "stylelint '**/*.scss'",
|
|
34
|
+
"fix": "stylelint --fix '**/*.scss'",
|
|
35
|
+
"clean": "rimraf dist",
|
|
36
|
+
"json-to-scss": "json-to-scss mock/design-tokens.json src/variables/tokens"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@tailwindcss/typography": "^0.5.4",
|
|
40
|
+
"tailwindcss": "^3.1.3"
|
|
41
|
+
},
|
|
38
42
|
"devDependencies": {
|
|
39
43
|
"autoprefixer": "^10.2.5",
|
|
40
44
|
"clean-css-cli": "^5.2.2",
|
|
@@ -46,8 +50,8 @@
|
|
|
46
50
|
"postcss-preset-env": "^7.7.1",
|
|
47
51
|
"sass": "^1.35.1"
|
|
48
52
|
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"gitHead": "293fc663d40df5fcf004b918669afb31426c8442"
|
|
53
57
|
}
|
|
@@ -326,7 +326,7 @@ module.exports = {
|
|
|
326
326
|
}),
|
|
327
327
|
|
|
328
328
|
// Theme
|
|
329
|
-
plugin(({ matchUtilities, addUtilities,
|
|
329
|
+
plugin(({ matchUtilities, addUtilities, theme }) => {
|
|
330
330
|
// Presets
|
|
331
331
|
matchUtilities({
|
|
332
332
|
'theme-preset-1': (value) => {
|
|
@@ -851,43 +851,6 @@ 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
|
-
});
|
|
891
854
|
}),
|
|
892
855
|
],
|
|
893
856
|
};
|