@acorex/styles 19.10.0-next.1 → 19.10.0-next.11
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/base/index.scss +15 -0
- package/{src/shared → components}/_action-item.scss +3 -3
- package/{src/shared → components}/_actionsheet.scss +7 -6
- package/{src/shared → components}/_check-box.scss +8 -14
- package/{src/shared → components}/_drop-down.scss +15 -17
- package/components/_editor-container.scss +260 -0
- package/{src/shared → components}/_general-button.scss +11 -12
- package/{src/shared → components}/_list.scss +15 -41
- package/{src/shared → components}/_radio.scss +8 -14
- package/components/_ripple.scss +13 -0
- package/{src/shared → components}/_table.scss +9 -30
- package/components/_uploader.scss +44 -0
- package/{src/shared → components}/index.scss +2 -3
- 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.scss +5 -7
- package/mixins/_editor-looks.scss +23 -0
- package/mixins/_scroll-bar.scss +23 -0
- package/mixins/index.scss +4 -0
- package/package.json +1 -1
- package/tailwind-base.js +231 -158
- package/themes/default.scss +37 -141
- package/utils/_theme-generator.scss +230 -0
- package/utils/_utils.scss +276 -0
- package/utils/index.scss +2 -0
- package/variables/_colors.scss +7 -0
- package/variables/_looks.scss +1 -0
- package/variables/index.scss +2 -0
- package/index.css +0 -2843
- package/index.min.css +0 -1
- package/src/base/index.scss +0 -13
- package/src/mixins/_look.scss +0 -83
- package/src/mixins/index.scss +0 -3
- package/src/shared/_color-look.scss +0 -822
- package/src/shared/_editor-container.scss +0 -291
- package/src/shared/_inputs.scss +0 -16
- package/src/shared/_utils.scss +0 -85
- package/src/utility/index.scss +0 -24
- package/src/variables/_colors.scss +0 -2
- package/src/variables/_degrees.scss +0 -1
- package/src/variables/index.scss +0 -2
- package/themes/default.css +0 -1
- /package/{src/base → base}/_preflight.scss +0 -0
- /package/{src/mixins → mixins}/_media.scss +0 -0
- /package/{src/mixins → mixins}/_util.scss +0 -0
@@ -13,16 +13,16 @@
|
|
13
13
|
}
|
14
14
|
|
15
15
|
.ax-icon-thin {
|
16
|
-
--ax-icon-weight: 100;
|
16
|
+
--ax-sys-icon-weight: 100;
|
17
17
|
}
|
18
18
|
.ax-icon-light {
|
19
|
-
--ax-icon-weight: 300;
|
19
|
+
--ax-sys-icon-weight: 300;
|
20
20
|
}
|
21
21
|
.ax-icon-regular {
|
22
|
-
--ax-icon-weight: 400;
|
22
|
+
--ax-sys-icon-weight: 400;
|
23
23
|
}
|
24
24
|
.ax-icon-solid {
|
25
|
-
--ax-icon-weight: 900;
|
25
|
+
--ax-sys-icon-weight: 900;
|
26
26
|
}
|
27
27
|
|
28
28
|
.ax-icon-more-horizontal {
|
@@ -5,7 +5,6 @@
|
|
5
5
|
font-style: normal;
|
6
6
|
font-size: 24px; /* Preferred icon size */
|
7
7
|
display: inline-block;
|
8
|
-
line-height: 1;
|
9
8
|
text-transform: none;
|
10
9
|
letter-spacing: normal;
|
11
10
|
word-wrap: normal;
|
@@ -22,16 +21,16 @@
|
|
22
21
|
}
|
23
22
|
|
24
23
|
.ax-icon-thin {
|
25
|
-
--ax-icon-weight: 100;
|
24
|
+
--ax-sys-icon-weight: 100;
|
26
25
|
}
|
27
26
|
.ax-icon-light {
|
28
|
-
--ax-icon-weight: 300;
|
27
|
+
--ax-sys-icon-weight: 300;
|
29
28
|
}
|
30
29
|
.ax-icon-regular {
|
31
|
-
--ax-icon-weight: 400;
|
30
|
+
--ax-sys-icon-weight: 400;
|
32
31
|
}
|
33
32
|
.ax-icon-solid {
|
34
|
-
--ax-icon-weight: 900;
|
33
|
+
--ax-sys-icon-weight: 900;
|
35
34
|
}
|
36
35
|
|
37
36
|
.ax-icon-more-horizontal {
|
package/index.scss
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
@forward './
|
2
|
-
@forward './
|
3
|
-
|
4
|
-
@forward './
|
5
|
-
@forward './
|
6
|
-
@forward './src/shared/index.scss';
|
7
|
-
@forward './src/utility/index.scss';
|
1
|
+
@forward './base/index.scss';
|
2
|
+
@forward './components/index.scss';
|
3
|
+
@forward './mixins/index.scss';
|
4
|
+
@forward './utils/index.scss';
|
5
|
+
@forward './variables/index.scss';
|
8
6
|
|
9
7
|
@import '@angular/cdk/overlay-prebuilt.css';
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@mixin solid-look() {
|
2
|
+
--ax-comp-editor-bg-color: var(--ax-sys-color-lightest-surface);
|
3
|
+
--ax-comp-editor-border-width: 1px;
|
4
|
+
}
|
5
|
+
@mixin fill-look() {
|
6
|
+
--ax-comp-editor-box-outline-width: 2px;
|
7
|
+
--ax-comp-editor-border-width: 0px;
|
8
|
+
|
9
|
+
--ax-comp-editor-bg-color: var(--ax-sys-color-surface);
|
10
|
+
--ax-comp-editor-text-color: var(--ax-sys-color-on-lighter-surface);
|
11
|
+
--ax-comp-editor-border-color: var(--ax-sys-color-border-lighter-surface);
|
12
|
+
}
|
13
|
+
@mixin outline-look() {
|
14
|
+
--ax-comp-editor-bg-color: 0, 0, 0, 0;
|
15
|
+
--ax-comp-editor-border-width: 1px;
|
16
|
+
}
|
17
|
+
@mixin flat-look() {
|
18
|
+
--ax-comp-editor-border-width: 2px;
|
19
|
+
--ax-comp-editor-border-radius: 0px;
|
20
|
+
--ax-comp-editor-box-outline-width: 0px;
|
21
|
+
border-width: 0px !important;
|
22
|
+
border-bottom-width: var(--ax-comp-editor-border-width) !important;
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@mixin scroll-bar() {
|
2
|
+
:root,
|
3
|
+
* {
|
4
|
+
--ax-sys-scroller-size-width: 5px;
|
5
|
+
--ax-sys-scroller-size-radius: 3px;
|
6
|
+
--ax-sys-scroller-track-color: rgba(var(--ax-sys-color-darkest-surface));
|
7
|
+
--ax-sys-scroller-thumb-color: rgba(var(--ax-sys-color-primary-surface));
|
8
|
+
}
|
9
|
+
|
10
|
+
::-webkit-scrollbar {
|
11
|
+
width: var(--ax-sys-scroller-size-width);
|
12
|
+
}
|
13
|
+
|
14
|
+
::-webkit-scrollbar-track {
|
15
|
+
background: var(--ax-sys-scroller-track-color);
|
16
|
+
border-radius: var(--ax-sys-scroller-size-radius);
|
17
|
+
}
|
18
|
+
|
19
|
+
::-webkit-scrollbar-thumb {
|
20
|
+
background: var(--ax-sys-scroller-thumb-color);
|
21
|
+
border-radius: var(--ax-sys-scroller-size-radius);
|
22
|
+
}
|
23
|
+
}
|
package/package.json
CHANGED
package/tailwind-base.js
CHANGED
@@ -1,15 +1,6 @@
|
|
1
1
|
const plugin = require('tailwindcss/plugin');
|
2
2
|
const { withAnimations } = require('animated-tailwindcss');
|
3
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
4
|
const childSelector = plugin(function ({ addVariant }) {
|
14
5
|
addVariant('child', '& > *');
|
15
6
|
addVariant('child-hover', '& > *:hover');
|
@@ -17,74 +8,259 @@ const childSelector = plugin(function ({ addVariant }) {
|
|
17
8
|
addVariant('child-focus-within', '& > *:focus-within');
|
18
9
|
});
|
19
10
|
|
20
|
-
const
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
11
|
+
const SURFACE_BG = {
|
12
|
+
default: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
|
13
|
+
lightest: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
|
14
|
+
lighter: 'rgba(var(--ax-sys-color-lighter-surface), <alpha-value>)',
|
15
|
+
light: 'rgba(var(--ax-sys-color-light-surface), <alpha-value>)',
|
16
|
+
surface: 'rgba(var(--ax-sys-color-surface), <alpha-value>)',
|
17
|
+
dark: 'rgba(var(--ax-sys-color-dark-surface), <alpha-value>)',
|
18
|
+
darker: 'rgba(var(--ax-sys-color-darker-surface), <alpha-value>)',
|
19
|
+
darkest: 'rgba(var(--ax-sys-color-darkest-surface), <alpha-value>)',
|
20
|
+
};
|
26
21
|
|
27
|
-
|
28
|
-
|
22
|
+
const SURFACES_ON = {
|
23
|
+
on: {
|
24
|
+
lightest: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
25
|
+
lighter: 'rgba(var(--ax-sys-color-on-lighter-surface), <alpha-value>)',
|
26
|
+
light: 'rgba(var(--ax-sys-color-on-light-surface), <alpha-value>)',
|
27
|
+
DEFAULT: 'rgba(var(--ax-sys-color-on-surface), <alpha-value>)',
|
28
|
+
surface: 'rgba(var(--ax-sys-color-on-surface), <alpha-value>)',
|
29
|
+
dark: 'rgba(var(--ax-sys-color-on-dark-surface), <alpha-value>)',
|
30
|
+
darker: 'rgba(var(--ax-sys-color-on-darker-surface), <alpha-value>)',
|
31
|
+
darkest: 'rgba(var(--ax-sys-color-on-darkest-surface), <alpha-value>)',
|
32
|
+
},
|
33
|
+
};
|
29
34
|
|
30
|
-
|
31
|
-
|
35
|
+
const SURFACE_BORDER = {
|
36
|
+
lightest: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
|
37
|
+
lighter: 'rgba(var(--ax-sys-color-border-lighter-surface), <alpha-value>)',
|
38
|
+
light: 'rgba(var(--ax-sys-color-border-light-surface), <alpha-value>)',
|
39
|
+
DEFAULT: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
|
40
|
+
surface: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
|
41
|
+
dark: 'rgba(var(--ax-sys-color-border-dark-surface), <alpha-value>)',
|
42
|
+
darker: 'rgba(var(--ax-sys-color-border-darker-surface), <alpha-value>)',
|
43
|
+
darkest: 'rgba(var(--ax-sys-color-border-darkest-surface), <alpha-value>)',
|
32
44
|
};
|
33
45
|
|
46
|
+
const UTILITY_CLASSES = {
|
47
|
+
'.h1': {
|
48
|
+
'font-size': '2.5rem',
|
49
|
+
'font-weight': '500',
|
50
|
+
'line-height': '2.5rem',
|
51
|
+
},
|
52
|
+
'.h2': {
|
53
|
+
'font-size': '2rem',
|
54
|
+
'font-weight': '500',
|
55
|
+
'line-height': '2rem',
|
56
|
+
},
|
57
|
+
'.h3': {
|
58
|
+
'font-size': '1.75rem',
|
59
|
+
'font-weight': '500',
|
60
|
+
'line-height': '1.75rem',
|
61
|
+
},
|
62
|
+
'.h4': {
|
63
|
+
'font-size': '1.5rem',
|
64
|
+
'font-weight': '500',
|
65
|
+
'line-height': '1.5rem',
|
66
|
+
},
|
67
|
+
'.h5': {
|
68
|
+
'font-size': '1.125rem',
|
69
|
+
'font-weight': '500',
|
70
|
+
'line-height': '1.125rem',
|
71
|
+
},
|
72
|
+
'.h6': {
|
73
|
+
'font-size': '1rem',
|
74
|
+
'font-weight': '500',
|
75
|
+
'line-height': '1rem',
|
76
|
+
},
|
77
|
+
'.heading': {
|
78
|
+
width: '100%',
|
79
|
+
'border-bottom': '1px solid',
|
80
|
+
'border-color': 'rgba(var(--ax-sys-border-color))',
|
81
|
+
'line-height': '0.1em',
|
82
|
+
margin: '1rem auto',
|
83
|
+
},
|
84
|
+
'.heading > span': {
|
85
|
+
background: 'rgba(var(--ax-sys-color-surface))',
|
86
|
+
padding: '0 0.75rem',
|
87
|
+
},
|
88
|
+
'.heading-start': {
|
89
|
+
'text-align': 'start',
|
90
|
+
},
|
91
|
+
'.heading-center': {
|
92
|
+
'text-align': 'center',
|
93
|
+
},
|
94
|
+
'.heading-end': {
|
95
|
+
'text-align': 'end',
|
96
|
+
},
|
97
|
+
'.links': {
|
98
|
+
color: 'rgba(var(--ax-sys-color-primary-500))',
|
99
|
+
cursor: 'pointer',
|
100
|
+
},
|
101
|
+
'.links:hover': {
|
102
|
+
'text-decoration': 'underline',
|
103
|
+
},
|
104
|
+
'.links:visited': {
|
105
|
+
color: 'rgba(var(--ax-sys-color-primary-700))',
|
106
|
+
},
|
107
|
+
'.animate-slow': {
|
108
|
+
animationDuration: '2s',
|
109
|
+
},
|
110
|
+
'.animate-slower': {
|
111
|
+
animationDuration: '3s',
|
112
|
+
},
|
113
|
+
'.animate-2xslower': {
|
114
|
+
animationDuration: '5s',
|
115
|
+
},
|
116
|
+
'.animate-fast': {
|
117
|
+
animationDuration: '800ms',
|
118
|
+
},
|
119
|
+
'.animate-faster': {
|
120
|
+
animationDuration: '500ms',
|
121
|
+
},
|
122
|
+
'.animate-2xfaster': {
|
123
|
+
animationDuration: '250ms',
|
124
|
+
},
|
125
|
+
'.card': {
|
126
|
+
backgroundColor: 'rgb(var(--ax-color-surface))',
|
127
|
+
border: '1px solid',
|
128
|
+
borderColor: 'rgb(var(--ax-sys-border-color))',
|
129
|
+
borderRadius: 'var(--ax-sys-border-radius)',
|
130
|
+
},
|
131
|
+
'.tabs-fit': {
|
132
|
+
width: '100%',
|
133
|
+
},
|
134
|
+
'.xs': {
|
135
|
+
'--ax-sys-size-base': '2rem',
|
136
|
+
},
|
137
|
+
'.sm': {
|
138
|
+
'--ax-sys-size-base': '2.25rem',
|
139
|
+
},
|
140
|
+
'.md': {
|
141
|
+
'--ax-sys-size-base': '2.5rem',
|
142
|
+
},
|
143
|
+
'.lg': {
|
144
|
+
'--ax-sys-size-base': '3rem',
|
145
|
+
},
|
146
|
+
'.xl': {
|
147
|
+
'--ax-sys-size-base': '3.5rem',
|
148
|
+
},
|
149
|
+
};
|
34
150
|
const createPalete = function (colorName) {
|
35
151
|
return {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
152
|
+
50: `rgba(var(--ax-sys-color-${colorName}-50), <alpha-value>)`,
|
153
|
+
100: `rgba(var(--ax-sys-color-${colorName}-100), <alpha-value>)`,
|
154
|
+
200: `rgba(var(--ax-sys-color-${colorName}-200), <alpha-value>)`,
|
155
|
+
300: `rgba(var(--ax-sys-color-${colorName}-300), <alpha-value>)`,
|
156
|
+
400: `rgba(var(--ax-sys-color-${colorName}-400), <alpha-value>)`,
|
157
|
+
500: `rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)`,
|
158
|
+
600: `rgba(var(--ax-sys-color-${colorName}-600), <alpha-value>)`,
|
159
|
+
700: `rgba(var(--ax-sys-color-${colorName}-700), <alpha-value>)`,
|
160
|
+
800: `rgba(var(--ax-sys-color-${colorName}-800), <alpha-value>)`,
|
161
|
+
900: `rgba(var(--ax-sys-color-${colorName}-900), <alpha-value>)`,
|
162
|
+
950: `rgba(var(--ax-sys-color-${colorName}-950), <alpha-value>)`,
|
163
|
+
};
|
164
|
+
};
|
165
|
+
const createBackgroundPalete = function (colorName) {
|
166
|
+
return {
|
167
|
+
lightest: `rgba(var(--ax-sys-color-${colorName}-lightest-surface), <alpha-value>)`,
|
168
|
+
lighter: `rgba(var(--ax-sys-color-${colorName}-lighter-surface), <alpha-value>)`,
|
169
|
+
light: `rgba(var(--ax-sys-color-${colorName}-light-surface), <alpha-value>)`,
|
170
|
+
surface: `rgba(var(--ax-sys-color-${colorName}-surface), <alpha-value>)`,
|
171
|
+
dark: `rgba(var(--ax-sys-color-${colorName}-dark-surface), <alpha-value>)`,
|
172
|
+
darker: `rgba(var(--ax-sys-color-${colorName}-darker-surface), <alpha-value>)`,
|
173
|
+
darkest: `rgba(var(--ax-sys-color-${colorName}-darkest-surface), <alpha-value>)`,
|
174
|
+
on: `rgba(var(--ax-sys-color-on-${colorName}), <alpha-value>)`,
|
50
175
|
};
|
51
176
|
};
|
52
177
|
|
178
|
+
const createOnPalete = function (colorName) {
|
179
|
+
return {
|
180
|
+
'on-lightest': `rgba(var(--ax-sys-color-on-${colorName}-lightest-surface), <alpha-value>)`,
|
181
|
+
'on-lighter': `rgba(var(--ax-sys-color-on-${colorName}-lighter-surface), <alpha-value>)`,
|
182
|
+
'on-light': `rgba(var(--ax-sys-color-on-${colorName}-light-surface), <alpha-value>)`,
|
183
|
+
'on-surface': `rgba(var(--ax-sys-color-on-${colorName}-surface), <alpha-value>)`,
|
184
|
+
'on-dark': `rgba(var(--ax-sys-color-on-${colorName}-dark-surface), <alpha-value>)`,
|
185
|
+
'on-darker': `rgba(var(--ax-sys-color-on-${colorName}-darker-surface), <alpha-value>)`,
|
186
|
+
'on-darkest': `rgba(var(--ax-sys-color-on-${colorName}-darkest-surface), <alpha-value>)`,
|
187
|
+
'on-contrast': `rgba(var(--ax-sys-color-on-contrast-${colorName}), <alpha-value>)`,
|
188
|
+
};
|
189
|
+
};
|
190
|
+
const createBorderPalete = function (colorName) {
|
191
|
+
return {
|
192
|
+
lightest: `rgba(var(--ax-sys-color-border-${colorName}-lightest-surface), <alpha-value>)`,
|
193
|
+
lighter: `rgba(var(--ax-sys-color-border-${colorName}-lighter-surface), <alpha-value>)`,
|
194
|
+
light: `rgba(var(--ax-sys-color-border-${colorName}-light-surface), <alpha-value>)`,
|
195
|
+
surface: `rgba(var(--ax-sys-color-border-${colorName}-surface), <alpha-value>)`,
|
196
|
+
dark: `rgba(var(--ax-sys-color-border-${colorName}-dark-surface), <alpha-value>)`,
|
197
|
+
darker: `rgba(var(--ax-sys-color-border-${colorName}-darker-surface), <alpha-value>)`,
|
198
|
+
darkest: `rgba(var(--ax-sys-color-border-${colorName}-darkest-surface), <alpha-value>)`,
|
199
|
+
};
|
200
|
+
};
|
53
201
|
module.exports = withAnimations({
|
54
202
|
prefix: 'ax-',
|
55
203
|
content: ['./src/**/*.{html,ts,scss}', './projects/**/*.{html,ts,scss}'],
|
56
204
|
darkMode: 'class',
|
205
|
+
safelist: [
|
206
|
+
{
|
207
|
+
pattern: /(?:(?:on|border)-)?(?:lightest|lighter|light|surface|dark|darker|darkest)/,
|
208
|
+
},
|
209
|
+
{
|
210
|
+
pattern: /(?:bg|text)(?:-(?:primary|secondary|danger|success|warning|ghost))?-(?:50|100|200|300|400|500|600|700|800|900|950)/,
|
211
|
+
},
|
212
|
+
],
|
57
213
|
theme: {
|
58
214
|
extend: {
|
59
215
|
colors: {
|
216
|
+
...SURFACE_BG,
|
217
|
+
...SURFACES_ON,
|
60
218
|
primary: createPalete('primary'),
|
219
|
+
secondary: createPalete('secondary'),
|
61
220
|
success: createPalete('success'),
|
62
221
|
danger: createPalete('danger'),
|
63
222
|
warning: createPalete('warning'),
|
64
|
-
|
65
|
-
..._colors,
|
223
|
+
ghost: createPalete('ghost'),
|
66
224
|
},
|
67
225
|
textColor: {
|
68
|
-
DEFAULT:
|
69
|
-
default:
|
70
|
-
|
226
|
+
DEFAULT: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
227
|
+
default: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
228
|
+
primary: createOnPalete('primary'),
|
229
|
+
secondary: createOnPalete('secondary'),
|
230
|
+
success: createOnPalete('success'),
|
231
|
+
danger: createOnPalete('danger'),
|
232
|
+
warning: createOnPalete('warning'),
|
233
|
+
ghost: createOnPalete('ghost'),
|
234
|
+
...SURFACES_ON,
|
71
235
|
},
|
72
236
|
backgroundColor: {
|
73
|
-
|
74
|
-
|
237
|
+
DEFAULT: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
|
238
|
+
default: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
|
239
|
+
primary: createBackgroundPalete('primary'),
|
240
|
+
secondary: createBackgroundPalete('secondary'),
|
241
|
+
success: createBackgroundPalete('success'),
|
242
|
+
danger: createBackgroundPalete('danger'),
|
243
|
+
warning: createBackgroundPalete('warning'),
|
244
|
+
ghost: createBackgroundPalete('ghost'),
|
245
|
+
...SURFACE_BG,
|
246
|
+
...SURFACES_ON,
|
75
247
|
},
|
76
|
-
|
77
248
|
borderColor: {
|
78
|
-
DEFAULT: 'rgba(var(--ax-color-border-
|
79
|
-
default: 'rgba(var(--ax-color-border-
|
80
|
-
|
81
|
-
|
249
|
+
DEFAULT: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
|
250
|
+
default: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
|
251
|
+
primary: createBorderPalete('primary'),
|
252
|
+
secondary: createBorderPalete('secondary'),
|
253
|
+
success: createBorderPalete('success'),
|
254
|
+
danger: createBorderPalete('danger'),
|
255
|
+
warning: createBorderPalete('warning'),
|
256
|
+
ghost: createBorderPalete('ghost'),
|
257
|
+
...SURFACE_BORDER,
|
82
258
|
},
|
83
259
|
maxWidth: {
|
84
260
|
'8xl': '90rem',
|
85
261
|
},
|
86
262
|
borderRadius: {
|
87
|
-
default: 'var(--ax-
|
263
|
+
default: 'var(--ax-sys-border-radius)',
|
88
264
|
},
|
89
265
|
lineHeight: {
|
90
266
|
11: '2.5rem',
|
@@ -95,138 +271,35 @@ module.exports = withAnimations({
|
|
95
271
|
20: '5rem',
|
96
272
|
},
|
97
273
|
spacing: {
|
98
|
-
default: 'var(--ax-size-
|
274
|
+
default: 'var(--ax-sys-size-base)',
|
99
275
|
},
|
100
276
|
minWidth: {
|
101
|
-
default: 'var(--ax-size-
|
277
|
+
default: 'var(--ax-sys-size-base)',
|
102
278
|
},
|
103
279
|
width: {
|
104
|
-
default: 'var(--ax-size-
|
280
|
+
default: 'var(--ax-sys-size-base)',
|
105
281
|
},
|
106
282
|
maxHeight: {
|
107
|
-
default: 'var(--ax-size-
|
283
|
+
default: 'var(--ax-sys-size-base)',
|
108
284
|
},
|
109
285
|
minHeight: {
|
110
|
-
default: 'var(--ax-size-
|
286
|
+
default: 'var(--ax-sys-size-base)',
|
111
287
|
},
|
112
288
|
height: {
|
113
|
-
default: 'var(--ax-size-
|
289
|
+
default: 'var(--ax-sys-size-base)',
|
114
290
|
},
|
115
291
|
maxHeight: {
|
116
|
-
default: 'var(--ax-size-
|
292
|
+
default: 'var(--ax-sys-size-base)',
|
117
293
|
},
|
118
294
|
},
|
119
295
|
},
|
120
296
|
corePlugins: {
|
121
297
|
preflight: false,
|
122
298
|
},
|
299
|
+
|
123
300
|
plugins: [
|
124
301
|
plugin(function ({ addUtilities }) {
|
125
|
-
|
126
|
-
'.h1': {
|
127
|
-
'font-size': '3rem',
|
128
|
-
'font-weight': '700',
|
129
|
-
'line-height': '3rem',
|
130
|
-
},
|
131
|
-
'.h2': {
|
132
|
-
'font-size': '2.5rem',
|
133
|
-
'font-weight': '700',
|
134
|
-
'line-height': '2.5rem',
|
135
|
-
},
|
136
|
-
'.h3': {
|
137
|
-
'font-size': '1.875rem',
|
138
|
-
'font-weight': '700',
|
139
|
-
'line-height': '1.875rem',
|
140
|
-
},
|
141
|
-
'.h4': {
|
142
|
-
'font-size': '1.5rem',
|
143
|
-
'font-weight': '700',
|
144
|
-
'line-height': '1.5rem',
|
145
|
-
},
|
146
|
-
'.h5': {
|
147
|
-
'font-size': '1.25rem',
|
148
|
-
'font-weight': '700',
|
149
|
-
'line-height': '1.25rem',
|
150
|
-
},
|
151
|
-
'.h6': {
|
152
|
-
'font-size': '1.125rem',
|
153
|
-
'font-weight': '700',
|
154
|
-
'line-height': '1.125rem',
|
155
|
-
},
|
156
|
-
'.heading': {
|
157
|
-
width: '100%',
|
158
|
-
'border-bottom': '1px solid',
|
159
|
-
'border-color': 'rgba(var(--ax-color-border-default))',
|
160
|
-
'line-height': '0.1em',
|
161
|
-
margin: '1rem auto',
|
162
|
-
},
|
163
|
-
'.heading > span': {
|
164
|
-
background: 'rgba(var(--ax-color-surface))',
|
165
|
-
padding: '0 0.75rem',
|
166
|
-
},
|
167
|
-
'.heading-start': {
|
168
|
-
'text-align': 'start',
|
169
|
-
},
|
170
|
-
'.heading-center': {
|
171
|
-
'text-align': 'center',
|
172
|
-
},
|
173
|
-
'.heading-end': {
|
174
|
-
'text-align': 'end',
|
175
|
-
},
|
176
|
-
'.link': {
|
177
|
-
color: 'rgba(var(--ax-color-primary-500))',
|
178
|
-
cursor: 'pointer',
|
179
|
-
},
|
180
|
-
'.link:hover': {
|
181
|
-
'text-decoration': 'underline',
|
182
|
-
},
|
183
|
-
'.link:visited': {
|
184
|
-
color: 'rgba(var(--ax-color-primary-700))',
|
185
|
-
},
|
186
|
-
'.animate-slow': {
|
187
|
-
animationDuration: '2s',
|
188
|
-
},
|
189
|
-
'.animate-slower': {
|
190
|
-
animationDuration: '3s',
|
191
|
-
},
|
192
|
-
'.animate-2xslower': {
|
193
|
-
animationDuration: '5s',
|
194
|
-
},
|
195
|
-
'.animate-fast': {
|
196
|
-
animationDuration: '800ms',
|
197
|
-
},
|
198
|
-
'.animate-faster': {
|
199
|
-
animationDuration: '500ms',
|
200
|
-
},
|
201
|
-
'.animate-2xfaster': {
|
202
|
-
animationDuration: '250ms',
|
203
|
-
},
|
204
|
-
'.card': {
|
205
|
-
backgroundColor: 'rgb(var(--ax-color-surface))',
|
206
|
-
border: '1px solid',
|
207
|
-
borderColor: 'rgb(var(--ax-color-border-default))',
|
208
|
-
borderRadius: 'var(--ax-rounded-border-default)',
|
209
|
-
},
|
210
|
-
'.tabs-fit': {
|
211
|
-
width: '100%',
|
212
|
-
},
|
213
|
-
'.xs': {
|
214
|
-
'--ax-size-default': '2rem',
|
215
|
-
},
|
216
|
-
'.sm': {
|
217
|
-
'--ax-size-default': '2.25rem',
|
218
|
-
},
|
219
|
-
'.md': {
|
220
|
-
'--ax-size-default': '2.5rem',
|
221
|
-
},
|
222
|
-
'.lg': {
|
223
|
-
'--ax-size-default': '3rem',
|
224
|
-
},
|
225
|
-
'.xl': {
|
226
|
-
'--ax-size-default': '3.5rem',
|
227
|
-
},
|
228
|
-
};
|
229
|
-
addUtilities(acorexClasses, ['responsive', 'hover', 'focus']);
|
302
|
+
UTILITY_CLASSES, addUtilities(UTILITY_CLASSES, ['responsive', 'hover', 'focus']);
|
230
303
|
}),
|
231
304
|
childSelector,
|
232
305
|
],
|