@onereach/styles 27.0.2-beta.6111.0 → 27.0.2-beta.6121.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/README.md +0 -14
- package/base.layer.css +1 -6
- package/main-v3.css +6 -7
- package/package.json +14 -27
- package/rollup-plugin-tailwindcss-cli.css +3 -5
- package/tailwind/plugins/animation-delay.js +6 -4
- package/tailwind/plugins/theme-background.js +4 -8
- package/tailwind/plugins/theme-border.js +4 -8
- package/tailwind/plugins/theme-divider.js +7 -11
- package/tailwind/plugins/theme-foreground.js +4 -8
- package/tailwind/plugins/theme-outline.js +4 -8
- package/tailwind/plugins/theme-preset.js +38 -42
- package/tailwind/utils.js +0 -13
- package/tailwind.config.js +3 -1
- package/tailwind.config.json +11 -296
- package/tailwind.config.preset.js +228 -1
- package/MIGRATION_TAILWIND_V4.md +0 -149
- package/compat/tailwind-v3-utilities.css +0 -1
- package/main-v4.css +0 -3
- package/postcss/tailwind-v4-compat.cjs +0 -1097
- package/tailwind/compatibility/important.js +0 -36
- package/tailwind/compatibility/legacy-spacing.js +0 -141
- package/tailwind/plugins/legacy-spacing.js +0 -162
- package/tailwind.config.preset.v4.js +0 -231
package/README.md
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# @onereach/styles
|
|
2
|
-
|
|
3
|
-
Shared UI Next design tokens, base styles, and Tailwind presets.
|
|
4
|
-
|
|
5
|
-
## Tailwind CSS
|
|
6
|
-
|
|
7
|
-
- Tailwind CSS 3 consumers use `main-v3.css` and
|
|
8
|
-
`tailwind.config.preset.js`.
|
|
9
|
-
- Tailwind CSS 4 consumers use `main-v4.css` and
|
|
10
|
-
`tailwind.config.preset.v4.js`.
|
|
11
|
-
|
|
12
|
-
See [Migrate to Tailwind CSS 4](./MIGRATION_TAILWIND_V4.md) for copyable
|
|
13
|
-
dependency, PostCSS, config, CSS, source-scanning, dark-mode, and optional
|
|
14
|
-
legacy utility setup.
|
package/base.layer.css
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* stylelint-disable at-rule-no-deprecated */
|
|
2
1
|
@layer base {
|
|
3
2
|
|
|
4
3
|
.light-scheme {
|
|
@@ -12,12 +11,8 @@
|
|
|
12
11
|
body {
|
|
13
12
|
@apply text-on-background dark:text-on-background-dark;
|
|
14
13
|
@apply typography-body-1-regular;
|
|
14
|
+
@apply light-scheme dark:dark-scheme;
|
|
15
15
|
|
|
16
|
-
color-scheme: only light;
|
|
17
16
|
@apply overscroll-none overflow-hidden;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
:is(.dark, [data-theme="dark"]) body {
|
|
21
|
-
color-scheme: only dark;
|
|
22
|
-
}
|
|
23
18
|
}
|
package/main-v3.css
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
@import "tailwindcss";
|
|
3
|
-
@import "
|
|
4
|
-
@import "./font.css";
|
|
1
|
+
@import "tailwindcss/base.css";
|
|
2
|
+
@import "tailwindcss/components.css";
|
|
3
|
+
@import "tailwindcss/utilities.css";
|
|
5
4
|
|
|
6
|
-
@import "
|
|
7
|
-
@import "
|
|
5
|
+
@import "tokens-v3.css";
|
|
6
|
+
@import "font.css";
|
|
8
7
|
|
|
9
|
-
@
|
|
8
|
+
@import "base.layer.css";
|
package/package.json
CHANGED
|
@@ -1,64 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "27.0.2-beta.
|
|
3
|
+
"version": "27.0.2-beta.6121.0",
|
|
4
4
|
"description": "Styles for or-ui-next",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
|
-
"MIGRATION_TAILWIND_V4.md",
|
|
9
8
|
"icons",
|
|
10
9
|
"src",
|
|
11
10
|
"tailwind/**",
|
|
12
|
-
"compat",
|
|
13
11
|
"base.layer.css",
|
|
14
12
|
"font.css",
|
|
15
13
|
"legacy-ui-warning.scss",
|
|
16
14
|
"main-v3.css",
|
|
17
|
-
"main-v4.css",
|
|
18
|
-
"postcss",
|
|
19
15
|
"preflight-revert.css",
|
|
20
16
|
"rollup-plugin-tailwindcss-cli.css",
|
|
21
17
|
"scrollbar.css",
|
|
22
18
|
"tailwind.config.js",
|
|
23
19
|
"tailwind.config.json",
|
|
24
20
|
"tailwind.config.preset.js",
|
|
25
|
-
"tailwind.config.preset.v4.js",
|
|
26
21
|
"temporary-dark-v2.css",
|
|
27
22
|
"tokens.css",
|
|
28
23
|
"tokens-v3.css",
|
|
29
24
|
"tw-color-variables.css",
|
|
30
25
|
"screens.json"
|
|
31
26
|
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "npm-run-all build:tokens:css build:tokens:css:v3 build:resolve-config build:compat",
|
|
34
|
-
"build:compat": "node ./scripts/generateLegacyCompatibility.js",
|
|
35
|
-
"build:resolve-config": "node ./scripts/resolveConfig.js",
|
|
36
|
-
"build:tokens:css": "node ./utils/makeCssVaribales.js",
|
|
37
|
-
"build:tokens:css:v3": "node ./utils/makeCssVariablesV3.js",
|
|
38
|
-
"clean": "rimraf dist",
|
|
39
|
-
"fix": "stylelint --fix '**/*.scss'",
|
|
40
|
-
"lint": "stylelint '**/*.scss'",
|
|
41
|
-
"test:contract": "node --test tests/*.test.cjs"
|
|
42
|
-
},
|
|
43
27
|
"dependencies": {
|
|
44
|
-
"@onereach/font-icons": "^27.0.2-beta.
|
|
45
|
-
"
|
|
46
|
-
"tailwindcss": "4.3.2"
|
|
28
|
+
"@onereach/font-icons": "^27.0.2-beta.6121.0",
|
|
29
|
+
"tailwindcss": "3.4.16"
|
|
47
30
|
},
|
|
48
31
|
"devDependencies": {
|
|
49
|
-
"@tailwindcss/postcss": "4.3.2",
|
|
50
32
|
"npm-run-all": "^4.1.5",
|
|
51
33
|
"postcss": "8.4.32",
|
|
52
34
|
"postcss-cli": "^10.1.0",
|
|
53
35
|
"postcss-import": "^15.1.0",
|
|
54
36
|
"postcss-preset-env": "^9.1.0",
|
|
55
|
-
"sass": "^1.63.4"
|
|
56
|
-
"tailwindcss-v3": "npm:tailwindcss@3.4.16"
|
|
57
|
-
},
|
|
58
|
-
"peerDependencies": {
|
|
59
|
-
"postcss": "^8.4.32"
|
|
37
|
+
"sass": "^1.63.4"
|
|
60
38
|
},
|
|
61
39
|
"publishConfig": {
|
|
62
40
|
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "npm-run-all build:tokens:css build:tokens:css:v3 build:resolve-config",
|
|
44
|
+
"build:resolve-config": "node ./scripts/resolveConfig.js",
|
|
45
|
+
"build:tokens:css": "node ./utils/makeCssVaribales.js",
|
|
46
|
+
"build:tokens:css:v3": "node ./utils/makeCssVariablesV3.js",
|
|
47
|
+
"clean": "rimraf dist",
|
|
48
|
+
"fix": "stylelint --fix '**/*.scss'",
|
|
49
|
+
"lint": "stylelint '**/*.scss'"
|
|
63
50
|
}
|
|
64
|
-
}
|
|
51
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
@import "tailwindcss/
|
|
3
|
-
@import "tailwindcss/utilities";
|
|
4
|
-
@import "./dist/index.css";
|
|
1
|
+
@import "tailwindcss/components.css";
|
|
2
|
+
@import "tailwindcss/utilities.css";
|
|
5
3
|
|
|
6
|
-
@
|
|
4
|
+
@import "./dist/index.css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
|
2
2
|
|
|
3
|
-
const animationDelay = plugin(function ({
|
|
3
|
+
const animationDelay = plugin(function ({ addUtilities, theme, e }) {
|
|
4
4
|
const defaultValues = {
|
|
5
5
|
'none': '0s',
|
|
6
6
|
75: '75ms',
|
|
@@ -36,9 +36,11 @@ const animationDelay = plugin(function ({ matchUtilities, theme }) {
|
|
|
36
36
|
...userValues,
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
39
|
+
const utilities = Object.entries(values).map(([key, value]) => ({
|
|
40
|
+
[`.${e(`animation-delay-${key}`)}`]: { animationDelay: `${value}` },
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
addUtilities(utilities);
|
|
42
44
|
});
|
|
43
45
|
|
|
44
46
|
module.exports = {
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
const { markImportant } = require('../compatibility/important');
|
|
4
|
-
const { resolveThemeValue } = require('../utils');
|
|
5
|
-
|
|
6
2
|
const { variants } = require('./core');
|
|
7
3
|
|
|
8
4
|
const values = {
|
|
@@ -202,11 +198,11 @@ module.exports = {
|
|
|
202
198
|
const [token, suffix = ''] = value.split('..');
|
|
203
199
|
|
|
204
200
|
return {
|
|
205
|
-
backgroundColor:
|
|
201
|
+
backgroundColor: theme(`backgroundColor.${token}` + suffix, token),
|
|
206
202
|
|
|
207
|
-
[variants['disabled']]: ['white', 'black', 'transparent'].includes(token) ? null :
|
|
208
|
-
backgroundColor:
|
|
209
|
-
}
|
|
203
|
+
[variants['disabled']]: ['white', 'black', 'transparent'].includes(token) ? null : {
|
|
204
|
+
backgroundColor: `${theme('backgroundColor.disabled' + suffix)} !important`,
|
|
205
|
+
},
|
|
210
206
|
|
|
211
207
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
212
208
|
transitionDuration: theme('transitionDuration.short'),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
const { markImportant } = require('../compatibility/important');
|
|
4
|
-
const { resolveThemeValue } = require('../utils');
|
|
5
|
-
|
|
6
2
|
const { variants } = require('./core');
|
|
7
3
|
|
|
8
4
|
const values = {
|
|
@@ -53,11 +49,11 @@ module.exports = {
|
|
|
53
49
|
|
|
54
50
|
return {
|
|
55
51
|
borderStyle: 'solid',
|
|
56
|
-
borderColor:
|
|
52
|
+
borderColor: theme(`borderColor.${token}` + suffix, token),
|
|
57
53
|
|
|
58
|
-
[variants['disabled']]: ['transparent'].includes(token) ? null :
|
|
59
|
-
borderColor:
|
|
60
|
-
}
|
|
54
|
+
[variants['disabled']]: ['transparent'].includes(token) ? null : {
|
|
55
|
+
borderColor: `${theme('borderColor.disabled' + suffix)} !important`,
|
|
56
|
+
},
|
|
61
57
|
|
|
62
58
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
63
59
|
transitionDuration: theme('transitionDuration.short'),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
const { markImportant } = require('../compatibility/important');
|
|
4
|
-
const { resolveThemeValue } = require('../utils');
|
|
5
|
-
|
|
6
2
|
const { variants } = require('./core');
|
|
7
3
|
|
|
8
4
|
const values = {
|
|
@@ -53,14 +49,14 @@ module.exports = {
|
|
|
53
49
|
|
|
54
50
|
return {
|
|
55
51
|
[variants['children']]: {
|
|
56
|
-
'&:not(:first-child)':
|
|
57
|
-
borderInlineStartStyle: 'none',
|
|
58
|
-
}
|
|
52
|
+
'&:not(:first-child)': {
|
|
53
|
+
borderInlineStartStyle: 'none !important',
|
|
54
|
+
},
|
|
59
55
|
|
|
60
56
|
'&:not(:last-child)': {
|
|
61
57
|
borderInlineEndStyle: 'solid',
|
|
62
58
|
borderInlineEndWidth: '1px',
|
|
63
|
-
borderInlineEndColor:
|
|
59
|
+
borderInlineEndColor: theme(`borderColor.${token}` + suffix, token),
|
|
64
60
|
},
|
|
65
61
|
|
|
66
62
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
@@ -70,9 +66,9 @@ module.exports = {
|
|
|
70
66
|
|
|
71
67
|
[variants['disabled']]: ['transparent'].includes(token) ? null : {
|
|
72
68
|
[variants['children']]: {
|
|
73
|
-
'&:not(:last-child)':
|
|
74
|
-
borderInlineEndColor:
|
|
75
|
-
}
|
|
69
|
+
'&:not(:last-child)': {
|
|
70
|
+
borderInlineEndColor: `${theme('borderColor.disabled' + suffix)} !important`,
|
|
71
|
+
},
|
|
76
72
|
},
|
|
77
73
|
},
|
|
78
74
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
const { markImportant } = require('../compatibility/important');
|
|
4
|
-
const { resolveThemeValue } = require('../utils');
|
|
5
|
-
|
|
6
2
|
const { variants } = require('./core');
|
|
7
3
|
|
|
8
4
|
const values = {
|
|
@@ -199,11 +195,11 @@ module.exports = {
|
|
|
199
195
|
const [token, suffix = ''] = value.split('..');
|
|
200
196
|
|
|
201
197
|
return {
|
|
202
|
-
color:
|
|
198
|
+
color: theme(`textColor.${token}` + suffix, token),
|
|
203
199
|
|
|
204
|
-
[variants['disabled']]: ['white', 'black', 'transparent'].includes(token) ? null :
|
|
205
|
-
color:
|
|
206
|
-
}
|
|
200
|
+
[variants['disabled']]: ['white', 'black', 'transparent'].includes(token) ? null : {
|
|
201
|
+
color: `${theme('textColor.on-disabled' + suffix)} !important`,
|
|
202
|
+
},
|
|
207
203
|
|
|
208
204
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
209
205
|
transitionDuration: theme('transitionDuration.short'),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
const { markImportant } = require('../compatibility/important');
|
|
4
|
-
const { resolveThemeValue } = require('../utils');
|
|
5
|
-
|
|
6
2
|
const { variants } = require('./core');
|
|
7
3
|
|
|
8
4
|
const values = {
|
|
@@ -44,11 +40,11 @@ module.exports = {
|
|
|
44
40
|
|
|
45
41
|
return {
|
|
46
42
|
outlineStyle: 'solid',
|
|
47
|
-
outlineColor:
|
|
43
|
+
outlineColor: theme(`outlineColor.${token}` + suffix, token),
|
|
48
44
|
|
|
49
|
-
[variants['disabled']]: ['transparent'].includes(token) ? null :
|
|
50
|
-
outlineColor:
|
|
51
|
-
}
|
|
45
|
+
[variants['disabled']]: ['transparent'].includes(token) ? null : {
|
|
46
|
+
outlineColor: `${theme('outlineColor.transparent' + suffix)} !important`,
|
|
47
|
+
},
|
|
52
48
|
|
|
53
49
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
54
50
|
transitionDuration: theme('transitionDuration.short'),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
const { markImportant } = require('../compatibility/important');
|
|
4
|
-
const { resolveThemeValue } = require('../utils');
|
|
5
|
-
|
|
6
2
|
const { variants } = require('./core');
|
|
7
3
|
|
|
8
4
|
const values = {
|
|
@@ -34,36 +30,36 @@ module.exports = {
|
|
|
34
30
|
const [token, suffix = ''] = value.split('..');
|
|
35
31
|
|
|
36
32
|
return {
|
|
37
|
-
color:
|
|
38
|
-
backgroundColor:
|
|
33
|
+
color: theme(`textColor.on-${token}` + suffix),
|
|
34
|
+
backgroundColor: theme(`backgroundColor.${token}` + suffix),
|
|
39
35
|
|
|
40
36
|
borderStyle: 'none',
|
|
41
37
|
outlineStyle: 'none',
|
|
42
38
|
|
|
43
39
|
[variants['mobile']]: {
|
|
44
40
|
[variants['active']]: {
|
|
45
|
-
backgroundColor:
|
|
41
|
+
backgroundColor: theme(`backgroundColor.${token}-hover` + suffix),
|
|
46
42
|
},
|
|
47
43
|
},
|
|
48
44
|
|
|
49
45
|
[variants['desktop']]: {
|
|
50
46
|
[variants['hover']]: {
|
|
51
|
-
backgroundColor:
|
|
47
|
+
backgroundColor: theme(`backgroundColor.${token}-hover` + suffix),
|
|
52
48
|
},
|
|
53
49
|
|
|
54
50
|
[variants['focus-visible']]: {
|
|
55
|
-
backgroundColor:
|
|
51
|
+
backgroundColor: theme(`backgroundColor.${token}-hover` + suffix),
|
|
56
52
|
},
|
|
57
53
|
|
|
58
54
|
[variants['active']]: {
|
|
59
|
-
backgroundColor:
|
|
55
|
+
backgroundColor: theme(`backgroundColor.${token}` + suffix),
|
|
60
56
|
},
|
|
61
57
|
},
|
|
62
58
|
|
|
63
|
-
[variants['disabled']]:
|
|
64
|
-
color:
|
|
65
|
-
backgroundColor:
|
|
66
|
-
}
|
|
59
|
+
[variants['disabled']]: {
|
|
60
|
+
color: `${theme('textColor.on-disabled' + suffix)} !important`,
|
|
61
|
+
backgroundColor: `${theme('backgroundColor.disabled' + suffix)} !important`,
|
|
62
|
+
},
|
|
67
63
|
|
|
68
64
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
69
65
|
transitionDuration: theme('transitionDuration.short'),
|
|
@@ -75,36 +71,36 @@ module.exports = {
|
|
|
75
71
|
const [token, suffix = ''] = value.split('..');
|
|
76
72
|
|
|
77
73
|
return {
|
|
78
|
-
color:
|
|
79
|
-
backgroundColor:
|
|
74
|
+
color: theme(`textColor.${token}` + suffix),
|
|
75
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-08` + suffix),
|
|
80
76
|
|
|
81
77
|
borderStyle: 'none',
|
|
82
78
|
outlineStyle: 'none',
|
|
83
79
|
|
|
84
80
|
[variants['mobile']]: {
|
|
85
81
|
[variants['active']]: {
|
|
86
|
-
backgroundColor:
|
|
82
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-12` + suffix),
|
|
87
83
|
},
|
|
88
84
|
},
|
|
89
85
|
|
|
90
86
|
[variants['desktop']]: {
|
|
91
87
|
[variants['hover']]: {
|
|
92
|
-
backgroundColor:
|
|
88
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-12` + suffix),
|
|
93
89
|
},
|
|
94
90
|
|
|
95
91
|
[variants['focus-visible']]: {
|
|
96
|
-
backgroundColor:
|
|
92
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-12` + suffix),
|
|
97
93
|
},
|
|
98
94
|
|
|
99
95
|
[variants['active']]: {
|
|
100
|
-
backgroundColor:
|
|
96
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-16` + suffix),
|
|
101
97
|
},
|
|
102
98
|
},
|
|
103
99
|
|
|
104
|
-
[variants['disabled']]:
|
|
105
|
-
color:
|
|
106
|
-
backgroundColor:
|
|
107
|
-
}
|
|
100
|
+
[variants['disabled']]: {
|
|
101
|
+
color: `${theme('textColor.on-disabled' + suffix)} !important`,
|
|
102
|
+
backgroundColor: `${theme('backgroundColor.disabled' + suffix)} !important`,
|
|
103
|
+
},
|
|
108
104
|
|
|
109
105
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
110
106
|
transitionDuration: theme('transitionDuration.short'),
|
|
@@ -116,7 +112,7 @@ module.exports = {
|
|
|
116
112
|
const [token, suffix = ''] = value.split('..');
|
|
117
113
|
|
|
118
114
|
return {
|
|
119
|
-
color:
|
|
115
|
+
color: theme(`textColor.${token}` + suffix),
|
|
120
116
|
backgroundColor: 'transparent',
|
|
121
117
|
|
|
122
118
|
borderStyle: 'none',
|
|
@@ -124,28 +120,28 @@ module.exports = {
|
|
|
124
120
|
|
|
125
121
|
[variants['mobile']]: {
|
|
126
122
|
[variants['active']]: {
|
|
127
|
-
backgroundColor:
|
|
123
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-08` + suffix),
|
|
128
124
|
},
|
|
129
125
|
},
|
|
130
126
|
|
|
131
127
|
[variants['desktop']]: {
|
|
132
128
|
[variants['hover']]: {
|
|
133
|
-
backgroundColor:
|
|
129
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-08` + suffix),
|
|
134
130
|
},
|
|
135
131
|
|
|
136
132
|
[variants['focus-visible']]: {
|
|
137
|
-
backgroundColor:
|
|
133
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-08` + suffix),
|
|
138
134
|
},
|
|
139
135
|
|
|
140
136
|
[variants['active']]: {
|
|
141
|
-
backgroundColor:
|
|
137
|
+
backgroundColor: theme(`backgroundColor.${token}-opacity-0-16` + suffix),
|
|
142
138
|
},
|
|
143
139
|
},
|
|
144
140
|
|
|
145
|
-
[variants['disabled']]:
|
|
146
|
-
color:
|
|
147
|
-
backgroundColor: 'transparent',
|
|
148
|
-
}
|
|
141
|
+
[variants['disabled']]: {
|
|
142
|
+
color: `${theme('textColor.on-disabled' + suffix)} !important`,
|
|
143
|
+
backgroundColor: 'transparent !important',
|
|
144
|
+
},
|
|
149
145
|
|
|
150
146
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
151
147
|
transitionDuration: theme('transitionDuration.short'),
|
|
@@ -157,7 +153,7 @@ module.exports = {
|
|
|
157
153
|
const [token, suffix = ''] = value.split('..');
|
|
158
154
|
|
|
159
155
|
return {
|
|
160
|
-
color:
|
|
156
|
+
color: theme(`textColor.${token}` + suffix),
|
|
161
157
|
backgroundColor: 'transparent',
|
|
162
158
|
|
|
163
159
|
borderStyle: 'none',
|
|
@@ -165,28 +161,28 @@ module.exports = {
|
|
|
165
161
|
|
|
166
162
|
[variants['mobile']]: {
|
|
167
163
|
[variants['active']]: {
|
|
168
|
-
color:
|
|
164
|
+
color: theme(`textColor.${token}-hover` + suffix),
|
|
169
165
|
},
|
|
170
166
|
},
|
|
171
167
|
|
|
172
168
|
[variants['desktop']]: {
|
|
173
169
|
[variants['hover']]: {
|
|
174
|
-
color:
|
|
170
|
+
color: theme(`textColor.${token}-hover` + suffix),
|
|
175
171
|
},
|
|
176
172
|
|
|
177
173
|
[variants['focus-visible']]: {
|
|
178
|
-
color:
|
|
174
|
+
color: theme(`textColor.${token}-hover` + suffix),
|
|
179
175
|
},
|
|
180
176
|
|
|
181
177
|
[variants['active']]: {
|
|
182
|
-
color:
|
|
178
|
+
color: theme(`textColor.${token}` + suffix),
|
|
183
179
|
},
|
|
184
180
|
},
|
|
185
181
|
|
|
186
|
-
[variants['disabled']]:
|
|
187
|
-
color:
|
|
188
|
-
backgroundColor: 'transparent',
|
|
189
|
-
}
|
|
182
|
+
[variants['disabled']]: {
|
|
183
|
+
color: `${theme('textColor.on-disabled' + suffix)} !important`,
|
|
184
|
+
backgroundColor: 'transparent !important',
|
|
185
|
+
},
|
|
190
186
|
|
|
191
187
|
transitionProperty: 'color, background-color, border-color, outline-color',
|
|
192
188
|
transitionDuration: theme('transitionDuration.short'),
|
package/tailwind/utils.js
CHANGED
|
@@ -246,17 +246,4 @@ module.exports = {
|
|
|
246
246
|
return preset;
|
|
247
247
|
}, {});
|
|
248
248
|
},
|
|
249
|
-
|
|
250
|
-
resolveThemeValue(theme, path, fallback) {
|
|
251
|
-
const value = theme(path, fallback);
|
|
252
|
-
|
|
253
|
-
if (!value || typeof value !== 'object') {
|
|
254
|
-
return value ?? fallback;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
return value.DEFAULT
|
|
258
|
-
?? value.default
|
|
259
|
-
?? value['-d-e-f-a-u-l-t']
|
|
260
|
-
?? fallback;
|
|
261
|
-
},
|
|
262
249
|
};
|
package/tailwind.config.js
CHANGED
|
@@ -8,5 +8,7 @@ module.exports = {
|
|
|
8
8
|
'./node_modules/@onereach/auth-ui-module/dist/auto/**/*.{vue,js,mjs,ts,jsx,tsx}',
|
|
9
9
|
'./node_modules/@onereach/ui-components/dist/esm/**/*.{vue,js,mjs,ts,jsx,tsx}',
|
|
10
10
|
],
|
|
11
|
-
presets: [
|
|
11
|
+
presets: [
|
|
12
|
+
require('@onereach/styles/tailwind.config.preset.js'),
|
|
13
|
+
],
|
|
12
14
|
};
|