@acorex/styles 19.8.0-next.19 → 19.8.0-next.20
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 +1 -1
- package/tailwind-base.js +1 -18
package/package.json
CHANGED
package/tailwind-base.js
CHANGED
@@ -38,12 +38,6 @@ const _bgColors = {
|
|
38
38
|
'surface-dark': 'rgba(var(--ax-sys-color-surface-dark), <alpha-value>)',
|
39
39
|
'surface-input': 'rgba(var(--ax-sys-color-input-surface), <alpha-value>)',
|
40
40
|
..._onColors,
|
41
|
-
primary: { DEFAULT: 'rgba(var(--ax-sys-color-primary-500), <alpha-value>)' },
|
42
|
-
secondary: { DEFAULT: 'rgba(var(--ax-sys-color-secondary-500), <alpha-value>)' },
|
43
|
-
success: { DEFAULT: 'rgba(var(--ax-sys-color-success-500), <alpha-value>)' },
|
44
|
-
warning: { DEFAULT: 'rgba(var(--ax-sys-color-warning-500), <alpha-value>)' },
|
45
|
-
danger: { DEFAULT: 'rgba(var(--ax-sys-color-danger-500), <alpha-value>)' },
|
46
|
-
ghost: { DEFAULT: 'rgba(var(--ax-sys-color-ghost-500), <alpha-value>)' },
|
47
41
|
};
|
48
42
|
|
49
43
|
const _textColors = {
|
@@ -56,12 +50,6 @@ const _textColors = {
|
|
56
50
|
'surface-high': 'rgba(var(--ax-sys-color-on-surface-high), <alpha-value>)',
|
57
51
|
'surface-dark': 'rgba(var(--ax-sys-color-on-surface-dark), <alpha-value>)',
|
58
52
|
'surface-highest': 'rgba(var(--ax-sys-color-on-surface-highest), <alpha-value>)',
|
59
|
-
primary: { DEFAULT: 'rgba(var(--ax-sys-color-on-primary), <alpha-value>)' },
|
60
|
-
secondary: { DEFAULT: 'rgba(var(--ax-sys-color-on-secondary), <alpha-value>)' },
|
61
|
-
success: { DEFAULT: 'rgba(var(--ax-sys-color-on-success), <alpha-value>)' },
|
62
|
-
warning: { DEFAULT: 'rgba(var(--ax-sys-color-on-warning), <alpha-value>)' },
|
63
|
-
danger: { DEFAULT: 'rgba(var(--ax-sys-color-on-danger), <alpha-value>)' },
|
64
|
-
ghost: { DEFAULT: 'rgba(var(--ax-sys-color-on-ghost), <alpha-value>)' },
|
65
53
|
};
|
66
54
|
|
67
55
|
const _borderColors = {
|
@@ -72,12 +60,6 @@ const _borderColors = {
|
|
72
60
|
'surface-high': 'rgba(var(--ax-sys-color-border-surface-high), <alpha-value>)',
|
73
61
|
'surface-dark': 'rgba(var(--ax-sys-color-border-surface-dark), <alpha-value>)',
|
74
62
|
'surface-highest': 'rgba(var(--ax-sys-color-border-surface-highest), <alpha-value>)',
|
75
|
-
primary: { DEFAULT: 'rgba(var(--ax-sys-color-primary-500), <alpha-value>)' },
|
76
|
-
secondary: { DEFAULT: 'rgba(var(--ax-sys-color-secondary-500), <alpha-value>)' },
|
77
|
-
success: { DEFAULT: 'rgba(var(--ax-sys-color-success-500), <alpha-value>)' },
|
78
|
-
warning: { DEFAULT: 'rgba(var(--ax-sys-color-warning-500), <alpha-value>)' },
|
79
|
-
danger: { DEFAULT: 'rgba(var(--ax-sys-color-danger-500), <alpha-value>)' },
|
80
|
-
ghost: { DEFAULT: 'rgba(var(--ax-sys-color-ghost-500), <alpha-value>)' },
|
81
63
|
};
|
82
64
|
|
83
65
|
const _onColor = {
|
@@ -104,6 +86,7 @@ const _onContrastColor = {
|
|
104
86
|
|
105
87
|
const createPalete = function (colorName) {
|
106
88
|
return {
|
89
|
+
DEFAULT: 'rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)',
|
107
90
|
50: `rgba(var(--ax-sys-color-${colorName}-50), <alpha-value>)`,
|
108
91
|
100: `rgba(var(--ax-sys-color-${colorName}-100), <alpha-value>)`,
|
109
92
|
200: `rgba(var(--ax-sys-color-${colorName}-200), <alpha-value>)`,
|