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