@acorex/styles 20.1.20 → 20.1.22
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 +11 -1
- package/themes/default.scss +21 -6
package/package.json
CHANGED
package/tailwind-base.js
CHANGED
@@ -229,7 +229,7 @@ module.exports = withAnimations({
|
|
229
229
|
},
|
230
230
|
{
|
231
231
|
pattern:
|
232
|
-
/(?:bg|text)(?:-(?:primary|secondary|danger|success|warning
|
232
|
+
/(?:bg|text)(?:-(?:primary|secondary|danger|success|warning))?-(?:50|100|200|300|400|500|600|700|800|900|950)/,
|
233
233
|
},
|
234
234
|
],
|
235
235
|
theme: {
|
@@ -302,6 +302,16 @@ module.exports = withAnimations({
|
|
302
302
|
maxHeight: {
|
303
303
|
default: 'var(--ax-sys-size-base)',
|
304
304
|
},
|
305
|
+
keyframes: {
|
306
|
+
floating: {
|
307
|
+
'0%': { transform: 'translatey(0px)' },
|
308
|
+
'50%': { transform: 'translatey(-20px)' },
|
309
|
+
'100%': { transform: 'translatey(0px)' },
|
310
|
+
},
|
311
|
+
},
|
312
|
+
animation: {
|
313
|
+
floating: 'floating 6s ease-in-out infinite',
|
314
|
+
},
|
305
315
|
},
|
306
316
|
},
|
307
317
|
corePlugins: {
|
package/themes/default.scss
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
|
1
|
+
/*
|
2
|
+
import ACoreX utilities for using generate-pallete-variables function
|
3
|
+
import path in your app must be like this:
|
4
|
+
@use '@acorex/styles/utils/index.scss' as utils;
|
5
|
+
*/
|
6
|
+
@use '../utils/index.scss' as utils;
|
2
7
|
|
3
8
|
/*
|
4
|
-
Color themes that have multiple fixed primary colors, etc.
|
9
|
+
Color themes that have multiple fixed primary colors, etc.
|
10
|
+
that can range from 50 to 950, also generate 7 surfaces of these colors by default that are used to color components.
|
11
|
+
If these colors have the same value, they are used for light mode and dark mode, but if you give the color key two colors,
|
12
|
+
it uses the first color for light mode and the second color for dark mode. For example, you can see the color Danger
|
5
13
|
*/
|
6
14
|
$theme-colors: (
|
7
15
|
'primary': oklch(0.623 0.214 259.815),
|
@@ -18,7 +26,13 @@ $theme-colors: (
|
|
18
26
|
oklch(0.645 0.246 16.439),
|
19
27
|
oklch(0.712 0.194 13.428),
|
20
28
|
),
|
21
|
-
'accent1':
|
29
|
+
'accent1': oklch(0.628 0.1579 104.82),
|
30
|
+
'accent2': oklch(0.628 0.1534 140.47),
|
31
|
+
'accent3': oklch(0.628 0.1727 31.76),
|
32
|
+
'accent4': oklch(0.5475 0.2056 258.35),
|
33
|
+
'accent5': oklch(0.5475 0.2467 1.06),
|
34
|
+
'accent6': oklch(0.5475 0.2565 338.82),
|
35
|
+
'accent7': oklch(0.5475 0.1554 46.59),
|
22
36
|
);
|
23
37
|
|
24
38
|
/*
|
@@ -37,11 +51,12 @@ $theme-surfaces: (
|
|
37
51
|
);
|
38
52
|
|
39
53
|
$options: (
|
40
|
-
'color-range': true,
|
41
54
|
// Color range production 50 to 950, if you don't need them you can put false
|
42
|
-
'
|
55
|
+
'color-range': true,
|
43
56
|
// White is always a fixed color in the project, used in some special cases and does not change in light mode and dark mode.
|
44
|
-
'
|
57
|
+
'light': #ffffff,
|
58
|
+
// dark is always a fixed color in the project, used in some special cases and does not change in light mode and dark mode.
|
59
|
+
'dark': #09090b
|
45
60
|
);
|
46
61
|
|
47
62
|
/*
|