@acorex/styles 5.7.0 → 6.0.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.
Files changed (51) hide show
  1. package/index.js +191 -0
  2. package/index.scss +0 -1
  3. package/package.json +1 -1
  4. package/src/base/index.scss +3 -1
  5. package/src/components/_action-sheet.scss +2 -3
  6. package/src/components/_alert.scss +319 -39
  7. package/src/components/_avatar.scss +1 -3
  8. package/src/components/_badge.scss +150 -6
  9. package/src/components/_breadcrumbs.scss +14 -11
  10. package/src/components/_button.scss +162 -131
  11. package/src/components/_calendar.scss +5 -5
  12. package/src/components/_checkbox.scss +3 -8
  13. package/src/components/_collapse.scss +5 -12
  14. package/src/components/_color-palette.scss +9 -25
  15. package/src/components/_color-picker.scss +2 -2
  16. package/src/components/_data-table.scss +6 -6
  17. package/src/components/_datapager.scss +3 -3
  18. package/src/components/_decoration.scss +13 -13
  19. package/src/components/_dialog.scss +1 -1
  20. package/src/components/_drawer.scss +7 -7
  21. package/src/components/_dropdown.scss +8 -10
  22. package/src/components/_editor-container.scss +13 -13
  23. package/src/components/_fieldset.scss +2 -2
  24. package/src/components/_form.scss +1 -1
  25. package/src/components/_input.scss +1 -1
  26. package/src/components/_label.scss +1 -1
  27. package/src/components/_list.scss +8 -23
  28. package/src/components/_loading.scss +14 -21
  29. package/src/components/_menu.scss +4 -5
  30. package/src/components/_numberbox.scss +1 -3
  31. package/src/components/_popup.scss +7 -7
  32. package/src/components/_progress.scss +11 -13
  33. package/src/components/_radio.scss +1 -1
  34. package/src/components/_range-slider.scss +162 -31
  35. package/src/components/_result.scss +2 -3
  36. package/src/components/_selectbox.scss +2 -2
  37. package/src/components/_selection-list.scss +1 -1
  38. package/src/components/_switch.scss +0 -1
  39. package/src/components/_table.scss +5 -5
  40. package/src/components/_tabs.scss +3 -3
  41. package/src/components/_textarea.scss +5 -6
  42. package/src/components/_toast.scss +1 -1
  43. package/src/components/_treeview.scss +0 -1
  44. package/src/components/index.scss +0 -2
  45. package/src/icons/demo-files/demo.css +152 -152
  46. package/src/icons/demo-files/demo.js +30 -30
  47. package/src/utility/_mixins.scss +6 -6
  48. package/src/utility/index.scss +3 -3
  49. package/src/components/_picker.scss +0 -179
  50. package/src/components/_side-menu.scss +0 -42
  51. package/src/components/_switch copy.scss +0 -185
package/index.js ADDED
@@ -0,0 +1,191 @@
1
+ const plugin = require("tailwindcss/plugin");
2
+ const withAnimations = require("animated-tailwindcss");
3
+
4
+ function withOpacityValue(variable) {
5
+ return ({ opacityValue }) => {
6
+ if (opacityValue === undefined) {
7
+ return `rgb(var(${variable}))`;
8
+ }
9
+ return `rgb(var(${variable}) / ${opacityValue})`;
10
+ };
11
+ }
12
+
13
+ module.exports = withAnimations({
14
+ prefix: "ax-",
15
+ content: [
16
+ "./src/**/*.{html,ts,scss}",
17
+ "./projects/**/*.{html,ts,scss}",
18
+ "./dist/acorex/**/*.{html,ts,scss}",
19
+ "./node_modules/@acorex/**/*.{html,ts,js,mjs,scss}",
20
+ ],
21
+ darkMode: "class", // or 'media' or 'class'
22
+ theme: {
23
+ extend: {
24
+ colors: {
25
+ black: withOpacityValue("--ax-color-black"),
26
+ white: withOpacityValue("--ax-color-white"),
27
+ "default-background": withOpacityValue("--ax-color-default-background"),
28
+ "default-color": withOpacityValue("--ax-color-default-color"),
29
+ primary: {
30
+ fore: withOpacityValue("--ax-color-primary-fore"),
31
+ 50: withOpacityValue("--ax-color-primary-50"),
32
+ 100: withOpacityValue("--ax-color-primary-100"),
33
+ 200: withOpacityValue("--ax-color-primary-200"),
34
+ 300: withOpacityValue("--ax-color-primary-300"),
35
+ 400: withOpacityValue("--ax-color-primary-400"),
36
+ 500: withOpacityValue("--ax-color-primary-500"),
37
+ 600: withOpacityValue("--ax-color-primary-600"),
38
+ 700: withOpacityValue("--ax-color-primary-700"),
39
+ 800: withOpacityValue("--ax-color-primary-800"),
40
+ 900: withOpacityValue("--ax-color-primary-900"),
41
+ },
42
+ secondary: {
43
+ fore: withOpacityValue("--ax-color-secondary-fore"),
44
+ 50: withOpacityValue("--ax-color-secondary-50"),
45
+ 100: withOpacityValue("--ax-color-secondary-100"),
46
+ 200: withOpacityValue("--ax-color-secondary-200"),
47
+ 300: withOpacityValue("--ax-color-secondary-300"),
48
+ 400: withOpacityValue("--ax-color-secondary-400"),
49
+ 500: withOpacityValue("--ax-color-secondary-500"),
50
+ 600: withOpacityValue("--ax-color-secondary-600"),
51
+ 700: withOpacityValue("--ax-color-secondary-700"),
52
+ 800: withOpacityValue("--ax-color-secondary-800"),
53
+ 900: withOpacityValue("--ax-color-secondary-900"),
54
+ },
55
+ success: {
56
+ fore: withOpacityValue("--ax-color-success-fore"),
57
+ 50: withOpacityValue("--ax-color-success-50"),
58
+ 100: withOpacityValue("--ax-color-success-100"),
59
+ 200: withOpacityValue("--ax-color-success-200"),
60
+ 300: withOpacityValue("--ax-color-success-300"),
61
+ 400: withOpacityValue("--ax-color-success-400"),
62
+ 500: withOpacityValue("--ax-color-success-500"),
63
+ 600: withOpacityValue("--ax-color-success-600"),
64
+ 700: withOpacityValue("--ax-color-success-700"),
65
+ 800: withOpacityValue("--ax-color-success-800"),
66
+ 900: withOpacityValue("--ax-color-success-900"),
67
+ },
68
+ danger: {
69
+ fore: withOpacityValue("--ax-color-danger-fore"),
70
+ 50: withOpacityValue("--ax-color-danger-50"),
71
+ 100: withOpacityValue("--ax-color-danger-100"),
72
+ 200: withOpacityValue("--ax-color-danger-200"),
73
+ 300: withOpacityValue("--ax-color-danger-300"),
74
+ 400: withOpacityValue("--ax-color-danger-400"),
75
+ 500: withOpacityValue("--ax-color-danger-500"),
76
+ 600: withOpacityValue("--ax-color-danger-600"),
77
+ 700: withOpacityValue("--ax-color-danger-700"),
78
+ 800: withOpacityValue("--ax-color-danger-800"),
79
+ 900: withOpacityValue("--ax-color-danger-900"),
80
+ },
81
+ warning: {
82
+ fore: withOpacityValue("--ax-color-warning-fore"),
83
+ 50: withOpacityValue("--ax-color-warning-50"),
84
+ 100: withOpacityValue("--ax-color-warning-100"),
85
+ 200: withOpacityValue("--ax-color-warning-200"),
86
+ 300: withOpacityValue("--ax-color-warning-300"),
87
+ 400: withOpacityValue("--ax-color-warning-400"),
88
+ 500: withOpacityValue("--ax-color-warning-500"),
89
+ 600: withOpacityValue("--ax-color-warning-600"),
90
+ 700: withOpacityValue("--ax-color-warning-700"),
91
+ 800: withOpacityValue("--ax-color-warning-800"),
92
+ 900: withOpacityValue("--ax-color-warning-900"),
93
+ },
94
+ info: {
95
+ fore: withOpacityValue("--ax-color-info-fore"),
96
+ 50: withOpacityValue("--ax-color-info-50"),
97
+ 100: withOpacityValue("--ax-color-info-100"),
98
+ 200: withOpacityValue("--ax-color-info-200"),
99
+ 300: withOpacityValue("--ax-color-info-300"),
100
+ 400: withOpacityValue("--ax-color-info-400"),
101
+ 500: withOpacityValue("--ax-color-info-500"),
102
+ 600: withOpacityValue("--ax-color-info-600"),
103
+ 700: withOpacityValue("--ax-color-info-700"),
104
+ 800: withOpacityValue("--ax-color-info-800"),
105
+ 900: withOpacityValue("--ax-color-info-900"),
106
+ },
107
+ light: {
108
+ fore: withOpacityValue("--ax-color-light-fore"),
109
+ 50: withOpacityValue("--ax-color-light-50"),
110
+ 100: withOpacityValue("--ax-color-light-100"),
111
+ 200: withOpacityValue("--ax-color-light-200"),
112
+ 300: withOpacityValue("--ax-color-light-300"),
113
+ 400: withOpacityValue("--ax-color-light-400"),
114
+ 500: withOpacityValue("--ax-color-light-500"),
115
+ 600: withOpacityValue("--ax-color-light-600"),
116
+ 700: withOpacityValue("--ax-color-light-700"),
117
+ 800: withOpacityValue("--ax-color-light-800"),
118
+ 900: withOpacityValue("--ax-color-light-900"),
119
+ },
120
+ dark: {
121
+ fore: withOpacityValue("--ax-color-dark-fore"),
122
+ 50: withOpacityValue("--ax-color-dark-50"),
123
+ 100: withOpacityValue("--ax-color-dark-100"),
124
+ 200: withOpacityValue("--ax-color-dark-200"),
125
+ 300: withOpacityValue("--ax-color-dark-300"),
126
+ 400: withOpacityValue("--ax-color-dark-400"),
127
+ 500: withOpacityValue("--ax-color-dark-500"),
128
+ 600: withOpacityValue("--ax-color-dark-600"),
129
+ 700: withOpacityValue("--ax-color-dark-700"),
130
+ 800: withOpacityValue("--ax-color-dark-800"),
131
+ 900: withOpacityValue("--ax-color-dark-900"),
132
+ },
133
+ },
134
+ width: {
135
+ base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
136
+ },
137
+ minWidth: {
138
+ base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
139
+ },
140
+ maxWidth: {
141
+ "8xl": "90rem",
142
+ base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
143
+ },
144
+ height: {
145
+ base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
146
+ },
147
+ minHeight: {
148
+ base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
149
+ },
150
+ maxHeight: {
151
+ base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
152
+ },
153
+ borderRadius: {
154
+ default: "var(--ax-border-rounded-default)",
155
+ },
156
+ },
157
+ },
158
+
159
+ plugins: [
160
+ plugin(function ({ addUtilities }) {
161
+ const acorexClasses = {
162
+ ".animate-fast": {
163
+ animationDuration: "800ms",
164
+ },
165
+ ".animate-faster": {
166
+ animationDuration: "500ms",
167
+ },
168
+ ".bg-default": {
169
+ backgroundColor:
170
+ "rgb(var(--ax-color-default-background) / var(--tw-bg-opacity))",
171
+ },
172
+ ".text-default": {
173
+ backgroundColor:
174
+ "rgb(var(--ax-color-default-color) / var(--tw-text-opacity))",
175
+ },
176
+ ".rtl": {
177
+ direction: "rtl",
178
+ },
179
+ ".ltr": {
180
+ direction: "ltr",
181
+ },
182
+ };
183
+ addUtilities(acorexClasses, ["responsive", "hover", "focus"]);
184
+ }),
185
+ require("postcss-import"),
186
+ require("tailwindcss/nesting")(require("postcss-nesting")),
187
+ require("tailwindcss"),
188
+ require("autoprefixer"),
189
+ require("tailwind-rtl-utilities"),
190
+ ],
191
+ });
package/index.scss CHANGED
@@ -8,4 +8,3 @@
8
8
  @import "./src/base/index.scss";
9
9
  @import "./src/components/index.scss";
10
10
  @import "./src/utility/index.scss";
11
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "5.7.0",
3
+ "version": "6.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -6,11 +6,13 @@
6
6
  }
7
7
 
8
8
  :root {
9
- --ax-base-size: 8px;
9
+ --ax-size: 8px;
10
+ --ax-base-size: var(--ax-size);
10
11
  --ax-base-ratio: 6;
11
12
  --ax-color-default-background: 255, 255, 255;
12
13
  --ax-color-default-color: 107, 114, 128;
13
14
  --ax-overlay-full-width: 93;
15
+ --ax-border-rounded-default: 6px;
14
16
  @include colors($theme-colors);
15
17
  }
16
18
 
@@ -1,8 +1,7 @@
1
1
  @layer components {
2
- ax-action-sheet,
3
2
  .ax-action-sheet {
4
3
  .ax-action-sheet-container {
5
- @apply ax-fixed ax-bottom-0 ax-left-1/2 -ax-translate-x-1/2 ax-z-[9999] ax-w-1/3 ax-rounded-t-2xl ax-overflow-hidden;
4
+ @apply ax-fixed ax-bottom-0 ax-left-1/2 -ax-translate-x-1/2 ax-z-[9999] ax-w-1/3 ax-rounded-t-default ax-overflow-hidden;
6
5
 
7
6
  @include screen(mobile) {
8
7
  @apply ax-w-full;
@@ -12,7 +11,7 @@
12
11
  }
13
12
  .ax-action-sheet-items {
14
13
  @apply ax-flex ax-flex-col ax-pb-3 ax-overflow-x-hidden ax-overflow-y-auto;
15
- ax-button {
14
+ .ax-button {
16
15
  @apply ax-rounded-none ax-w-full ax-text-start ax-justify-start;
17
16
  }
18
17
  }
@@ -1,5 +1,5 @@
1
1
  @layer components {
2
- ax-alert {
2
+ .ax-alert {
3
3
  @apply ax-relative ax-w-full ax-flex ax-flex-col ax-bg-light-100 ax-text-light-fore ax-rounded ax-overflow-hidden ax-text-sm;
4
4
  transition: visibility 0s, opacity 0.5s ease-in-out;
5
5
 
@@ -13,23 +13,24 @@
13
13
  opacity: 1;
14
14
  }
15
15
 
16
- ax-header {
16
+ .ax-header {
17
17
  @apply ax-flex ax-px-3.5 ax-items-center ax-py-3 ax-bg-transparent ax-border-none ax-justify-start;
18
-
19
- ax-icon {
18
+ .ax-icon {
20
19
  @apply ax-text-2xl;
21
20
  }
22
21
  }
23
22
 
24
23
  .ax-alert-body {
25
24
  @apply ax-flex-1 ax-p-3.5;
26
-
27
- ax-icon {
25
+ .ax-icon {
28
26
  @apply ax-me-3 ax-text-2xl;
29
27
  }
30
-
31
- ax-content {
32
- @apply ax-flex ax-items-center ax-break-words;
28
+ .ax-button {
29
+ --ax-base-size: 6px;
30
+ @apply ax-ring-offset-0 #{!important};
31
+ }
32
+ .ax-content {
33
+ @apply ax-flex ax-items-center ax-break-words ax-whitespace-pre-wrap;
33
34
 
34
35
  ul {
35
36
  @apply ax-my-2 ax-ms-5 ax-list-disc;
@@ -44,22 +45,19 @@
44
45
  }
45
46
  }
46
47
 
47
- ax-suffix {
48
- --ax-base-size: 6px;
48
+ .ax-suffix {
49
49
  @apply ax-block;
50
50
 
51
- ax-button {
52
- @apply ax-ring-offset-0 ax-ms-2 #{!important};
51
+ .ax-button {
52
+ @apply ax-ms-2 #{!important};
53
53
  }
54
54
  }
55
55
 
56
- ax-footer {
56
+ .ax-footer {
57
57
  @apply ax-bg-transparent ax-p-0 ax-mt-3;
58
58
 
59
- ax-suffix {
60
- ax-button {
61
- --ax-base-size: 6px;
62
-
59
+ .ax-suffix {
60
+ .ax-button {
63
61
  @apply ax-ms-0 ax-me-2 #{!important};
64
62
  }
65
63
 
@@ -68,45 +66,327 @@
68
66
  }
69
67
  }
70
68
 
71
- &.ax-light-default {
72
- ax-header {
73
- @apply ax-bg-light-200;
74
- }
69
+ .ax-alert-progress {
70
+ @apply ax-absolute ax-start-0 ax-bottom-0 ax-h-1.5 ax-w-0;
71
+ animation-duration: 4s;
72
+ animation-timing-function: linear;
73
+ animation-name: progressBar;
74
+ @keyframes progressBar {
75
+ 0% {
76
+ width: 100%;
77
+ }
75
78
 
76
- .ax-alert-body {
77
- @apply ax-bg-light-200;
79
+ 100% {
80
+ width: 0%;
81
+ }
78
82
  }
83
+ }
84
+
85
+ // @include button-on-colorful-bg();
79
86
 
87
+ // @include color-look-generator();
88
+
89
+ // primary
90
+ &.ax-primary-default {
91
+ @apply ax-bg-primary-500 ax-text-primary-fore dark:ax-bg-primary-800 dark:ax-text-primary-100;
92
+ .ax-header {
93
+ @apply ax-bg-primary-600;
94
+ }
95
+ .ax-alert-progress {
96
+ @apply ax-bg-primary-800 dark:ax-bg-primary-500;
97
+ }
98
+ }
99
+ &.ax-primary-twotone {
100
+ @apply ax-bg-primary-100 ax-text-primary-500 dark:ax-bg-primary-800 dark:ax-text-primary-100;
101
+ .ax-header {
102
+ @apply ax-bg-primary-200 dark:ax-bg-primary-600;
103
+ }
104
+ .ax-alert-progress {
105
+ @apply ax-bg-primary-300 dark:ax-bg-primary-500;
106
+ }
107
+ }
108
+ &.ax-primary-outline {
109
+ @apply ax-bg-transparent ax-text-primary-500 ax-border ax-border-primary-500 dark:ax-border-primary-400 dark:ax-text-primary-300;
110
+ .ax-header {
111
+ @apply ax-bg-primary-100 dark:ax-bg-transparent;
112
+ }
113
+ .ax-alert-progress {
114
+ @apply ax-bg-primary-500 ax-h-1 dark:ax-bg-primary-400;
115
+ }
116
+ }
117
+ &.ax-primary-blank {
118
+ @apply ax-bg-transparent ax-text-primary-500 dark:ax-text-primary-300 ax-rounded-none;
119
+ .ax-header {
120
+ @apply ax-border-b ax-border-solid ax-border-primary-200 dark:ax-border-primary-800;
121
+ }
80
122
  .ax-alert-progress {
81
- @apply ax-absolute ax-bg-light-400;
123
+ @apply ax-bg-primary-200 dark:ax-bg-primary-800;
82
124
  }
83
125
  }
84
126
 
85
- &[class*="dark"] {
127
+ // secondary
128
+ &.ax-secondary-default {
129
+ @apply ax-bg-secondary-500 ax-text-secondary-fore dark:ax-bg-secondary-800 dark:ax-text-secondary-100;
130
+ .ax-header {
131
+ @apply ax-bg-secondary-600;
132
+ }
86
133
  .ax-alert-progress {
87
- @apply ax-bg-white/50 #{!important};
134
+ @apply ax-bg-secondary-800 dark:ax-bg-secondary-500;
135
+ }
136
+ }
137
+ &.ax-secondary-twotone {
138
+ @apply ax-bg-secondary-100 ax-text-secondary-500 dark:ax-bg-secondary-800 dark:ax-text-secondary-100;
139
+ .ax-header {
140
+ @apply ax-bg-secondary-200 dark:ax-bg-secondary-600;
141
+ }
142
+ .ax-alert-progress {
143
+ @apply ax-bg-secondary-300 dark:ax-bg-secondary-500;
144
+ }
145
+ }
146
+ &.ax-secondary-outline {
147
+ @apply ax-bg-transparent ax-text-secondary-500 ax-border ax-border-secondary-500 dark:ax-border-secondary-400 dark:ax-text-secondary-300;
148
+ .ax-header {
149
+ @apply ax-bg-secondary-100 dark:ax-bg-transparent;
150
+ }
151
+ .ax-alert-progress {
152
+ @apply ax-bg-secondary-500 ax-h-1 dark:ax-bg-secondary-400;
153
+ }
154
+ }
155
+ &.ax-secondary-blank {
156
+ @apply ax-bg-transparent ax-text-secondary-500 dark:ax-text-secondary-300 ax-rounded-none;
157
+ .ax-header {
158
+ @apply ax-border-b ax-border-solid ax-border-secondary-200 dark:ax-border-secondary-800;
159
+ }
160
+ .ax-alert-progress {
161
+ @apply ax-bg-secondary-200 dark:ax-bg-secondary-800;
88
162
  }
89
163
  }
90
164
 
91
- .ax-alert-progress {
92
- @apply ax-absolute ax-start-0 ax-bottom-0 ax-h-1.5 ax-w-0;
93
- animation-duration: 4s;
94
- animation-timing-function: linear;
95
- animation-name: progressBar;
165
+ // success
166
+ &.ax-success-default {
167
+ @apply ax-bg-success-500 ax-text-success-fore dark:ax-bg-success-800 dark:ax-text-success-100;
168
+ .ax-header {
169
+ @apply ax-bg-success-600;
170
+ }
171
+ .ax-alert-progress {
172
+ @apply ax-bg-success-800 dark:ax-bg-success-500;
173
+ }
174
+ }
175
+ &.ax-success-twotone {
176
+ @apply ax-bg-success-100 ax-text-success-500 dark:ax-bg-success-800 dark:ax-text-success-100;
177
+ .ax-header {
178
+ @apply ax-bg-success-200 dark:ax-bg-success-600;
179
+ }
180
+ .ax-alert-progress {
181
+ @apply ax-bg-success-300 dark:ax-bg-success-500;
182
+ }
183
+ }
184
+ &.ax-success-outline {
185
+ @apply ax-bg-transparent ax-text-success-500 ax-border ax-border-success-500 dark:ax-border-success-400 dark:ax-text-success-300;
186
+ .ax-header {
187
+ @apply ax-bg-success-100 dark:ax-bg-transparent;
188
+ }
189
+ .ax-alert-progress {
190
+ @apply ax-bg-success-500 ax-h-1 dark:ax-bg-success-400;
191
+ }
192
+ }
193
+ &.ax-success-blank {
194
+ @apply ax-bg-transparent ax-text-success-500 dark:ax-text-success-300 ax-rounded-none;
195
+ .ax-header {
196
+ @apply ax-border-b ax-border-solid ax-border-success-200 dark:ax-border-success-800;
197
+ }
198
+ .ax-alert-progress {
199
+ @apply ax-bg-success-200 dark:ax-bg-success-800;
200
+ }
96
201
  }
97
202
 
98
- @keyframes progressBar {
99
- 0% {
100
- width: 100%;
203
+ // warning
204
+ &.ax-warning-default {
205
+ @apply ax-bg-warning-800 ax-text-warning-fore dark:ax-bg-warning-800;
206
+ .ax-header {
207
+ @apply ax-bg-warning-600;
101
208
  }
209
+ .ax-alert-progress {
210
+ @apply ax-bg-warning-800 dark:ax-bg-warning-500;
211
+ }
212
+ }
213
+ &.ax-warning-twotone {
214
+ @apply ax-bg-warning-100 ax-text-warning-900 dark:ax-bg-warning-800 dark:ax-text-warning-fore;
215
+ .ax-header {
216
+ @apply ax-bg-warning-200 dark:ax-bg-warning-600;
217
+ }
218
+ .ax-alert-progress {
219
+ @apply ax-bg-warning-300 dark:ax-bg-warning-500;
220
+ }
221
+ }
222
+ &.ax-warning-outline {
223
+ @apply ax-bg-transparent ax-text-warning-900 ax-border ax-border-warning-500 dark:ax-border-warning-400 dark:ax-text-warning-300;
224
+ .ax-header {
225
+ @apply ax-bg-warning-100 dark:ax-bg-transparent;
226
+ }
227
+ .ax-alert-progress {
228
+ @apply ax-bg-warning-500 ax-h-1 dark:ax-bg-warning-400;
229
+ }
230
+ }
231
+ &.ax-warning-blank {
232
+ @apply ax-bg-transparent ax-text-warning-500 dark:ax-text-warning-300 ax-rounded-none;
233
+ .ax-header {
234
+ @apply ax-border-b ax-border-solid ax-border-warning-200 dark:ax-border-warning-800;
235
+ }
236
+ .ax-alert-progress {
237
+ @apply ax-bg-warning-200 dark:ax-bg-warning-800;
238
+ }
239
+ }
102
240
 
103
- 100% {
104
- width: 0%;
241
+ // danger
242
+ &.ax-danger-default {
243
+ @apply ax-bg-danger-500 ax-text-danger-fore dark:ax-bg-danger-800 dark:ax-text-danger-100;
244
+ .ax-header {
245
+ @apply ax-bg-danger-600;
246
+ }
247
+ .ax-alert-progress {
248
+ @apply ax-bg-danger-800 dark:ax-bg-danger-500;
249
+ }
250
+ }
251
+ &.ax-danger-twotone {
252
+ @apply ax-bg-danger-100 ax-text-danger-500 dark:ax-bg-danger-800 dark:ax-text-danger-100;
253
+ .ax-header {
254
+ @apply ax-bg-danger-200 dark:ax-bg-danger-600;
255
+ }
256
+ .ax-alert-progress {
257
+ @apply ax-bg-danger-300 dark:ax-bg-danger-500;
258
+ }
259
+ }
260
+ &.ax-danger-outline {
261
+ @apply ax-bg-transparent ax-text-danger-500 ax-border ax-border-danger-500 dark:ax-border-danger-400 dark:ax-text-danger-300;
262
+ .ax-header {
263
+ @apply ax-bg-danger-100 dark:ax-bg-transparent;
264
+ }
265
+ .ax-alert-progress {
266
+ @apply ax-bg-danger-500 ax-h-1 dark:ax-bg-danger-400;
267
+ }
268
+ }
269
+ &.ax-danger-blank {
270
+ @apply ax-bg-transparent ax-text-danger-500 dark:ax-text-danger-300 ax-rounded-none;
271
+ .ax-header {
272
+ @apply ax-border-b ax-border-solid ax-border-danger-200 dark:ax-border-danger-800;
273
+ }
274
+ .ax-alert-progress {
275
+ @apply ax-bg-danger-200 dark:ax-bg-danger-800;
105
276
  }
106
277
  }
107
278
 
108
- // @include button-on-colorful-bg();
279
+ // info
280
+ &.ax-info-default {
281
+ @apply ax-bg-info-500 ax-text-info-fore dark:ax-bg-info-800 dark:ax-text-info-100;
282
+ .ax-header {
283
+ @apply ax-bg-info-600;
284
+ }
285
+ .ax-alert-progress {
286
+ @apply ax-bg-info-800 dark:ax-bg-info-500;
287
+ }
288
+ }
289
+ &.ax-info-twotone {
290
+ @apply ax-bg-info-100 ax-text-info-500 dark:ax-bg-info-800 dark:ax-text-info-100;
291
+ .ax-header {
292
+ @apply ax-bg-info-200 dark:ax-bg-info-600;
293
+ }
294
+ .ax-alert-progress {
295
+ @apply ax-bg-info-300 dark:ax-bg-info-500;
296
+ }
297
+ }
298
+ &.ax-info-outline {
299
+ @apply ax-bg-transparent ax-text-info-500 ax-border ax-border-info-500 dark:ax-border-info-400 dark:ax-text-info-300;
300
+ .ax-header {
301
+ @apply ax-bg-info-100 dark:ax-bg-transparent;
302
+ }
303
+ .ax-alert-progress {
304
+ @apply ax-bg-info-500 ax-h-1 dark:ax-bg-info-400;
305
+ }
306
+ }
307
+ &.ax-info-blank {
308
+ @apply ax-bg-transparent ax-text-info-500 dark:ax-text-info-300 ax-rounded-none;
309
+ .ax-header {
310
+ @apply ax-border-b ax-border-solid ax-border-info-200 dark:ax-border-info-800;
311
+ }
312
+ .ax-alert-progress {
313
+ @apply ax-bg-info-200 dark:ax-bg-info-800;
314
+ }
315
+ }
109
316
 
110
- @include color-look-generator();
317
+ // light
318
+ &.ax-light-default {
319
+ @apply ax-bg-light-100 dark:ax-bg-light-800 ax-text-light-fore dark:ax-text-light-100 ax-border ax-border-light-200 dark:ax-border-light-900;
320
+ .ax-header {
321
+ @apply ax-bg-light-200 dark:ax-bg-light-600;
322
+ }
323
+ .ax-alert-progress {
324
+ @apply ax-bg-light-300 dark:ax-bg-light-600;
325
+ }
326
+ }
327
+ &.ax-light-twotone {
328
+ @apply ax-bg-light-100 ax-text-light-500 dark:ax-bg-light-800 dark:ax-text-light-100;
329
+ .ax-header {
330
+ @apply ax-bg-light-200 dark:ax-bg-light-600;
331
+ }
332
+ .ax-alert-progress {
333
+ @apply ax-bg-light-300 dark:ax-bg-light-600;
334
+ }
335
+ }
336
+ &.ax-light-outline {
337
+ @apply ax-bg-transparent ax-text-light-500 ax-border ax-border-light-200 dark:ax-border-light-400 dark:ax-text-light-300;
338
+ .ax-header {
339
+ @apply ax-bg-light-100;
340
+ }
341
+ .ax-alert-progress {
342
+ @apply ax-bg-light-300;
343
+ }
344
+ }
345
+ &.ax-light-blank {
346
+ @apply ax-bg-transparent ax-text-light-500 dark:ax-text-light-300;
347
+ .ax-header {
348
+ @apply ax-border-b ax-border-solid ax-border-light-200 dark:ax-border-light-500;
349
+ }
350
+ .ax-alert-progress {
351
+ @apply ax-bg-light-200 dark:ax-bg-light-500;
352
+ }
353
+ }
354
+ // dark
355
+ &.ax-dark-default {
356
+ @apply ax-bg-dark-500 ax-text-dark-fore dark:ax-bg-dark-800 dark:ax-text-dark-100;
357
+ .ax-header {
358
+ @apply ax-bg-dark-600;
359
+ }
360
+ .ax-alert-progress {
361
+ @apply ax-bg-dark-600;
362
+ }
363
+ }
364
+ &.ax-dark-twotone {
365
+ @apply ax-bg-dark-100 ax-text-dark-500 dark:ax-bg-dark-800 dark:ax-text-dark-100;
366
+ .ax-header {
367
+ @apply ax-bg-dark-200;
368
+ }
369
+ .ax-alert-progress {
370
+ @apply ax-bg-dark-100;
371
+ }
372
+ }
373
+ &.ax-dark-outline {
374
+ @apply ax-bg-transparent ax-text-dark-500 ax-border ax-border-dark-100 dark:ax-border-dark-400 dark:ax-text-dark-300;
375
+ .ax-header {
376
+ @apply ax-bg-dark-50;
377
+ }
378
+ .ax-alert-progress {
379
+ @apply ax-bg-dark-100;
380
+ }
381
+ }
382
+ &.ax-dark-blank {
383
+ @apply ax-bg-transparent ax-text-dark-500 dark:ax-text-dark-100;
384
+ .ax-header {
385
+ @apply ax-border-b ax-border-solid ax-border-dark-200 dark:ax-border-dark-200;
386
+ }
387
+ .ax-alert-progress {
388
+ @apply ax-bg-dark-200 dark:ax-bg-dark-200;
389
+ }
390
+ }
111
391
  }
112
392
  }
@@ -1,12 +1,10 @@
1
1
  @layer components {
2
- ax-avatar-group,
3
2
  .ax-avatar-group {
4
3
  @apply ax-flex;
5
4
  ax-avatar {
6
5
  @apply ax-border-2 ax-border-white -ax-m-1 dark:ax-border-dark-500;
7
6
  }
8
7
  }
9
- ax-avatar,
10
8
  .ax-avatar {
11
9
  @apply ax-relative ax-flex ax-items-center ax-justify-center ax-w-16 ax-h-16;
12
10
  ax-badge {
@@ -14,7 +12,7 @@
14
12
  right: -6px;
15
13
  }
16
14
  .ax-avatar-container {
17
- @apply ax-w-full ax-h-full ax-rounded-md;
15
+ @apply ax-w-full ax-h-full ax-rounded-default;
18
16
  .ax-default-avatar {
19
17
  svg {
20
18
  @apply ax-w-full;