@acorex/styles 22.1.0-next.0 → 22.1.0-next.10
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/components/_action-item.css +0 -4
- package/components/_actionsheet.css +20 -3
- package/components/_drop-down.css +36 -15
- package/components/_editor-container.css +149 -4
- package/components/_floating-surface.css +24 -0
- package/components/_list.css +2 -5
- package/components/index.css +1 -0
- package/package.json +72 -1
- package/themes/appearance.css +15 -0
- package/themes/appearances/depth.css +377 -0
- package/themes/appearances/flat.css +63 -0
- package/themes/appearances/index.css +73 -0
- package/themes/appearances/translucent.css +77 -0
- package/themes/contrast/enhanced.css +85 -0
- package/themes/contrast/high.css +131 -0
- package/themes/contrast/index.css +10 -0
- package/themes/default.css +306 -11
|
@@ -50,10 +50,6 @@
|
|
|
50
50
|
width: 100%;
|
|
51
51
|
cursor: pointer;
|
|
52
52
|
padding-inline: var(--ax-comp-action-item-padding-inline, 0.875rem);
|
|
53
|
-
&.ax-state-disabled {
|
|
54
|
-
cursor: not-allowed;
|
|
55
|
-
opacity: 0.5;
|
|
56
|
-
}
|
|
57
53
|
&:hover:not(.ax-state-disabled, .ax-state-selected) {
|
|
58
54
|
background-color: rgba(var(--ax-sys-color-surface));
|
|
59
55
|
ax-prefix,
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
.ax-action-sheet-panel {
|
|
2
|
+
--ax-comp-action-sheet-shadow-rest: var(--ax-sys-effect-modal);
|
|
3
|
+
--ax-comp-action-sheet-inner-border-rest: var(--ax-sys-inner-border-surface);
|
|
4
|
+
--ax-comp-action-sheet-contrast-inner-border-rest: var(--ax-sys-contrast-inner-border-surface);
|
|
5
|
+
--ax-comp-action-sheet-contrast-surface-overlay-rest: var(--ax-sys-contrast-surface-overlay-surface);
|
|
6
|
+
--ax-comp-action-sheet-backdrop-filter-rest: var(--ax-sys-backdrop-filter-surface);
|
|
7
|
+
--ax-comp-action-sheet-surface-overlay-rest: var(--ax-sys-surface-overlay-modal);
|
|
8
|
+
|
|
2
9
|
@apply fixed! top-auto! right-auto! bottom-0! left-1/2! block! h-auto! w-auto! max-w-none!;
|
|
3
10
|
transform: translateX(-50%) !important;
|
|
4
11
|
align-items: unset !important;
|
|
@@ -8,10 +15,20 @@
|
|
|
8
15
|
border-top-left-radius: var(--ax-comp-action-sheet-border-radius-size);
|
|
9
16
|
border-top-right-radius: var(--ax-comp-action-sheet-border-radius-size);
|
|
10
17
|
background-color: rgba(var(--ax-sys-color-surface-lowest));
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
background-image:
|
|
19
|
+
linear-gradient(
|
|
20
|
+
var(--ax-comp-action-sheet-contrast-surface-overlay-rest),
|
|
21
|
+
var(--ax-comp-action-sheet-contrast-surface-overlay-rest)
|
|
22
|
+
),
|
|
23
|
+
linear-gradient(
|
|
24
|
+
var(--ax-comp-action-sheet-surface-overlay-rest),
|
|
25
|
+
var(--ax-comp-action-sheet-surface-overlay-rest)
|
|
26
|
+
);
|
|
13
27
|
box-shadow:
|
|
14
|
-
var(--ax-
|
|
28
|
+
var(--ax-comp-action-sheet-contrast-inner-border-rest), var(--ax-comp-action-sheet-inner-border-rest),
|
|
29
|
+
var(--ax-comp-action-sheet-shadow-rest);
|
|
30
|
+
backdrop-filter: var(--ax-comp-action-sheet-backdrop-filter-rest);
|
|
31
|
+
-webkit-backdrop-filter: var(--ax-comp-action-sheet-backdrop-filter-rest);
|
|
15
32
|
animation: 1s both ax-fadeInUp;
|
|
16
33
|
animation-duration: var(--ax-sys-transition-duration);
|
|
17
34
|
}
|
|
@@ -7,40 +7,57 @@
|
|
|
7
7
|
overflow-x: auto;
|
|
8
8
|
overflow-y: hidden;
|
|
9
9
|
font-size: 0.875rem;
|
|
10
|
-
/* 14px */
|
|
11
10
|
line-height: 1.25rem;
|
|
12
|
-
/* 20px */
|
|
13
11
|
text-transform: capitalize;
|
|
14
|
-
&.ax-state-disabled {
|
|
15
|
-
cursor: not-allowed;
|
|
16
|
-
opacity: 0.5;
|
|
17
|
-
}
|
|
18
12
|
}
|
|
19
13
|
}
|
|
20
14
|
|
|
21
15
|
.ax-overlay-pane {
|
|
16
|
+
--ax-comp-dropdown-shadow-rest: var(--ax-sys-effect-overlay);
|
|
17
|
+
--ax-comp-dropdown-inner-border-rest: var(--ax-sys-inner-border-surface);
|
|
18
|
+
--ax-comp-dropdown-contrast-inner-border-rest: var(--ax-sys-contrast-inner-border-surface);
|
|
19
|
+
--ax-comp-dropdown-contrast-surface-overlay-rest: var(--ax-sys-contrast-surface-overlay-surface);
|
|
20
|
+
--ax-comp-dropdown-backdrop-filter-rest: var(--ax-sys-backdrop-filter-surface);
|
|
21
|
+
--ax-comp-dropdown-surface-overlay-rest: var(--ax-sys-surface-overlay-overlay);
|
|
22
|
+
|
|
22
23
|
margin: 0.25rem 0;
|
|
23
|
-
/* min-width: 10rem; */
|
|
24
24
|
width: 100%;
|
|
25
25
|
height: fit-content;
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
border-width: 1px;
|
|
28
28
|
border-color: rgba(var(--ax-sys-color-border-lightest-surface));
|
|
29
|
+
/* Resolve text against local theme tokens (overlays are portaled). */
|
|
30
|
+
color: rgba(var(--ax-sys-color-on-surface));
|
|
31
|
+
/*
|
|
32
|
+
* Use opaque rgba(channels) only.
|
|
33
|
+
* Do NOT use rgb(channels / alpha) or rgba(channels, alpha):
|
|
34
|
+
* LightningCSS rewrites those to slash-syntax which is invalid with
|
|
35
|
+
* comma-separated RGB tokens (255, 255, 255) and yields a transparent panel.
|
|
36
|
+
*/
|
|
29
37
|
background-color: rgba(var(--ax-sys-color-lightest-surface));
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
background-image:
|
|
39
|
+
linear-gradient(
|
|
40
|
+
var(--ax-comp-dropdown-contrast-surface-overlay-rest),
|
|
41
|
+
var(--ax-comp-dropdown-contrast-surface-overlay-rest)
|
|
42
|
+
),
|
|
43
|
+
linear-gradient(
|
|
44
|
+
var(--ax-comp-dropdown-surface-overlay-rest),
|
|
45
|
+
var(--ax-comp-dropdown-surface-overlay-rest)
|
|
46
|
+
);
|
|
32
47
|
box-shadow:
|
|
33
|
-
var(--ax-
|
|
48
|
+
var(--ax-comp-dropdown-contrast-inner-border-rest), var(--ax-comp-dropdown-inner-border-rest),
|
|
49
|
+
var(--ax-comp-dropdown-shadow-rest);
|
|
50
|
+
backdrop-filter: var(--ax-comp-dropdown-backdrop-filter-rest);
|
|
51
|
+
-webkit-backdrop-filter: var(--ax-comp-dropdown-backdrop-filter-rest);
|
|
34
52
|
border-top-left-radius: var(--ax-comp-drop-down-border-top-left-radius, var(--ax-sys-border-radius));
|
|
35
53
|
border-top-right-radius: var(--ax-comp-drop-down-border-top-right-radius, var(--ax-sys-border-radius));
|
|
36
54
|
border-bottom-left-radius: var(--ax-comp-drop-down-border-bottom-left-radius, var(--ax-sys-border-radius));
|
|
37
55
|
border-bottom-right-radius: var(--ax-comp-drop-down-border-bottom-right-radius, var(--ax-sys-border-radius));
|
|
38
|
-
|
|
56
|
+
|
|
39
57
|
ax-header,
|
|
40
58
|
ax-footer {
|
|
41
59
|
background-color: rgba(var(--ax-sys-color-lightest-surface));
|
|
42
60
|
padding: 0.75rem;
|
|
43
|
-
/* 12px */
|
|
44
61
|
}
|
|
45
62
|
|
|
46
63
|
&.ax-overlay-center {
|
|
@@ -58,9 +75,13 @@
|
|
|
58
75
|
}
|
|
59
76
|
}
|
|
60
77
|
|
|
61
|
-
.dark {
|
|
78
|
+
.ax-dark .ax-overlay-pane {
|
|
79
|
+
background-color: rgba(var(--ax-sys-color-darker-surface));
|
|
80
|
+
border-color: rgba(var(--ax-sys-color-border-darker-surface));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@supports not (backdrop-filter: blur(1px)) {
|
|
62
84
|
.ax-overlay-pane {
|
|
63
|
-
|
|
64
|
-
border-color: rgba(var(--ax-sys-color-border-darker-surface));
|
|
85
|
+
--ax-comp-dropdown-backdrop-filter-rest: none;
|
|
65
86
|
}
|
|
66
87
|
}
|
|
@@ -2,7 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
@layer base {
|
|
4
4
|
.ax-editor-container {
|
|
5
|
+
--ax-comp-editor-shadow-rest: var(--ax-sys-effect-field-rest);
|
|
6
|
+
--ax-comp-editor-shadow-hover: var(--ax-sys-effect-field-hover);
|
|
7
|
+
--ax-comp-editor-shadow-focus: var(--ax-sys-effect-field-focus);
|
|
8
|
+
--ax-comp-editor-shadow-readonly: var(--ax-sys-effect-field-readonly);
|
|
9
|
+
--ax-comp-editor-shadow-disabled: var(--ax-sys-effect-field-disabled);
|
|
10
|
+
--ax-comp-editor-surface-overlay-rest: var(--ax-sys-surface-overlay-field-rest);
|
|
11
|
+
--ax-comp-editor-surface-overlay-hover: var(--ax-sys-surface-overlay-field-hover);
|
|
12
|
+
--ax-comp-editor-surface-overlay-focus: var(--ax-sys-surface-overlay-field-focus);
|
|
13
|
+
--ax-comp-editor-surface-overlay-readonly: var(--ax-sys-surface-overlay-field-readonly);
|
|
14
|
+
--ax-comp-editor-surface-overlay-disabled: var(--ax-sys-surface-overlay-field-disabled);
|
|
15
|
+
--ax-comp-editor-highlight-rest: var(--ax-sys-highlight-control-subtle);
|
|
16
|
+
--ax-comp-editor-inner-border-rest: var(--ax-sys-inner-border-control);
|
|
17
|
+
--ax-comp-editor-contrast-inner-border-rest: var(--ax-sys-contrast-inner-border-field);
|
|
18
|
+
--ax-comp-editor-contrast-inner-border-hover: var(--ax-sys-contrast-inner-border-field);
|
|
19
|
+
--ax-comp-editor-contrast-inner-border-focus: var(--ax-sys-contrast-inner-border-field);
|
|
20
|
+
--ax-comp-editor-contrast-inner-border-invalid: var(--ax-sys-contrast-inner-border-invalid);
|
|
21
|
+
--ax-comp-editor-contrast-surface-overlay-rest: var(--ax-sys-contrast-surface-overlay-field);
|
|
22
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-rest);
|
|
23
|
+
--ax-comp-editor-transition-duration: var(--ax-sys-motion-duration);
|
|
24
|
+
--ax-comp-editor-transition-timing: var(--ax-sys-motion-timing);
|
|
25
|
+
|
|
5
26
|
@apply rounded-default h-default min-h-default relative flex items-center justify-between overflow-hidden px-3 py-3 text-sm leading-5;
|
|
27
|
+
/*
|
|
28
|
+
* Field inset/elevation only on the host. Contrast border is painted on ::after
|
|
29
|
+
* so native controls (textarea) cannot cover it.
|
|
30
|
+
*/
|
|
31
|
+
box-shadow: var(--ax-comp-editor-shadow-rest);
|
|
32
|
+
background-image:
|
|
33
|
+
linear-gradient(
|
|
34
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
35
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
36
|
+
),
|
|
37
|
+
linear-gradient(
|
|
38
|
+
var(--ax-comp-editor-surface-overlay-rest),
|
|
39
|
+
var(--ax-comp-editor-surface-overlay-rest)
|
|
40
|
+
);
|
|
41
|
+
transform: none;
|
|
42
|
+
transition-property: box-shadow, border-color, background-color, color;
|
|
43
|
+
transition-duration: var(--ax-comp-editor-transition-duration);
|
|
44
|
+
transition-timing-function: var(--ax-comp-editor-transition-timing);
|
|
45
|
+
|
|
46
|
+
&::after {
|
|
47
|
+
content: '';
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset: 0;
|
|
50
|
+
border-radius: inherit;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
z-index: 1;
|
|
53
|
+
box-shadow: var(--ax-comp-editor-contrast-ring);
|
|
54
|
+
}
|
|
6
55
|
|
|
7
56
|
.ax-content {
|
|
8
57
|
@apply text-sm;
|
|
@@ -27,13 +76,16 @@
|
|
|
27
76
|
}
|
|
28
77
|
|
|
29
78
|
&.ax-state-error {
|
|
30
|
-
|
|
79
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-invalid);
|
|
80
|
+
border-color: var(--ax-sys-contrast-border-invalid);
|
|
81
|
+
|
|
31
82
|
&:focus-within {
|
|
32
|
-
|
|
83
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-invalid);
|
|
84
|
+
outline: var(--ax-sys-contrast-focus-ring-invalid);
|
|
85
|
+
outline-offset: 0;
|
|
33
86
|
}
|
|
34
87
|
}
|
|
35
88
|
|
|
36
|
-
/* Keep end padding for spin/clear controls, but not when a suffix button is attached */
|
|
37
89
|
&:has(.ax-general-button-control, .ax-general-button-icon):not(:has(ax-suffix > ax-button)) {
|
|
38
90
|
@apply pe-2;
|
|
39
91
|
}
|
|
@@ -81,7 +133,6 @@
|
|
|
81
133
|
}
|
|
82
134
|
}
|
|
83
135
|
|
|
84
|
-
/* Components layer so these beat button size utilities and spin-button pe-2 */
|
|
85
136
|
@layer components {
|
|
86
137
|
.ax-editor-container {
|
|
87
138
|
&:has(ax-prefix > ax-button),
|
|
@@ -109,5 +160,99 @@
|
|
|
109
160
|
@apply aspect-square size-auto! h-full w-auto!;
|
|
110
161
|
}
|
|
111
162
|
}
|
|
163
|
+
|
|
164
|
+
/* Field appearance — recessed inset for all looks; never outer elevation */
|
|
165
|
+
&:is(.ax-solid, .ax-outline, .ax-twotone, .ax-fill, .ax-flat, .ax-blank) {
|
|
166
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-rest);
|
|
167
|
+
box-shadow: var(--ax-comp-editor-shadow-rest);
|
|
168
|
+
background-image:
|
|
169
|
+
linear-gradient(
|
|
170
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
171
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
172
|
+
),
|
|
173
|
+
linear-gradient(
|
|
174
|
+
var(--ax-comp-editor-surface-overlay-rest),
|
|
175
|
+
var(--ax-comp-editor-surface-overlay-rest)
|
|
176
|
+
);
|
|
177
|
+
transform: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:is(.ax-solid, .ax-outline, .ax-twotone, .ax-fill, .ax-flat, .ax-blank):hover:not(
|
|
181
|
+
.ax-state-disabled,
|
|
182
|
+
.ax-state-readonly,
|
|
183
|
+
.ax-state-error
|
|
184
|
+
) {
|
|
185
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-hover);
|
|
186
|
+
box-shadow: var(--ax-comp-editor-shadow-hover);
|
|
187
|
+
background-image:
|
|
188
|
+
linear-gradient(
|
|
189
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
190
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
191
|
+
),
|
|
192
|
+
linear-gradient(
|
|
193
|
+
var(--ax-comp-editor-surface-overlay-hover),
|
|
194
|
+
var(--ax-comp-editor-surface-overlay-hover)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&:is(.ax-solid, .ax-outline, .ax-twotone, .ax-fill, .ax-flat, .ax-blank).ax-state-readonly {
|
|
199
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-rest);
|
|
200
|
+
box-shadow: var(--ax-comp-editor-shadow-readonly);
|
|
201
|
+
background-image:
|
|
202
|
+
linear-gradient(
|
|
203
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
204
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
205
|
+
),
|
|
206
|
+
linear-gradient(
|
|
207
|
+
var(--ax-comp-editor-surface-overlay-readonly),
|
|
208
|
+
var(--ax-comp-editor-surface-overlay-readonly)
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&:is(.ax-solid, .ax-outline, .ax-twotone, .ax-fill, .ax-flat, .ax-blank).ax-state-disabled {
|
|
213
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-rest);
|
|
214
|
+
box-shadow: var(--ax-comp-editor-shadow-disabled);
|
|
215
|
+
background-image:
|
|
216
|
+
linear-gradient(
|
|
217
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
218
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
219
|
+
),
|
|
220
|
+
linear-gradient(
|
|
221
|
+
var(--ax-comp-editor-surface-overlay-disabled),
|
|
222
|
+
var(--ax-comp-editor-surface-overlay-disabled)
|
|
223
|
+
);
|
|
224
|
+
opacity: var(--ax-sys-contrast-disabled-opacity, 1);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&:is(.ax-solid, .ax-outline, .ax-twotone, .ax-fill, .ax-flat, .ax-blank):focus-within:not(
|
|
228
|
+
.ax-state-disabled,
|
|
229
|
+
.ax-state-readonly,
|
|
230
|
+
.ax-state-error
|
|
231
|
+
) {
|
|
232
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-focus);
|
|
233
|
+
box-shadow: var(--ax-comp-editor-shadow-focus);
|
|
234
|
+
background-image:
|
|
235
|
+
linear-gradient(
|
|
236
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
237
|
+
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
238
|
+
),
|
|
239
|
+
linear-gradient(
|
|
240
|
+
var(--ax-comp-editor-surface-overlay-focus),
|
|
241
|
+
var(--ax-comp-editor-surface-overlay-focus)
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&.ax-state-error {
|
|
246
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-invalid);
|
|
247
|
+
border-color: var(--ax-sys-contrast-border-invalid);
|
|
248
|
+
box-shadow: var(--ax-comp-editor-shadow-rest);
|
|
249
|
+
|
|
250
|
+
&:focus-within {
|
|
251
|
+
--ax-comp-editor-contrast-ring: var(--ax-comp-editor-contrast-inner-border-invalid);
|
|
252
|
+
box-shadow: var(--ax-comp-editor-shadow-focus);
|
|
253
|
+
outline: var(--ax-sys-contrast-focus-ring-invalid);
|
|
254
|
+
outline-offset: 0;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
112
257
|
}
|
|
113
258
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Floating overlays opt out of Appearance + Contrast decorative boundaries.
|
|
3
|
+
* Theme (ax-light / ax-dark) and size still inherit from overlay visual context.
|
|
4
|
+
*
|
|
5
|
+
* Loaded after contrast/appearance theme sheets so these resets win on-pane.
|
|
6
|
+
*/
|
|
7
|
+
:is(.ax-popup, ax-toast, .ax-overlay-pane, .ax-dialog) {
|
|
8
|
+
--ax-sys-contrast-inner-border-surface: 0 0 #0000;
|
|
9
|
+
--ax-sys-contrast-surface-overlay-surface: transparent;
|
|
10
|
+
|
|
11
|
+
--ax-sys-inner-border-surface: 0 0 #0000;
|
|
12
|
+
--ax-sys-highlight-surface: 0 0 #0000;
|
|
13
|
+
--ax-sys-gradient-surface: none;
|
|
14
|
+
--ax-sys-backdrop-filter-surface: none;
|
|
15
|
+
--ax-sys-surface-overlay-surface: transparent;
|
|
16
|
+
--ax-sys-surface-overlay-floating: transparent;
|
|
17
|
+
--ax-sys-surface-overlay-overlay: transparent;
|
|
18
|
+
--ax-sys-surface-overlay-modal: transparent;
|
|
19
|
+
|
|
20
|
+
/* Flat elevation — ignore depth/translucent shadow stacks on floating shells */
|
|
21
|
+
--ax-sys-effect-floating: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
22
|
+
--ax-sys-effect-overlay: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
23
|
+
--ax-sys-effect-modal: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
24
|
+
}
|
package/components/_list.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.dark {
|
|
1
|
+
.ax-dark {
|
|
2
2
|
.ax-list-item {
|
|
3
3
|
&.ax-state-selected {
|
|
4
4
|
background-color: rgba(var(--ax-sys-color-primary-800)) !important;
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
padding-inline-start: 0.75rem;
|
|
100
100
|
font-size: 1rem;
|
|
101
101
|
line-height: 1.5rem;
|
|
102
|
+
color: rgba(var(--ax-sys-color-on-surface));
|
|
102
103
|
&:focus,
|
|
103
104
|
&:focus-visible {
|
|
104
105
|
outline-width: 2px;
|
|
@@ -113,10 +114,6 @@
|
|
|
113
114
|
background-color: rgba(var(--ax-sys-color-primary-500), var(--tw-bg-opacity)) !important;
|
|
114
115
|
color: rgba(var(--ax-sys-color-on-primary), var(--tw-text-opacity)) !important;
|
|
115
116
|
}
|
|
116
|
-
&.ax-state-disabled {
|
|
117
|
-
cursor: not-allowed;
|
|
118
|
-
opacity: 0.5;
|
|
119
|
-
}
|
|
120
117
|
&:focus-visible,
|
|
121
118
|
&:hover {
|
|
122
119
|
background-color: rgba(var(--ax-sys-color-surface));
|
package/components/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,80 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/styles",
|
|
3
|
-
"version": "22.1.0-next.
|
|
3
|
+
"version": "22.1.0-next.10",
|
|
4
4
|
"main": "index.css",
|
|
5
5
|
"author": "Ali Safari",
|
|
6
6
|
"license": "ISC",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"style": "./index.css",
|
|
10
|
+
"default": "./index.css"
|
|
11
|
+
},
|
|
12
|
+
"./index.css": {
|
|
13
|
+
"style": "./index.css",
|
|
14
|
+
"default": "./index.css"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
"./themes/default.css": {
|
|
18
|
+
"style": "./themes/default.css",
|
|
19
|
+
"default": "./themes/default.css"
|
|
20
|
+
},
|
|
21
|
+
"./themes/appearance.css": {
|
|
22
|
+
"style": "./themes/appearance.css",
|
|
23
|
+
"default": "./themes/appearance.css"
|
|
24
|
+
},
|
|
25
|
+
"./themes/appearances": {
|
|
26
|
+
"style": "./themes/appearances/index.css",
|
|
27
|
+
"default": "./themes/appearances/index.css"
|
|
28
|
+
},
|
|
29
|
+
"./themes/appearances/index.css": {
|
|
30
|
+
"style": "./themes/appearances/index.css",
|
|
31
|
+
"default": "./themes/appearances/index.css"
|
|
32
|
+
},
|
|
33
|
+
"./themes/appearances/flat.css": {
|
|
34
|
+
"style": "./themes/appearances/flat.css",
|
|
35
|
+
"default": "./themes/appearances/flat.css"
|
|
36
|
+
},
|
|
37
|
+
"./themes/appearances/depth.css": {
|
|
38
|
+
"style": "./themes/appearances/depth.css",
|
|
39
|
+
"default": "./themes/appearances/depth.css"
|
|
40
|
+
},
|
|
41
|
+
"./themes/appearances/translucent.css": {
|
|
42
|
+
"style": "./themes/appearances/translucent.css",
|
|
43
|
+
"default": "./themes/appearances/translucent.css"
|
|
44
|
+
},
|
|
45
|
+
"./themes/contrast": {
|
|
46
|
+
"style": "./themes/contrast/index.css",
|
|
47
|
+
"default": "./themes/contrast/index.css"
|
|
48
|
+
},
|
|
49
|
+
"./themes/contrast/index.css": {
|
|
50
|
+
"style": "./themes/contrast/index.css",
|
|
51
|
+
"default": "./themes/contrast/index.css"
|
|
52
|
+
},
|
|
53
|
+
"./themes/contrast/enhanced.css": {
|
|
54
|
+
"style": "./themes/contrast/enhanced.css",
|
|
55
|
+
"default": "./themes/contrast/enhanced.css"
|
|
56
|
+
},
|
|
57
|
+
"./themes/contrast/high.css": {
|
|
58
|
+
"style": "./themes/contrast/high.css",
|
|
59
|
+
"default": "./themes/contrast/high.css"
|
|
60
|
+
},
|
|
61
|
+
"./icons/fontawesome/index.css": {
|
|
62
|
+
"style": "./icons/fontawesome/index.css",
|
|
63
|
+
"default": "./icons/fontawesome/index.css"
|
|
64
|
+
},
|
|
65
|
+
"./icons/material/index.css": {
|
|
66
|
+
"style": "./icons/material/index.css",
|
|
67
|
+
"default": "./icons/material/index.css"
|
|
68
|
+
},
|
|
69
|
+
"./icons/lucide/index.css": {
|
|
70
|
+
"style": "./icons/lucide/index.css",
|
|
71
|
+
"default": "./icons/lucide/index.css"
|
|
72
|
+
},
|
|
73
|
+
"./components/index.css": {
|
|
74
|
+
"style": "./components/index.css",
|
|
75
|
+
"default": "./components/index.css"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
7
78
|
"peerDependencies": {
|
|
8
79
|
"@angular/cdk": ">=21.0.0",
|
|
9
80
|
"tailwindcss": ">=4.0.0",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ACoreX Appearance — backward-compatible aggregate entry point.
|
|
3
|
+
*
|
|
4
|
+
* Activation classes:
|
|
5
|
+
* .ax-appearance-flat — explicit flat (optional; flat is default)
|
|
6
|
+
* .ax-appearance-depth — dimensional depth
|
|
7
|
+
* .ax-appearance-translucent — floating/modal surfaces only (subtree)
|
|
8
|
+
*
|
|
9
|
+
* Apply on <html> or any subtree. Independent from theme, look, size, and APIs.
|
|
10
|
+
* Component styles consume semantic tokens via component-level variables.
|
|
11
|
+
*
|
|
12
|
+
* Selective import: @import "@acorex/styles/themes/appearances/depth.css";
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
@import './appearances/index.css';
|