@acorex/styles 5.0.10 → 5.0.14

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/dark.scss CHANGED
@@ -0,0 +1,37 @@
1
+ .ax-dark,
2
+ .ax-dark * {
3
+ --tw-ring-offset-color: #151b24;
4
+ --ax-color-default-background: 21 27 36;
5
+ --ax-color-default-color: 255 255 255;
6
+ --ax-color-border: 55 65 81;
7
+ --ax-color-placeholder: 161 161 161;
8
+
9
+ .ax-skeleton {
10
+ &.ax-skeleton-animate {
11
+ &::before {
12
+ content: "";
13
+ background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
14
+ }
15
+ }
16
+ }
17
+
18
+ .cdk-overlay-dark-backdrop {
19
+ background: rgba(0, 0, 0, 0.8) !important;
20
+ }
21
+
22
+ .ax-controll {
23
+ @apply ax-border-transparent ax-bg-white/[0.16] ax-backdrop-blur-3xl;
24
+ }
25
+
26
+ .ax-surface {
27
+ @apply ax-bg-white/20 ax-border-white/[0.1] ax-backdrop-blur-3xl;
28
+ }
29
+
30
+ .cdk-overlay-pane {
31
+ .ax-editor-container,
32
+ input[type="checkbox"],
33
+ input[type="radio"] {
34
+ @apply ax-bg-black/[0.2];
35
+ }
36
+ }
37
+ }
package/index.scss CHANGED
@@ -1,10 +1,11 @@
1
-
2
- @import "./src/base/index.scss";
1
+ @import "./src/variables/colors";
3
2
  @import "./src/icons/style.scss";
4
3
 
5
4
  @import "tailwindcss/base";
6
5
  @import "tailwindcss/components";
7
- @import "./src/components/index.scss";
8
-
9
6
  @import "tailwindcss/utilities";
7
+
8
+ @import "./src/base/index.scss";
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.0.10",
3
+ "version": "5.0.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,5 @@
1
- @import "./colors";
1
+ @import "../utility/mixins";
2
+
2
3
  [class*=" ax-ic-"],
3
4
  [class^=ax-ic-] {
4
5
  vertical-align: middle;
@@ -7,8 +8,8 @@
7
8
  :root {
8
9
  --ax-base-size: 8px;
9
10
  --ax-base-ratio: 5;
10
- // --ax-default-background: 240, 240, 240;
11
- // --ax-default-color: 107, 114, 128;
11
+ --ax-color-default-background: 255, 255, 255;
12
+ --ax-color-default-color: 107, 114, 128;
12
13
  @include colors($theme-colors);
13
14
  }
14
15
 
@@ -16,9 +17,14 @@ html,
16
17
  body {
17
18
  background-color: rgb(var(--ax-color-default-background));
18
19
  color: rgba(var(--ax-color-default-color));
20
+ height: 100%;
21
+ font-size: 16px
22
+ }
23
+
24
+ .ax-controll {
25
+ @apply ax-border-light-300 ax-bg-white;
19
26
  }
20
27
 
21
- // .ax-dark-mode,
22
- // .ax-dark-mode * {
23
- // @include colors($theme-dark-colors);
24
- // }
28
+ .ax-surface {
29
+ @apply ax-bg-white ax-border-light-300;
30
+ }
@@ -1,4 +1,3 @@
1
- @import "../variables/mixins";
2
1
  @layer components {
3
2
  .ax-alert {
4
3
  @apply ax-flex ax-bg-light-100 ax-text-light-fore ax-px-3.5 ax-py-4 ax-items-baseline ax-rounded;
@@ -13,26 +12,19 @@
13
12
  }
14
13
  .ax-alert-icon {
15
14
  @apply ax-text-xl ax-align-text-bottom;
16
- @include respond(mobile) {
17
- @apply ax-text-2xl;
18
- }
15
+
19
16
  }
20
17
  .ax-alert-body {
21
18
  @apply ax-ml-2 ax-flex-1;
22
19
  .ax-alert-title {
23
20
  @apply ax-inline-flex ax-text-sm ax-font-bold ax-mb-2.5;
24
- @include respond(mobile) {
25
- @apply ax-text-base;
26
- }
27
21
  a {
28
22
  @apply ax-text-current ax-font-bold;
29
23
  }
30
24
  }
31
25
  .ax-alert-content {
32
26
  @apply ax-block ax-text-sm;
33
- @include respond(mobile) {
34
- @apply ax-text-base;
35
- }
27
+
36
28
  ul {
37
29
  @apply ax-my-2 ax-ms-5 ax-list-disc;
38
30
  }
@@ -63,12 +55,9 @@
63
55
  }
64
56
  }
65
57
  &.ax-primary {
66
- @apply ax-bg-primary-50 ax-text-primary dark:ax-bg-primary-500 dark:ax-text-primary-fore;
67
- .ax-alert-content {
68
- @apply ax-block ax-text-sm;
69
- }
58
+ @apply ax-bg-primary-50 ax-text-primary dark:ax-bg-primary-500 dark:ax-text-primary-50;
70
59
  .ax-alert-title {
71
- @apply ax-text-primary-700;
60
+ @apply ax-text-primary-700 dark:ax-text-primary-100;
72
61
  }
73
62
  .ax-alert-button {
74
63
  &:hover {
@@ -77,9 +66,9 @@
77
66
  }
78
67
  }
79
68
  &.ax-secondary {
80
- @apply ax-bg-secondary-50 ax-text-secondary;
69
+ @apply ax-bg-secondary-50 ax-text-secondary dark:ax-bg-secondary-500 dark:ax-text-secondary-50;
81
70
  .ax-alert-title {
82
- @apply ax-text-secondary-700;
71
+ @apply ax-text-secondary-700 dark:ax-text-secondary-100;
83
72
  }
84
73
  .ax-alert-button {
85
74
  &:hover {
@@ -88,9 +77,9 @@
88
77
  }
89
78
  }
90
79
  &.ax-success {
91
- @apply ax-bg-success-50 ax-text-success;
80
+ @apply ax-bg-success-50 ax-text-success dark:ax-bg-success-500 dark:ax-text-success-50;
92
81
  .ax-alert-title {
93
- @apply ax-text-success-700;
82
+ @apply ax-text-success-700 dark:ax-text-success-100;
94
83
  }
95
84
  .ax-alert-button {
96
85
  &:hover {
@@ -99,9 +88,9 @@
99
88
  }
100
89
  }
101
90
  &.ax-warning {
102
- @apply ax-bg-warning-50 ax-text-warning;
91
+ @apply ax-bg-warning-50 ax-text-warning dark:ax-bg-warning-500 dark:ax-text-warning-50;
103
92
  .ax-alert-title {
104
- @apply ax-text-warning-700;
93
+ @apply ax-text-warning-700 dark:ax-text-warning-100;
105
94
  }
106
95
  .ax-alert-button {
107
96
  &:hover {
@@ -110,9 +99,9 @@
110
99
  }
111
100
  }
112
101
  &.ax-danger {
113
- @apply ax-bg-danger-50 ax-text-danger;
102
+ @apply ax-bg-danger-50 ax-text-danger dark:ax-bg-danger-500 dark:ax-text-danger-50;
114
103
  .ax-alert-title {
115
- @apply ax-text-danger-700;
104
+ @apply ax-text-danger-700 dark:ax-text-danger-100;
116
105
  }
117
106
  .ax-alert-button {
118
107
  &:hover {
@@ -121,9 +110,9 @@
121
110
  }
122
111
  }
123
112
  &.ax-info {
124
- @apply ax-bg-info-50 ax-text-info;
113
+ @apply ax-bg-info-50 ax-text-info dark:ax-bg-info-500 dark:ax-text-info-50;
125
114
  .ax-alert-title {
126
- @apply ax-text-info-700;
115
+ @apply ax-text-info-700 dark:ax-text-info-100;
127
116
  }
128
117
  .ax-alert-button {
129
118
  &:hover {
@@ -132,9 +121,9 @@
132
121
  }
133
122
  }
134
123
  &.ax-light {
135
- @apply ax-bg-light-50 ax-text-light-fore;
124
+ @apply ax-bg-light-50 ax-text-light-fore dark:ax-bg-light-500 dark:ax-text-light-50;
136
125
  .ax-alert-title {
137
- @apply ax-text-light-fore;
126
+ @apply ax-text-light-fore dark:ax-text-light-100;
138
127
  }
139
128
  .ax-alert-button {
140
129
  &:hover {
@@ -143,13 +132,13 @@
143
132
  }
144
133
  }
145
134
  &.ax-dark {
146
- @apply ax-bg-dark ax-text-dark-fore;
135
+ @apply ax-bg-dark ax-text-dark-fore dark:ax-bg-dark-500 dark:ax-text-dark-50;
147
136
  .ax-alert-title {
148
- @apply ax-text-dark-fore;
137
+ @apply ax-text-dark-fore dark:ax-text-dark-100;
149
138
  }
150
139
  .ax-alert-button {
151
140
  &:hover {
152
- @apply ax-bg-dark;
141
+ @apply ax-text-dark-200;
153
142
  }
154
143
  }
155
144
  }
@@ -1,6 +1,6 @@
1
1
  @layer components {
2
2
  .ax-badge {
3
- @apply ax-rounded ax-py-1 ax-px-2 ax-align-middle ax-flex ax-justify-center ax-items-center ax-max-w-max ax-text-sm;
3
+ @apply ax-rounded ax-py-1 ax-px-2 ax-align-middle ax-flex ax-justify-center ax-items-center ax-max-w-max ax-text-sm dark:ax-bg-white/[0.16] dark:ax-text-light-100;
4
4
  ax-prefix {
5
5
  @apply ax-me-1.5
6
6
  }