@acorex/styles 19.8.0-next.6 → 19.8.0-next.8
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/icons/fontawesome/index.scss +10 -11
- package/icons/huge/huge-bulk/index.scss +4 -4
- package/icons/huge/huge-duotone/index.scss +4 -4
- package/icons/huge/huge-solid-sharp/index.scss +4 -4
- package/icons/huge/huge-solid-standard/index.scss +4 -4
- package/icons/huge/huge-stroke-rounded/index.scss +4 -4
- package/icons/huge/huge-stroke-sharp/index.scss +4 -4
- package/icons/huge/huge-stroke-standard/index.scss +4 -4
- package/icons/huge/huge-twotone/index.scss +4 -4
- package/icons/material/index.scss +4 -5
- package/index.css +319 -2016
- package/index.min.css +1 -1
- package/index.scss +1 -0
- package/package.json +1 -1
- package/src/base/index.scss +2 -4
- package/src/components/editors/_base.scss +50 -0
- package/src/components/editors/index.scss +60 -0
- package/src/components/editors/looks/_fill.scss +17 -0
- package/src/components/editors/looks/_flat.scss +18 -0
- package/src/components/editors/looks/_outline.scss +18 -0
- package/src/components/editors/looks/_solid.scss +20 -0
- package/src/components/editors/looks/index.scss +4 -0
- package/src/components/index.scss +1 -0
- package/src/mixins/_look.scss +20 -35
- package/src/shared/_action-item.scss +3 -3
- package/src/shared/_actionsheet.scss +7 -6
- package/src/shared/_check-box.scss +8 -14
- package/src/shared/_drop-down.scss +7 -16
- package/src/shared/_editor-container.scss +35 -75
- package/src/shared/_general-button.scss +11 -12
- package/src/shared/_inputs.scss +0 -16
- package/src/shared/_list.scss +15 -41
- package/src/shared/_radio.scss +8 -14
- package/src/shared/_ripple.scss +13 -0
- package/src/shared/_table.scss +9 -30
- package/src/shared/_utils.scss +10 -16
- package/src/shared/index.scss +4 -2
- package/src/utility/index.scss +2 -22
- package/src/variables/_colors.scss +1 -1
- package/tailwind-base.js +89 -56
- package/themes/default.css +1 -1
- package/themes/default.scss +240 -139
- package/themes/test.scss +237 -0
- package/src/shared/_color-look.scss +0 -822
package/src/shared/_radio.scss
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
@use '../mixins/index.scss';
|
2
2
|
|
3
3
|
.ax-radio {
|
4
|
-
// @apply ax-m-0 ax-h-4 ax-w-4 ax-cursor-pointer ax-appearance-none ax-rounded ax-border ax-border-default ax-bg-input-surface ax-align-middle ax-outline-none;
|
5
4
|
margin: 0px;
|
6
5
|
height: 1rem /* 16px */;
|
7
6
|
min-height: 1rem /* 16px */;
|
@@ -11,20 +10,17 @@
|
|
11
10
|
appearance: none;
|
12
11
|
border-radius: 9999px /* 4px */;
|
13
12
|
border-width: 1px;
|
14
|
-
border-color: rgba(var(--ax-
|
15
|
-
background-color: rgba(var(--ax-
|
13
|
+
border-color: rgba(var(--ax-sys-surface-input-border-color));
|
14
|
+
background-color: rgba(var(--ax-sys-surface-input-bg-color));
|
16
15
|
vertical-align: middle;
|
17
16
|
outline: 2px solid transparent;
|
18
17
|
outline-offset: 2px;
|
19
18
|
|
20
19
|
&:checked {
|
21
|
-
|
22
|
-
|
23
|
-
background-color: rgba(var(--ax-color-primary-500)) !important;
|
20
|
+
border-color: rgba(var(--ax-sys-color-primary-500)) !important;
|
21
|
+
background-color: rgba(var(--ax-sys-color-primary-500)) !important;
|
24
22
|
background-size: contain;
|
25
23
|
background-repeat: no-repeat;
|
26
|
-
|
27
|
-
// @apply ax-bg-contain ax-bg-no-repeat;
|
28
24
|
}
|
29
25
|
|
30
26
|
&:checked {
|
@@ -33,14 +29,12 @@
|
|
33
29
|
|
34
30
|
&:focus-visible,
|
35
31
|
&:focus {
|
36
|
-
// @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2 ax-ring-offset-surface;
|
37
32
|
box-shadow:
|
38
|
-
0px 0px 0px 2px rgba(var(--ax-
|
39
|
-
0px 0px 0px 4px rgba(var(--ax-color-primary-500));
|
33
|
+
0px 0px 0px 2px rgba(var(--ax-sys-surface-bg-color)),
|
34
|
+
0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
|
40
35
|
}
|
41
36
|
|
42
37
|
&:disabled {
|
43
|
-
// @apply ax-cursor-not-allowed ax-opacity-50;
|
44
38
|
cursor: not-allowed;
|
45
39
|
opacity: 0.5;
|
46
40
|
}
|
@@ -49,8 +43,8 @@
|
|
49
43
|
// @include darkMode() {
|
50
44
|
// .ax-checkbox {
|
51
45
|
// &:checked {
|
52
|
-
// border-color: rgba(var(--ax-color-primary-200)) !important;
|
53
|
-
// background-color: rgba(var(--ax-color-primary-200)) !important;
|
46
|
+
// border-color: rgba(var(--ax-sys-color-primary-200)) !important;
|
47
|
+
// background-color: rgba(var(--ax-sys-color-primary-200)) !important;
|
54
48
|
// background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
55
49
|
// }
|
56
50
|
// }
|
package/src/shared/_table.scss
CHANGED
@@ -2,39 +2,34 @@
|
|
2
2
|
@include mixins.darkMode() {
|
3
3
|
.ax-table {
|
4
4
|
thead {
|
5
|
-
|
6
|
-
background-color: rgba(var(--ax-color-on-surface));
|
5
|
+
background-color: rgba(var(--ax-sys-surface-high-bg-color));
|
7
6
|
}
|
8
7
|
}
|
9
8
|
}
|
10
9
|
.ax-table {
|
11
|
-
// @apply ax-w-full ax-border-collapse ax-border-spacing-0 ax-overflow-hidden ax-rounded-default ax-border ax-border-default ax-text-sm;
|
12
10
|
width: 100%;
|
13
11
|
border-collapse: collapse;
|
14
12
|
border-spacing: 0;
|
15
13
|
overflow: hidden;
|
16
|
-
border-radius: var(--ax-
|
14
|
+
border-radius: var(--ax-sys-border-radius);
|
17
15
|
border-width: 1px;
|
18
|
-
border-color: rgba(var(--ax-
|
16
|
+
border-color: rgba(var(--ax-sys-border-color));
|
19
17
|
font-size: 0.875rem /* 14px */;
|
20
18
|
line-height: 1.25rem /* 20px */;
|
21
19
|
td {
|
22
|
-
// @apply ax-border-b ax-border-default ax-px-4 ax-py-3;
|
23
20
|
border-bottom-width: 1px;
|
24
|
-
border-color: rgba(var(--ax-
|
21
|
+
border-color: rgba(var(--ax-sys-border-color));
|
25
22
|
padding-left: 1rem /* 16px */;
|
26
23
|
padding-right: 1rem /* 16px */;
|
27
24
|
padding-top: 0.75rem /* 12px */;
|
28
25
|
padding-bottom: 0.75rem /* 12px */;
|
29
26
|
}
|
30
27
|
thead {
|
31
|
-
// @apply ax-border-b ax-border-default ax-bg-on-surface;
|
32
28
|
border-bottom-width: 1px;
|
33
|
-
border-color: rgba(var(--ax-
|
34
|
-
background-color: rgba(var(--ax-
|
29
|
+
border-color: rgba(var(--ax-sys-border-color));
|
30
|
+
background-color: rgba(var(--ax-sys-surface-high-bg-color));
|
35
31
|
|
36
32
|
th {
|
37
|
-
// @apply ax-px-4 ax-py-3.5 ax-text-start ax-font-medium ax-uppercase;
|
38
33
|
padding-left: 1rem /* 16px */;
|
39
34
|
padding-right: 1rem /* 16px */;
|
40
35
|
padding-top: 0.875rem /* 14px */;
|
@@ -48,8 +43,7 @@
|
|
48
43
|
tbody {
|
49
44
|
tr {
|
50
45
|
&:nth-child(even) {
|
51
|
-
|
52
|
-
background-color: rgba(var(--ax-color-on-surface));
|
46
|
+
background-color: rgba(var(--ax-sys-surface-high-bg-color));
|
53
47
|
}
|
54
48
|
}
|
55
49
|
}
|
@@ -57,7 +51,6 @@
|
|
57
51
|
&.ax-table-bordered {
|
58
52
|
thead {
|
59
53
|
th {
|
60
|
-
// @apply ax-border-t-0 #{!important};
|
61
54
|
border-top-width: 0px !important;
|
62
55
|
}
|
63
56
|
}
|
@@ -65,13 +58,11 @@
|
|
65
58
|
tr {
|
66
59
|
&:last-child {
|
67
60
|
td {
|
68
|
-
// @apply ax-border-b-0 #{!important};
|
69
61
|
border-bottom-width: 0px !important;
|
70
62
|
}
|
71
63
|
}
|
72
64
|
td {
|
73
65
|
&:last-child {
|
74
|
-
// @apply ax-border-b-0 #{!important};
|
75
66
|
border-bottom-width: 0px !important;
|
76
67
|
}
|
77
68
|
}
|
@@ -80,37 +71,30 @@
|
|
80
71
|
|
81
72
|
td,
|
82
73
|
th {
|
83
|
-
// @apply ax-border ax-border-default;
|
84
74
|
border-width: 1px;
|
85
|
-
border-color: rgba(var(--ax-
|
75
|
+
border-color: rgba(var(--ax-sys-border-color));
|
86
76
|
|
87
77
|
&:first-child {
|
88
|
-
// @apply ax-border-s-0;
|
89
78
|
border-inline-start-width: 0px;
|
90
79
|
}
|
91
80
|
&:last-child {
|
92
|
-
// @apply ax-border-e-0;
|
93
81
|
border-inline-end-width: 0px;
|
94
82
|
}
|
95
83
|
}
|
96
84
|
}
|
97
85
|
@include mixins.mediaLessThan('xs') {
|
98
86
|
&.ax-table-responsive {
|
99
|
-
// @apply ax-block ax-break-words ax-border-0;
|
100
87
|
display: block;
|
101
88
|
overflow-wrap: break-word;
|
102
89
|
border-width: 0px;
|
103
90
|
|
104
91
|
thead {
|
105
|
-
// @apply ax-absolute -ax-start-full -ax-top-full;
|
106
92
|
position: absolute;
|
107
93
|
inset-inline-start: -100%;
|
108
94
|
top: -100%;
|
109
95
|
}
|
110
96
|
|
111
97
|
td {
|
112
|
-
// @apply ax-clear-both ax-box-border ax-block ax-w-full ax-px-2.5 ax-py-1.5;
|
113
|
-
|
114
98
|
float: inline-start;
|
115
99
|
clear: both;
|
116
100
|
box-sizing: border-box;
|
@@ -121,25 +105,20 @@
|
|
121
105
|
padding-top: 0.375rem /* 6px */;
|
122
106
|
padding-bottom: 0.375rem /* 6px */;
|
123
107
|
&:last-child {
|
124
|
-
// @apply ax-border-0;
|
125
108
|
border-width: 0px;
|
126
109
|
}
|
127
110
|
&:before {
|
128
|
-
// @apply ax-block ax-font-bold;
|
129
|
-
|
130
111
|
content: attr(data-label);
|
131
112
|
display: block;
|
132
113
|
font-weight: 700;
|
133
114
|
}
|
134
115
|
}
|
135
116
|
tr {
|
136
|
-
// @apply ax-border ax-border-default;
|
137
117
|
border-width: 1px;
|
138
|
-
border-color: rgba(var(--ax-
|
118
|
+
border-color: rgba(var(--ax-sys-border-color));
|
139
119
|
}
|
140
120
|
tr,
|
141
121
|
tbody {
|
142
|
-
// @apply ax-mb-2.5 ax-block ax-w-full;
|
143
122
|
float: inline-start;
|
144
123
|
margin-bottom: 0.625rem /* 10px */;
|
145
124
|
width: 100%;
|
package/src/shared/_utils.scss
CHANGED
@@ -11,14 +11,12 @@
|
|
11
11
|
}
|
12
12
|
|
13
13
|
.ax-fieldset {
|
14
|
-
|
15
|
-
border-radius: var(--ax-rounded-border-default);
|
14
|
+
border-radius: var(--ax-sys-border-radius);
|
16
15
|
border-width: 1px;
|
17
|
-
border-color: rgba(var(--ax-
|
16
|
+
border-color: rgba(var(--ax-sys-surface-input-border-color));
|
18
17
|
padding: 0.75rem /* 12px */;
|
19
18
|
|
20
19
|
legend {
|
21
|
-
// @apply ax-px-1 ax-text-sm;
|
22
20
|
padding-left: 0.25rem /* 4px */;
|
23
21
|
padding-right: 0.25rem /* 4px */;
|
24
22
|
font-size: 0.875rem /* 14px */;
|
@@ -27,16 +25,14 @@
|
|
27
25
|
}
|
28
26
|
|
29
27
|
.ax-card {
|
30
|
-
|
31
|
-
border-radius: var(--ax-rounded-border-default);
|
28
|
+
border-radius: var(--ax-sys-border-radius);
|
32
29
|
border-width: 1px;
|
33
|
-
border-color: rgba(var(--ax-
|
34
|
-
background-color: rgba(var(--ax-
|
30
|
+
border-color: rgba(var(--ax-sys-surface-input-border-color));
|
31
|
+
background-color: rgba(var(--ax-sys-surface-bg-color));
|
35
32
|
}
|
36
33
|
|
37
34
|
.ax-drop-zone {
|
38
35
|
> input {
|
39
|
-
// @apply ax-absolute ax-h-full ax-w-full ax-cursor-pointer ax-opacity-0;
|
40
36
|
position: absolute;
|
41
37
|
height: 100%;
|
42
38
|
width: 100%;
|
@@ -45,7 +41,6 @@
|
|
45
41
|
}
|
46
42
|
}
|
47
43
|
.ax-uploader-overlay-state {
|
48
|
-
// @apply ax-pointer-events-none ax-absolute ax-start-0 ax-top-0 ax-z-10 ax-flex ax-h-full ax-w-full ax-cursor-pointer ax-flex-col ax-items-center ax-justify-center ax-gap-2 ax-bg-primary-200/75 ax-text-sm ax-text-primary-fore-tint ax-outline-dashed ax-outline-2 -ax-outline-offset-4 ax-transition-all;
|
49
44
|
border-radius: inherit;
|
50
45
|
pointer-events: none;
|
51
46
|
position: absolute;
|
@@ -60,10 +55,10 @@
|
|
60
55
|
align-items: center;
|
61
56
|
justify-content: center;
|
62
57
|
gap: 0.5rem /* 8px */;
|
63
|
-
background-color: rgba(var(--ax-color-primary-200), 0.75);
|
58
|
+
background-color: rgba(var(--ax-sys-color-primary-200), 0.75);
|
64
59
|
font-size: 0.875rem /* 14px */;
|
65
60
|
line-height: 1.25rem /* 20px */;
|
66
|
-
color: rgba(var(--ax-color-primary-
|
61
|
+
color: rgba(var(--ax-sys-color-on-primary-tint));
|
67
62
|
outline-style: dashed;
|
68
63
|
outline-offset: -4px;
|
69
64
|
transition-property: all;
|
@@ -77,9 +72,8 @@
|
|
77
72
|
}
|
78
73
|
@include util.darkMode() {
|
79
74
|
.ax-uploader-overlay-state {
|
80
|
-
|
81
|
-
|
82
|
-
color: rgba(var(--ax-color-primary
|
83
|
-
outline-color: rgba(var(--ax-color-primary-fore));
|
75
|
+
background-color: rgba(var(--ax-sys-color-primary-800), 0.75);
|
76
|
+
color: rgba(var(--ax-sys-color-on-primary));
|
77
|
+
outline-color: rgba(var(--ax-sys-color-on-primary));
|
84
78
|
}
|
85
79
|
}
|
package/src/shared/index.scss
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
@forward './action-item';
|
2
2
|
@forward './actionsheet';
|
3
3
|
@forward './check-box';
|
4
|
-
@forward './color-look';
|
5
4
|
@forward './drop-down';
|
6
|
-
@forward './editor-container';
|
5
|
+
// @forward './editor-container';
|
7
6
|
@forward './general-button';
|
8
7
|
@forward './inputs';
|
9
8
|
@forward './list';
|
10
9
|
@forward './radio';
|
11
10
|
@forward './table';
|
12
11
|
@forward './utils';
|
12
|
+
|
13
|
+
// new //
|
14
|
+
@forward './ripple';
|
package/src/utility/index.scss
CHANGED
@@ -1,24 +1,4 @@
|
|
1
|
-
.ax-xs {
|
2
|
-
--ax-size-default: calc(var(--ax-size-base) - 0.75rem);
|
3
|
-
}
|
4
|
-
|
5
|
-
.ax-sm {
|
6
|
-
--ax-size-default: calc(var(--ax-size-base) - 0.5rem);
|
7
|
-
}
|
8
|
-
|
9
|
-
.ax-md {
|
10
|
-
--ax-size-default: var(--ax-size-base);
|
11
|
-
}
|
12
|
-
|
13
|
-
.ax-lg {
|
14
|
-
--ax-size-default: calc(var(--ax-size-base) + 0.5rem);
|
15
|
-
}
|
16
|
-
|
17
|
-
.ax-xl {
|
18
|
-
--ax-size-default: calc(var(--ax-size-base) + 1rem);
|
19
|
-
}
|
20
|
-
|
21
1
|
.ax-placeholder {
|
22
|
-
color: rgba(var(--ax-
|
23
|
-
font-
|
2
|
+
color: rgba(var(--ax-sys-surface-input-placeholder-color));
|
3
|
+
font-size: calc(var(--ax-comp-editor-font-size) * 0.875);
|
24
4
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
$color_names: 'primary', 'success', 'warning', 'danger', '
|
1
|
+
$color_names: 'primary', 'success', 'warning', 'danger', 'secondary';
|
2
2
|
$look_names: 'solid', 'twotone', 'outline', 'blank', 'link';
|
package/tailwind-base.js
CHANGED
@@ -17,36 +17,71 @@ const childSelector = plugin(function ({ addVariant }) {
|
|
17
17
|
addVariant('child-focus-within', '& > *:focus-within');
|
18
18
|
});
|
19
19
|
|
20
|
-
const
|
21
|
-
|
22
|
-
'
|
20
|
+
const _onColors = {
|
21
|
+
'on-surface-light': 'rgba(var(--ax-sys-on-surface-light-color), <alpha-value>)',
|
22
|
+
'on-surface-lowest': 'rgba(var(--ax-sys-on-surface-lowest-color), <alpha-value>)',
|
23
|
+
'on-surface-low': 'rgba(var(--ax-sys-on-surface-low-color), <alpha-value>)',
|
24
|
+
'on-surface': 'rgba(var(--ax-sys-on-surface-color), <alpha-value>)',
|
25
|
+
'on-surface-high': 'rgba(var(--ax-sys-on-surface-high-color), <alpha-value>)',
|
26
|
+
'on-surface-highest': 'rgba(var(--ax-sys-on-surface-highest-color), <alpha-value>)',
|
27
|
+
'on-surface-dark': 'rgba(var(--ax-sys-on-surface-dark-color), <alpha-value>)',
|
28
|
+
}
|
29
|
+
|
30
|
+
const _bgColors = {
|
31
|
+
default: 'rgba(var( --ax-sys-body-bg-color), <alpha-value>)',
|
32
|
+
'surface-light': 'rgba(var(--ax-sys-surface-light-bg-color), <alpha-value>)',
|
33
|
+
'surface-lowest': 'rgba(var(--ax-sys-surface-lowest-bg-color), <alpha-value>)',
|
34
|
+
'surface-low': 'rgba(var(--ax-sys-surface-low-bg-color), <alpha-value>)',
|
35
|
+
surface: 'rgba(var(--ax-sys-surface-bg-color), <alpha-value>)',
|
36
|
+
'surface-high': 'rgba(var(--ax-sys-surface-high-bg-color), <alpha-value>)',
|
37
|
+
'surface-highest': 'rgba(var(--ax-sys-surface-highest-bg-color), <alpha-value>)',
|
38
|
+
'surface-dark': 'rgba(var(--ax-sys-surface-dark-bg-color), <alpha-value>)',
|
39
|
+
'surface-input': 'rgba(var(--ax-sys-surface-input-bg-color), <alpha-value>)',
|
40
|
+
..._onColors
|
41
|
+
|
42
|
+
|
43
|
+
};
|
44
|
+
|
45
|
+
const _textColors = {
|
46
|
+
DEFAULT: withOpacityValue('--ax-sys-body-text-color'),
|
47
|
+
default: withOpacityValue('--ax-sys-body-text-color'),
|
48
|
+
'surface-light': 'rgba(var(--ax-sys-on-surface-light-color), <alpha-value>)',
|
49
|
+
'surface-lowest': 'rgba(var(--ax-sys-on-surface-lowest-color), <alpha-value>)',
|
50
|
+
'surface-low': 'rgba(var(--ax-sys-on-surface-low-color), <alpha-value>)',
|
51
|
+
surface: 'rgba(var(--ax-sys-on-surface-color), <alpha-value>)',
|
52
|
+
'surface-high': 'rgba(var(--ax-sys-on-surface-high-color), <alpha-value>)',
|
53
|
+
'surface-dark': 'rgba(var(--ax-sys-on-surface-dark-color), <alpha-value>)',
|
54
|
+
'surface-highest': 'rgba(var(--ax-sys-on-surface-highest-color), <alpha-value>)',
|
23
55
|
|
24
|
-
|
25
|
-
'surface-fore': 'rgba(var(--ax-color-surface-fore), <alpha-value>)',
|
56
|
+
};
|
26
57
|
|
27
|
-
|
28
|
-
'
|
58
|
+
const _borderColors = {
|
59
|
+
'surface-light': 'rgba(var(--ax-sys-surface-light-border-color), <alpha-value>)',
|
60
|
+
'surface-lowest': 'rgba(var(--ax-sys-surface-lowest-border-color), <alpha-value>)',
|
61
|
+
'surface-low': 'rgba(var(--ax-sys-surface-low-border-color), <alpha-value>)',
|
62
|
+
surface: 'rgba(var(--ax-sys-surface-border-color), <alpha-value>)',
|
63
|
+
'surface-high': 'rgba(var(--ax-sys-surface-high-border-color), <alpha-value>)',
|
64
|
+
'surface-dark': 'rgba(var(--ax-sys-surface-dark-border-color), <alpha-value>)',
|
65
|
+
'surface-highest': 'rgba(var(--ax-sys-surface-highest-border-color), <alpha-value>)',
|
29
66
|
|
30
|
-
'input-surface': 'rgba(var(--ax-color-input-surface), <alpha-value>)',
|
31
|
-
'input-surface-fore': 'rgba(var(--ax-color-input-surface-fore), <alpha-value>)',
|
32
67
|
};
|
33
68
|
|
34
69
|
const createPalete = function (colorName) {
|
35
70
|
return {
|
36
|
-
DEFAULT: `rgba(var(--ax-color-${colorName}-500), <alpha-value>)`,
|
37
|
-
|
38
|
-
'
|
39
|
-
50: `rgba(var(--ax-color-${colorName}-50), <alpha-value>)`,
|
40
|
-
100: `rgba(var(--ax-color-${colorName}-100), <alpha-value>)`,
|
41
|
-
200: `rgba(var(--ax-color-${colorName}-200), <alpha-value>)`,
|
42
|
-
300: `rgba(var(--ax-color-${colorName}-300), <alpha-value>)`,
|
43
|
-
400: `rgba(var(--ax-color-${colorName}-400), <alpha-value>)`,
|
44
|
-
500: `rgba(var(--ax-color-${colorName}-500), <alpha-value>)`,
|
45
|
-
600: `rgba(var(--ax-color-${colorName}-600), <alpha-value>)`,
|
46
|
-
700: `rgba(var(--ax-color-${colorName}-700), <alpha-value>)`,
|
47
|
-
800: `rgba(var(--ax-color-${colorName}-800), <alpha-value>)`,
|
48
|
-
900: `rgba(var(--ax-color-${colorName}-900), <alpha-value>)`,
|
49
|
-
950: `rgba(var(--ax-color-${colorName}-950), <alpha-value>)`,
|
71
|
+
DEFAULT: `rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)`,
|
72
|
+
text: `rgba(var(--ax-sys-color-on-${colorName}), <alpha-value>)`,
|
73
|
+
'contrast-text': `rgba(var(--ax-sys-color-on-contrast-${colorName}), <alpha-value>)`,
|
74
|
+
50: `rgba(var(--ax-sys-color-${colorName}-50), <alpha-value>)`,
|
75
|
+
100: `rgba(var(--ax-sys-color-${colorName}-100), <alpha-value>)`,
|
76
|
+
200: `rgba(var(--ax-sys-color-${colorName}-200), <alpha-value>)`,
|
77
|
+
300: `rgba(var(--ax-sys-color-${colorName}-300), <alpha-value>)`,
|
78
|
+
400: `rgba(var(--ax-sys-color-${colorName}-400), <alpha-value>)`,
|
79
|
+
500: `rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)`,
|
80
|
+
600: `rgba(var(--ax-sys-color-${colorName}-600), <alpha-value>)`,
|
81
|
+
700: `rgba(var(--ax-sys-color-${colorName}-700), <alpha-value>)`,
|
82
|
+
800: `rgba(var(--ax-sys-color-${colorName}-800), <alpha-value>)`,
|
83
|
+
900: `rgba(var(--ax-sys-color-${colorName}-900), <alpha-value>)`,
|
84
|
+
950: `rgba(var(--ax-sys-color-${colorName}-950), <alpha-value>)`,
|
50
85
|
};
|
51
86
|
};
|
52
87
|
|
@@ -58,33 +93,31 @@ module.exports = withAnimations({
|
|
58
93
|
extend: {
|
59
94
|
colors: {
|
60
95
|
primary: createPalete('primary'),
|
96
|
+
secondary: createPalete('secondary'),
|
61
97
|
success: createPalete('success'),
|
62
98
|
danger: createPalete('danger'),
|
63
99
|
warning: createPalete('warning'),
|
64
|
-
|
65
|
-
..._colors,
|
100
|
+
ghost: createPalete('ghost'),
|
66
101
|
},
|
67
102
|
textColor: {
|
68
|
-
|
69
|
-
default: withOpacityValue('--ax-color-text-default'),
|
70
|
-
..._colors,
|
103
|
+
..._textColors,
|
71
104
|
},
|
72
105
|
backgroundColor: {
|
73
|
-
|
74
|
-
'border-default': 'rgba(var(--ax-color-border-default), <alpha-value>)',
|
106
|
+
..._bgColors,
|
75
107
|
},
|
76
108
|
|
77
109
|
borderColor: {
|
78
|
-
DEFAULT: 'rgba(var(--ax-
|
79
|
-
default: 'rgba(var(--ax-
|
80
|
-
input: 'rgba(var(--ax-
|
81
|
-
|
110
|
+
DEFAULT: 'rgba(var(--ax-sys-border-color), <alpha-value>)',
|
111
|
+
default: 'rgba(var(--ax-sys-border-color), <alpha-value>)',
|
112
|
+
input: 'rgba(var(--ax-sys-surface-input-border-color), <alpha-value>)',
|
113
|
+
'border-default': 'rgba(var(--ax-sys-border-color), <alpha-value>)',
|
114
|
+
..._borderColors,
|
82
115
|
},
|
83
116
|
maxWidth: {
|
84
117
|
'8xl': '90rem',
|
85
118
|
},
|
86
119
|
borderRadius: {
|
87
|
-
default: 'var(--ax-
|
120
|
+
default: 'var(--ax-sys-border-radius)',
|
88
121
|
},
|
89
122
|
lineHeight: {
|
90
123
|
11: '2.5rem',
|
@@ -95,25 +128,25 @@ module.exports = withAnimations({
|
|
95
128
|
20: '5rem',
|
96
129
|
},
|
97
130
|
spacing: {
|
98
|
-
default: 'var(--ax-size-
|
131
|
+
default: 'var(--ax-sys-size-base)',
|
99
132
|
},
|
100
133
|
minWidth: {
|
101
|
-
default: 'var(--ax-size-
|
134
|
+
default: 'var(--ax-sys-size-base)',
|
102
135
|
},
|
103
136
|
width: {
|
104
|
-
default: 'var(--ax-size-
|
137
|
+
default: 'var(--ax-sys-size-base)',
|
105
138
|
},
|
106
139
|
maxHeight: {
|
107
|
-
default: 'var(--ax-size-
|
140
|
+
default: 'var(--ax-sys-size-base)',
|
108
141
|
},
|
109
142
|
minHeight: {
|
110
|
-
default: 'var(--ax-size-
|
143
|
+
default: 'var(--ax-sys-size-base)',
|
111
144
|
},
|
112
145
|
height: {
|
113
|
-
default: 'var(--ax-size-
|
146
|
+
default: 'var(--ax-sys-size-base)',
|
114
147
|
},
|
115
148
|
maxHeight: {
|
116
|
-
default: 'var(--ax-size-
|
149
|
+
default: 'var(--ax-sys-size-base)',
|
117
150
|
},
|
118
151
|
},
|
119
152
|
},
|
@@ -156,12 +189,12 @@ module.exports = withAnimations({
|
|
156
189
|
'.heading': {
|
157
190
|
width: '100%',
|
158
191
|
'border-bottom': '1px solid',
|
159
|
-
'border-color': 'rgba(var(--ax-
|
192
|
+
'border-color': 'rgba(var(--ax-sys-border-color))',
|
160
193
|
'line-height': '0.1em',
|
161
194
|
margin: '1rem auto',
|
162
195
|
},
|
163
196
|
'.heading > span': {
|
164
|
-
background: 'rgba(var(--ax-
|
197
|
+
background: 'rgba(var(--ax-sys-surface-bg-color))',
|
165
198
|
padding: '0 0.75rem',
|
166
199
|
},
|
167
200
|
'.heading-start': {
|
@@ -173,15 +206,15 @@ module.exports = withAnimations({
|
|
173
206
|
'.heading-end': {
|
174
207
|
'text-align': 'end',
|
175
208
|
},
|
176
|
-
'.
|
177
|
-
color: 'rgba(var(--ax-color-primary-500))',
|
209
|
+
'.links': {
|
210
|
+
color: 'rgba(var(--ax-sys-color-primary-500))',
|
178
211
|
cursor: 'pointer',
|
179
212
|
},
|
180
|
-
'.
|
213
|
+
'.links:hover': {
|
181
214
|
'text-decoration': 'underline',
|
182
215
|
},
|
183
|
-
'.
|
184
|
-
color: 'rgba(var(--ax-color-primary-700))',
|
216
|
+
'.links:visited': {
|
217
|
+
color: 'rgba(var(--ax-sys-color-primary-700))',
|
185
218
|
},
|
186
219
|
'.animate-slow': {
|
187
220
|
animationDuration: '2s',
|
@@ -204,26 +237,26 @@ module.exports = withAnimations({
|
|
204
237
|
'.card': {
|
205
238
|
backgroundColor: 'rgb(var(--ax-color-surface))',
|
206
239
|
border: '1px solid',
|
207
|
-
borderColor: 'rgb(var(--ax-
|
208
|
-
borderRadius: 'var(--ax-
|
240
|
+
borderColor: 'rgb(var(--ax-sys-border-color))',
|
241
|
+
borderRadius: 'var(--ax-sys-border-radius)',
|
209
242
|
},
|
210
243
|
'.tabs-fit': {
|
211
244
|
width: '100%',
|
212
245
|
},
|
213
246
|
'.xs': {
|
214
|
-
'--ax-size-
|
247
|
+
'--ax-sys-size-base': '2rem',
|
215
248
|
},
|
216
249
|
'.sm': {
|
217
|
-
'--ax-size-
|
250
|
+
'--ax-sys-size-base': '2.25rem',
|
218
251
|
},
|
219
252
|
'.md': {
|
220
|
-
'--ax-size-
|
253
|
+
'--ax-sys-size-base': '2.5rem',
|
221
254
|
},
|
222
255
|
'.lg': {
|
223
|
-
'--ax-size-
|
256
|
+
'--ax-sys-size-base': '3rem',
|
224
257
|
},
|
225
258
|
'.xl': {
|
226
|
-
'--ax-size-
|
259
|
+
'--ax-sys-size-base': '3.5rem',
|
227
260
|
},
|
228
261
|
};
|
229
262
|
addUtilities(acorexClasses, ['responsive', 'hover', 'focus']);
|
package/themes/default.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root,.ax-light{--ax-size-base: 2.5rem;--ax-
|
1
|
+
:root,.ax-light{--ax-sys-body-font-size: 1rem;--ax-sys-size-base: 2.5rem;--ax-sys-transition-duration: 150ms;--ax-sys-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);--ax-sys-border-radius: 0.5rem;--ax-sys-border-color: 233, 234, 235;--ax-sys-body-bg-color: var(--ax-sys-surface-lowest-bg-color);--ax-sys-body-text-color: 22, 22, 22;--ax-sys-surface-light-bg-color: 255, 255, 255;--ax-sys-on-surface-light-color: 0, 0, 0;--ax-sys-surface-light-border-color: 0, 0, 0;--ax-sys-surface-lowest-bg-color: 255, 255, 255;--ax-sys-on-surface-lowest-color: 40, 40, 40;--ax-sys-surface-lowest-border-color: 233, 236, 239;--ax-sys-surface-low-bg-color: 248, 249, 250;--ax-sys-on-surface-low-color: 40, 40, 40;--ax-sys-surface-low-border-color: 233, 236, 239;--ax-sys-surface-bg-color: 239, 241, 243;--ax-sys-on-surface-color: 30, 30, 30;--ax-sys-surface-border-color: 232, 235, 238;--ax-sys-surface-high-bg-color: 234, 237, 239;--ax-sys-on-surface-high-color: 20, 20, 20;--ax-sys-surface-high-border-color: 228, 231, 234;--ax-sys-surface-highest-bg-color: 230, 233, 236;--ax-sys-on-surface-highest-color: 10, 10, 10;--ax-sys-surface-highest-border-color: 225, 229, 233;--ax-sys-surface-input-bg-color: 255, 255, 255;--ax-sys-surface-input-text-color: 30, 30, 30;--ax-sys-surface-input-placeholder-color: 180, 180, 180;--ax-sys-surface-input-border-color: 220, 220, 220;--ax-sys-surface-dark-bg-color: 0, 0, 0;--ax-sys-on-surface-dark-color: 255, 255, 255;--ax-sys-surface-dark-border-color: 255, 255, 255;--ax-sys-color-on-primary: 255, 255, 255;--ax-sys-color-on-contrast-primary: 11, 30, 71;--ax-sys-color-primary-50: 239, 246, 255;--ax-sys-color-primary-100: 219, 234, 254;--ax-sys-color-primary-200: 191, 219, 254;--ax-sys-color-primary-300: 147, 197, 253;--ax-sys-color-primary-400: 96, 165, 250;--ax-sys-color-primary-500: 59, 130, 246;--ax-sys-color-primary-600: 37, 99, 235;--ax-sys-color-primary-700: 29, 78, 216;--ax-sys-color-primary-800: 30, 64, 175;--ax-sys-color-primary-900: 30, 58, 138;--ax-sys-color-primary-950: 23, 37, 84;--ax-sys-color-on-secondary: 255, 255, 255;--ax-sys-color-on-contrast-secondary: 9, 9, 11;--ax-sys-color-secondary-50: 249, 250, 251;--ax-sys-color-secondary-100: 243, 244, 246;--ax-sys-color-secondary-200: 229, 231, 235;--ax-sys-color-secondary-300: 209, 213, 219;--ax-sys-color-secondary-400: 156, 163, 175;--ax-sys-color-secondary-500: 107, 114, 128;--ax-sys-color-secondary-600: 75, 85, 99;--ax-sys-color-secondary-700: 55, 65, 81;--ax-sys-color-secondary-800: 31, 41, 55;--ax-sys-color-secondary-900: 24, 24, 27;--ax-sys-color-secondary-950: 9, 9, 11;--ax-sys-color-on-success: 255, 255, 255;--ax-sys-color-on-contrast-success: 5, 46, 22;--ax-sys-color-success-50: 240, 253, 244;--ax-sys-color-success-100: 220, 252, 231;--ax-sys-color-success-200: 187, 247, 208;--ax-sys-color-success-300: 134, 239, 172;--ax-sys-color-success-400: 74, 222, 128;--ax-sys-color-success-500: 34, 197, 94;--ax-sys-color-success-600: 22, 163, 74;--ax-sys-color-success-700: 21, 128, 61;--ax-sys-color-success-800: 22, 101, 52;--ax-sys-color-success-900: 20, 83, 45;--ax-sys-color-success-950: 5, 46, 22;--ax-sys-color-on-warning: 255, 255, 255;--ax-sys-color-on-contrast-warning: 69, 26, 3;--ax-sys-color-warning-50: 255, 251, 235;--ax-sys-color-warning-100: 254, 243, 199;--ax-sys-color-warning-200: 253, 230, 138;--ax-sys-color-warning-300: 252, 211, 77;--ax-sys-color-warning-400: 251, 191, 36;--ax-sys-color-warning-500: 245, 158, 11;--ax-sys-color-warning-600: 217, 119, 6;--ax-sys-color-warning-700: 180, 83, 9;--ax-sys-color-warning-800: 146, 64, 14;--ax-sys-color-warning-900: 120, 53, 15;--ax-sys-color-warning-950: 69, 26, 3;--ax-sys-color-on-danger: 255, 255, 255;--ax-sys-color-on-contrast-danger: 76, 5, 25;--ax-sys-color-danger-50: 255, 241, 242;--ax-sys-color-danger-100: 255, 228, 230;--ax-sys-color-danger-200: 254, 205, 211;--ax-sys-color-danger-300: 253, 164, 175;--ax-sys-color-danger-400: 251, 113, 133;--ax-sys-color-danger-500: 244, 63, 94;--ax-sys-color-danger-600: 225, 29, 72;--ax-sys-color-danger-700: 190, 18, 60;--ax-sys-color-danger-800: 159, 18, 57;--ax-sys-color-danger-900: 136, 19, 55;--ax-sys-color-danger-950: 76, 5, 25;--ax-sys-color-on-ghost: 255, 255, 255;--ax-sys-color-on-contrast-ghost: 24, 24, 27;--ax-sys-color-ghost-50: 255, 255, 255;--ax-sys-color-ghost-100: 244, 244, 245;--ax-sys-color-ghost-200: 228, 228, 231;--ax-sys-color-ghost-300: 212, 212, 216;--ax-sys-color-ghost-400: 161, 161, 170;--ax-sys-color-ghost-500: 113, 113, 122;--ax-sys-color-ghost-600: 82, 82, 91;--ax-sys-color-ghost-700: 63, 63, 70;--ax-sys-color-ghost-800: 39, 39, 42;--ax-sys-color-ghost-900: 24, 24, 27;--ax-sys-color-ghost-950: 9, 9, 11}.ax-dark{--ax-sys-body-bg-color: var(--ax-sys-surface-lowest-bg-color);--ax-sys-body-text-color: 255, 255, 255;--ax-sys-border-color: 34, 38, 47;--ax-sys-surface-lowest-bg-color: 15, 15, 15;--ax-sys-on-surface-lowest-color: 220, 220, 220;--ax-sys-surface-lowest-border-color: 20, 20, 20;--ax-sys-surface-low-bg-color: 20, 20, 20;--ax-sys-on-surface-low-color: 230, 230, 230;--ax-sys-surface-low-border-color: 25, 25, 25;--ax-sys-surface-bg-color: 25, 25, 25;--ax-sys-on-surface-color: 240, 240, 240;--ax-sys-surface-border-color: 34, 34, 34;--ax-sys-surface-high-bg-color: 29, 29, 29;--ax-sys-on-surface-high-color: 250, 250, 250;--ax-sys-surface-high-border-color: 43, 43, 43;--ax-sys-surface-highest-bg-color: 34, 34, 34;--ax-sys-on-surface-highest-color: 255, 255, 255;--ax-sys-surface-highest-border-color: 52, 52, 52;--ax-sys-surface-input-bg-color: var(--ax-sys-surface-lowest-bg-color);--ax-sys-surface-input-text-color: var(--ax-sys-on-surface-lowest-color);--ax-sys-surface-input-placeholder-color: 100, 100, 100;--ax-sys-surface-input-border-color: var(--ax-sys-surface-border-color);--ax-sys-color-on-primary: 11, 30, 71;--ax-sys-color-on-contrast-primary: 57, 62, 75;--ax-sys-color-primary-50: 252, 253, 255;--ax-sys-color-primary-100: 249, 250, 254;--ax-sys-color-primary-200: 236, 241, 253;--ax-sys-color-primary-300: 224, 232, 252;--ax-sys-color-primary-400: 211, 222, 251;--ax-sys-color-primary-500: 192, 208, 249;--ax-sys-color-primary-600: 173, 187, 224;--ax-sys-color-primary-700: 134, 146, 174;--ax-sys-color-primary-800: 96, 104, 125;--ax-sys-color-primary-900: 58, 62, 75;--ax-sys-color-primary-950: 19, 21, 25;--ax-sys-color-on-secondary: 58, 62, 69;--ax-sys-color-on-contrast-secondary: 70, 74, 83;--ax-sys-color-secondary-50: 255, 255, 255;--ax-sys-color-secondary-100: 241, 242, 243;--ax-sys-color-secondary-200: 227, 229, 232;--ax-sys-color-secondary-300: 213, 216, 220;--ax-sys-color-secondary-400: 199, 202, 209;--ax-sys-color-secondary-500: 172, 176, 185;--ax-sys-color-secondary-600: 144, 150, 162;--ax-sys-color-secondary-700: 116, 124, 139;--ax-sys-color-secondary-800: 93, 99, 111;--ax-sys-color-secondary-900: 70, 74, 83;--ax-sys-color-secondary-950: 58, 62, 69;--ax-sys-color-on-success: 19, 109, 52;--ax-sys-color-on-contrast-success: 23, 130, 62;--ax-sys-color-success-50: 255, 255, 255;--ax-sys-color-success-100: 233, 251, 240;--ax-sys-color-success-200: 212, 247, 225;--ax-sys-color-success-300: 190, 244, 210;--ax-sys-color-success-400: 168, 240, 195;--ax-sys-color-success-500: 125, 232, 164;--ax-sys-color-success-600: 81, 225, 134;--ax-sys-color-success-700: 38, 217, 104;--ax-sys-color-success-800: 30, 174, 83;--ax-sys-color-success-900: 23, 130, 62;--ax-sys-color-success-950: 19, 109, 52;--ax-sys-color-on-warning: 122, 79, 5;--ax-sys-color-on-contrast-warning: 147, 95, 6;--ax-sys-color-warning-50: 255, 255, 255;--ax-sys-color-warning-100: 254, 245, 231;--ax-sys-color-warning-200: 253, 236, 206;--ax-sys-color-warning-300: 252, 226, 182;--ax-sys-color-warning-400: 251, 216, 157;--ax-sys-color-warning-500: 249, 197, 108;--ax-sys-color-warning-600: 247, 177, 59;--ax-sys-color-warning-700: 245, 158, 10;--ax-sys-color-warning-800: 196, 126, 8;--ax-sys-color-warning-900: 147, 95, 6;--ax-sys-color-warning-950: 122, 79, 5;--ax-sys-color-on-danger: 121, 7, 26;--ax-sys-color-on-contrast-danger: 145, 8, 32;--ax-sys-color-danger-50: 255, 255, 255;--ax-sys-color-danger-100: 254, 231, 235;--ax-sys-color-danger-200: 252, 207, 215;--ax-sys-color-danger-300: 251, 183, 194;--ax-sys-color-danger-400: 249, 159, 174;--ax-sys-color-danger-500: 247, 110, 134;--ax-sys-color-danger-600: 244, 62, 93;--ax-sys-color-danger-700: 241, 14, 53;--ax-sys-color-danger-800: 193, 11, 42;--ax-sys-color-danger-900: 145, 8, 32;--ax-sys-color-danger-950: 121, 7, 26;--ax-sys-color-on-ghost: 24, 24, 27;--ax-sys-color-on-contrast-ghost: 244, 244, 245;--ax-sys-color-ghost-50: 9, 9, 11;--ax-sys-color-ghost-100: 24, 24, 27;--ax-sys-color-ghost-200: 39, 39, 42;--ax-sys-color-ghost-300: 63, 63, 70;--ax-sys-color-ghost-400: 82, 82, 91;--ax-sys-color-ghost-500: 113, 113, 122;--ax-sys-color-ghost-600: 161, 161, 170;--ax-sys-color-ghost-700: 212, 212, 216;--ax-sys-color-ghost-800: 228, 228, 231;--ax-sys-color-ghost-900: 244, 244, 245;--ax-sys-color-ghost-950: 250, 250, 250}
|