@acorex/styles 19.10.0-next.0 → 19.10.0-next.2
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 +22 -0
- package/{src/shared → components}/_drop-down.scss +2 -2
- package/{src/shared → components}/_editor-container.scss +2 -18
- package/{src/shared/_utils.scss → components/_uploader.scss} +11 -46
- package/{src/shared → components}/index.scss +3 -6
- package/index.scss +5 -7
- package/package.json +1 -1
- package/tailwind-base.js +203 -180
- package/themes/default.scss +24 -237
- package/utils/_theme-generator.scss +228 -0
- package/utils/_utils.scss +286 -0
- package/utils/index.scss +2 -0
- package/variables/_colors.scss +8 -0
- package/variables/_looks.scss +1 -0
- package/variables/index.scss +2 -0
- package/index.css +0 -988
- package/index.min.css +0 -1
- package/src/base/index.scss +0 -11
- package/src/shared/_inputs.scss +0 -0
- package/src/utility/index.scss +0 -4
- 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/themes/test.scss +0 -237
- /package/{src/base → base}/_preflight.scss +0 -0
- /package/{src/shared → components}/_action-item.scss +0 -0
- /package/{src/shared → components}/_actionsheet.scss +0 -0
- /package/{src/shared → components}/_check-box.scss +0 -0
- /package/{src/shared → components}/_general-button.scss +0 -0
- /package/{src/shared → components}/_list.scss +0 -0
- /package/{src/shared → components}/_radio.scss +0 -0
- /package/{src/shared → components}/_ripple.scss +0 -0
- /package/{src/shared → components}/_table.scss +0 -0
- /package/{src/mixins → mixins}/_look.scss +0 -0
- /package/{src/mixins → mixins}/_media.scss +0 -0
- /package/{src/mixins → mixins}/_util.scss +0 -0
- /package/{src/mixins → mixins}/index.scss +0 -0
package/base/index.scss
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
@use './preflight' as *;
|
2
|
+
:root {
|
3
|
+
--ax-overlay-full-width: 93;
|
4
|
+
--ax-sys-transition-duration: 150ms;
|
5
|
+
--ax-sys-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
6
|
+
}
|
7
|
+
html {
|
8
|
+
background-color: rgba(var(--ax-sys-color-surface-lightest));
|
9
|
+
color: rgba(var(--ax-sys-color-on-surface-lightest));
|
10
|
+
}
|
11
|
+
|
12
|
+
* {
|
13
|
+
border-color: rgba(var(--ax-sys-color-border-surface-lightest));
|
14
|
+
}
|
15
|
+
html.ax-dark * {
|
16
|
+
border-color: rgba(var(--ax-sys-color-border-surface-darkest));
|
17
|
+
}
|
18
|
+
|
19
|
+
html.ax-dark {
|
20
|
+
background-color: rgba(var(--ax-sys-color-surface-darkest));
|
21
|
+
color: rgba(var(--ax-sys-color-on-surface-darkest));
|
22
|
+
}
|
@@ -26,8 +26,8 @@
|
|
26
26
|
height: fit-content;
|
27
27
|
overflow: hidden;
|
28
28
|
border-width: 1px;
|
29
|
-
border-color: rgba(var(--ax-sys-border-
|
30
|
-
background-color: rgba(var(--ax-sys-color-surface-
|
29
|
+
border-color: rgba(var(--ax-sys-color-border-surface-lightest));
|
30
|
+
background-color: rgba(var(--ax-sys-color-surface-lightest));
|
31
31
|
--ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
32
32
|
--ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color), 0 2px 4px -2px var(--ax-shadow-color);
|
33
33
|
box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000), var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
@use '../mixins/look';
|
2
|
-
@use '../mixins/util';
|
1
|
+
@use '../mixins/look' as look;
|
2
|
+
@use '../mixins/util' as util;
|
3
3
|
|
4
4
|
:root {
|
5
5
|
--ax-editor-font-size: 1rem;
|
@@ -233,19 +233,3 @@
|
|
233
233
|
}
|
234
234
|
}
|
235
235
|
}
|
236
|
-
|
237
|
-
// Created new ripple.scss files intead
|
238
|
-
|
239
|
-
// .ax-ripple {
|
240
|
-
// transform: scale(0);
|
241
|
-
// animation: ripple 500ms linear;
|
242
|
-
// position: absolute;
|
243
|
-
// border-radius: 9999rem !important;
|
244
|
-
|
245
|
-
// @keyframes ripple {
|
246
|
-
// to {
|
247
|
-
// transform: scale(4);
|
248
|
-
// opacity: 0;
|
249
|
-
// }
|
250
|
-
// }
|
251
|
-
// }
|
@@ -1,45 +1,4 @@
|
|
1
|
-
@use '../
|
2
|
-
@use '../mixins/util';
|
3
|
-
|
4
|
-
[class*=' ax-icon-'],
|
5
|
-
[class^='ax-icon-'] {
|
6
|
-
vertical-align: middle;
|
7
|
-
}
|
8
|
-
|
9
|
-
.ax-bold {
|
10
|
-
font-weight: bold !important;
|
11
|
-
}
|
12
|
-
|
13
|
-
.ax-fieldset {
|
14
|
-
border-radius: var(--ax-sys-border-radius);
|
15
|
-
border-width: 1px;
|
16
|
-
border-color: rgba(var(--ax-sys-color-input-surface-border));
|
17
|
-
padding: 0.75rem /* 12px */;
|
18
|
-
|
19
|
-
legend {
|
20
|
-
padding-left: 0.25rem /* 4px */;
|
21
|
-
padding-right: 0.25rem /* 4px */;
|
22
|
-
font-size: 0.875rem /* 14px */;
|
23
|
-
line-height: 1.25rem /* 20px */;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
.ax-card {
|
28
|
-
border-radius: var(--ax-sys-border-radius);
|
29
|
-
border-width: 1px;
|
30
|
-
border-color: rgba(var(--ax-sys-color-input-surface-border));
|
31
|
-
background-color: rgba(var(--ax-sys-color-surface));
|
32
|
-
}
|
33
|
-
|
34
|
-
.ax-drop-zone {
|
35
|
-
> input {
|
36
|
-
position: absolute;
|
37
|
-
height: 100%;
|
38
|
-
width: 100%;
|
39
|
-
cursor: pointer;
|
40
|
-
opacity: 0;
|
41
|
-
}
|
42
|
-
}
|
1
|
+
@use '../mixins/index.scss' as mixin;
|
43
2
|
.ax-uploader-overlay-state {
|
44
3
|
border-radius: inherit;
|
45
4
|
pointer-events: none;
|
@@ -66,11 +25,17 @@
|
|
66
25
|
transition-duration: 150ms;
|
67
26
|
}
|
68
27
|
|
69
|
-
.ax-
|
70
|
-
|
71
|
-
|
28
|
+
.ax-drop-zone {
|
29
|
+
> input {
|
30
|
+
position: absolute;
|
31
|
+
height: 100%;
|
32
|
+
width: 100%;
|
33
|
+
cursor: pointer;
|
34
|
+
opacity: 0;
|
35
|
+
}
|
72
36
|
}
|
73
|
-
|
37
|
+
|
38
|
+
@include mixin.darkMode() {
|
74
39
|
.ax-uploader-overlay-state {
|
75
40
|
background-color: rgba(var(--ax-sys-color-primary-800), 0.75);
|
76
41
|
color: rgba(var(--ax-sys-color-on-primary));
|
@@ -2,13 +2,10 @@
|
|
2
2
|
@forward './actionsheet';
|
3
3
|
@forward './check-box';
|
4
4
|
@forward './drop-down';
|
5
|
-
|
5
|
+
@forward './editor-container';
|
6
6
|
@forward './general-button';
|
7
|
-
@forward './inputs';
|
8
7
|
@forward './list';
|
9
8
|
@forward './radio';
|
10
|
-
@forward './table';
|
11
|
-
@forward './utils';
|
12
|
-
|
13
|
-
// new //
|
14
9
|
@forward './ripple';
|
10
|
+
@forward './table';
|
11
|
+
@forward './uploader';
|
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';
|
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,76 +8,147 @@ const childSelector = plugin(function ({ addVariant }) {
|
|
17
8
|
addVariant('child-focus-within', '& > *:focus-within');
|
18
9
|
});
|
19
10
|
|
20
|
-
const
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
'on-surface-high': 'rgba(var(--ax-sys-color-on-surface-high), <alpha-value>)',
|
26
|
-
'on-surface-highest': 'rgba(var(--ax-sys-color-on-surface-highest), <alpha-value>)',
|
27
|
-
'on-surface-dark': 'rgba(var(--ax-sys-color-on-surface-dark), <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-color-surface-light), <alpha-value>)',
|
33
|
-
'surface-lowest': 'rgba(var(--ax-sys-color-surface-lowest), <alpha-value>)',
|
34
|
-
'surface-low': 'rgba(var(--ax-sys-color-surface-low), <alpha-value>)',
|
11
|
+
const SURFACE_BG = {
|
12
|
+
default: 'rgba(var(--ax-sys-color-surface-lightest), <alpha-value>)',
|
13
|
+
lightest: 'rgba(var(--ax-sys-color-surface-lightest), <alpha-value>)',
|
14
|
+
lighter: 'rgba(var(--ax-sys-color-surface-lighter), <alpha-value>)',
|
15
|
+
light: 'rgba(var(--ax-sys-color-surface-light), <alpha-value>)',
|
35
16
|
surface: 'rgba(var(--ax-sys-color-surface), <alpha-value>)',
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
'surface-input': 'rgba(var(--ax-sys-color-input-surface), <alpha-value>)',
|
40
|
-
..._onColors,
|
17
|
+
dark: 'rgba(var(--ax-sys-color-surface-dark), <alpha-value>)',
|
18
|
+
darker: 'rgba(var(--ax-sys-color-surface-darker), <alpha-value>)',
|
19
|
+
darkest: 'rgba(var(--ax-sys-color-surface-darkest), <alpha-value>)',
|
41
20
|
};
|
42
21
|
|
43
|
-
const
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
22
|
+
const SURFACES_ON = {
|
23
|
+
on: {
|
24
|
+
lightest: 'rgba(var(--ax-sys-color-on-surface-lightest), <alpha-value>)',
|
25
|
+
lighter: 'rgba(var(--ax-sys-color-on-surface-lighter), <alpha-value>)',
|
26
|
+
light: 'rgba(var(--ax-sys-color-on-surface-light), <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-surface-dark), <alpha-value>)',
|
30
|
+
darker: 'rgba(var(--ax-sys-color-on-surface-darker), <alpha-value>)',
|
31
|
+
darkest: 'rgba(var(--ax-sys-color-on-surface-darkest), <alpha-value>)',
|
32
|
+
},
|
53
33
|
};
|
54
34
|
|
55
|
-
const
|
56
|
-
|
57
|
-
|
58
|
-
|
35
|
+
const SURFACE_BORDER = {
|
36
|
+
lightest: 'rgba(var(--ax-sys-color-border-surface-lightest), <alpha-value>)',
|
37
|
+
lighter: 'rgba(var(--ax-sys-color-border-surface-lighter), <alpha-value>)',
|
38
|
+
light: 'rgba(var(--ax-sys-color-border-surface-light), <alpha-value>)',
|
39
|
+
DEFAULT: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
|
59
40
|
surface: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
|
60
|
-
|
61
|
-
|
62
|
-
|
41
|
+
dark: 'rgba(var(--ax-sys-color-border-surface-dark), <alpha-value>)',
|
42
|
+
darker: 'rgba(var(--ax-sys-color-border-surface-darker), <alpha-value>)',
|
43
|
+
darkest: 'rgba(var(--ax-sys-color-border-surface-darkest), <alpha-value>)',
|
63
44
|
};
|
64
45
|
|
65
|
-
const
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
warning: 'rgba(var(--ax-sys-color-on-warning), <alpha-value>)',
|
71
|
-
danger: 'rgba(var(--ax-sys-color-on-danger), <alpha-value>)',
|
72
|
-
ghost: 'rgba(var(--ax-sys-color-on-ghost), <alpha-value>)',
|
46
|
+
const UTILITY_CLASSES = {
|
47
|
+
'.h1': {
|
48
|
+
'font-size': '2.5rem',
|
49
|
+
'font-weight': '500',
|
50
|
+
'line-height': '2.5rem',
|
73
51
|
},
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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',
|
84
148
|
},
|
85
149
|
};
|
86
|
-
|
87
150
|
const createPalete = function (colorName) {
|
88
151
|
return {
|
89
|
-
DEFAULT: 'rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)',
|
90
152
|
50: `rgba(var(--ax-sys-color-${colorName}-50), <alpha-value>)`,
|
91
153
|
100: `rgba(var(--ax-sys-color-${colorName}-100), <alpha-value>)`,
|
92
154
|
200: `rgba(var(--ax-sys-color-${colorName}-200), <alpha-value>)`,
|
@@ -100,35 +162,99 @@ const createPalete = function (colorName) {
|
|
100
162
|
950: `rgba(var(--ax-sys-color-${colorName}-950), <alpha-value>)`,
|
101
163
|
};
|
102
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>)`,
|
175
|
+
};
|
176
|
+
};
|
103
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
|
+
};
|
104
201
|
module.exports = withAnimations({
|
105
202
|
prefix: 'ax-',
|
106
203
|
content: ['./src/**/*.{html,ts,scss}', './projects/**/*.{html,ts,scss}'],
|
107
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
|
+
],
|
108
213
|
theme: {
|
109
214
|
extend: {
|
110
215
|
colors: {
|
216
|
+
...SURFACE_BG,
|
217
|
+
...SURFACES_ON,
|
111
218
|
primary: createPalete('primary'),
|
112
219
|
secondary: createPalete('secondary'),
|
113
220
|
success: createPalete('success'),
|
114
221
|
danger: createPalete('danger'),
|
115
222
|
warning: createPalete('warning'),
|
116
223
|
ghost: createPalete('ghost'),
|
117
|
-
..._onColor,
|
118
|
-
..._onContrastColor,
|
119
224
|
},
|
120
225
|
textColor: {
|
121
|
-
|
226
|
+
DEFAULT: 'rgba(var(--ax-sys-color-on-surface-lightest), <alpha-value>)',
|
227
|
+
default: 'rgba(var(--ax-sys-color-on-surface-lightest), <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,
|
122
235
|
},
|
123
236
|
backgroundColor: {
|
124
|
-
|
237
|
+
DEFAULT: 'rgba(var(--ax-sys-color-surface-lightest), <alpha-value>)',
|
238
|
+
default: 'rgba(var(--ax-sys-color-surface-lightest), <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,
|
125
247
|
},
|
126
248
|
borderColor: {
|
127
|
-
DEFAULT: 'rgba(var(--ax-sys-border-
|
128
|
-
default: 'rgba(var(--ax-sys-border-
|
129
|
-
|
130
|
-
|
131
|
-
|
249
|
+
DEFAULT: 'rgba(var(--ax-sys-color-border-surface-lightest), <alpha-value>)',
|
250
|
+
default: 'rgba(var(--ax-sys-color-border-surface-lightest), <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,
|
132
258
|
},
|
133
259
|
maxWidth: {
|
134
260
|
'8xl': '90rem',
|
@@ -170,113 +296,10 @@ module.exports = withAnimations({
|
|
170
296
|
corePlugins: {
|
171
297
|
preflight: false,
|
172
298
|
},
|
299
|
+
|
173
300
|
plugins: [
|
174
301
|
plugin(function ({ addUtilities }) {
|
175
|
-
|
176
|
-
'.h1': {
|
177
|
-
'font-size': '2.5rem',
|
178
|
-
'font-weight': '500',
|
179
|
-
'line-height': '2.5rem',
|
180
|
-
},
|
181
|
-
'.h2': {
|
182
|
-
'font-size': '2rem',
|
183
|
-
'font-weight': '500',
|
184
|
-
'line-height': '2rem',
|
185
|
-
},
|
186
|
-
'.h3': {
|
187
|
-
'font-size': '1.75rem',
|
188
|
-
'font-weight': '500',
|
189
|
-
'line-height': '1.75rem',
|
190
|
-
},
|
191
|
-
'.h4': {
|
192
|
-
'font-size': '1.5rem',
|
193
|
-
'font-weight': '500',
|
194
|
-
'line-height': '1.5rem',
|
195
|
-
},
|
196
|
-
'.h5': {
|
197
|
-
'font-size': '1.125rem',
|
198
|
-
'font-weight': '500',
|
199
|
-
'line-height': '1.125rem',
|
200
|
-
},
|
201
|
-
'.h6': {
|
202
|
-
'font-size': '1rem',
|
203
|
-
'font-weight': '500',
|
204
|
-
'line-height': '1rem',
|
205
|
-
},
|
206
|
-
'.heading': {
|
207
|
-
width: '100%',
|
208
|
-
'border-bottom': '1px solid',
|
209
|
-
'border-color': 'rgba(var(--ax-sys-border-color))',
|
210
|
-
'line-height': '0.1em',
|
211
|
-
margin: '1rem auto',
|
212
|
-
},
|
213
|
-
'.heading > span': {
|
214
|
-
background: 'rgba(var(--ax-sys-color-surface))',
|
215
|
-
padding: '0 0.75rem',
|
216
|
-
},
|
217
|
-
'.heading-start': {
|
218
|
-
'text-align': 'start',
|
219
|
-
},
|
220
|
-
'.heading-center': {
|
221
|
-
'text-align': 'center',
|
222
|
-
},
|
223
|
-
'.heading-end': {
|
224
|
-
'text-align': 'end',
|
225
|
-
},
|
226
|
-
'.links': {
|
227
|
-
color: 'rgba(var(--ax-sys-color-primary-500))',
|
228
|
-
cursor: 'pointer',
|
229
|
-
},
|
230
|
-
'.links:hover': {
|
231
|
-
'text-decoration': 'underline',
|
232
|
-
},
|
233
|
-
'.links:visited': {
|
234
|
-
color: 'rgba(var(--ax-sys-color-primary-700))',
|
235
|
-
},
|
236
|
-
'.animate-slow': {
|
237
|
-
animationDuration: '2s',
|
238
|
-
},
|
239
|
-
'.animate-slower': {
|
240
|
-
animationDuration: '3s',
|
241
|
-
},
|
242
|
-
'.animate-2xslower': {
|
243
|
-
animationDuration: '5s',
|
244
|
-
},
|
245
|
-
'.animate-fast': {
|
246
|
-
animationDuration: '800ms',
|
247
|
-
},
|
248
|
-
'.animate-faster': {
|
249
|
-
animationDuration: '500ms',
|
250
|
-
},
|
251
|
-
'.animate-2xfaster': {
|
252
|
-
animationDuration: '250ms',
|
253
|
-
},
|
254
|
-
'.card': {
|
255
|
-
backgroundColor: 'rgb(var(--ax-color-surface))',
|
256
|
-
border: '1px solid',
|
257
|
-
borderColor: 'rgb(var(--ax-sys-border-color))',
|
258
|
-
borderRadius: 'var(--ax-sys-border-radius)',
|
259
|
-
},
|
260
|
-
'.tabs-fit': {
|
261
|
-
width: '100%',
|
262
|
-
},
|
263
|
-
'.xs': {
|
264
|
-
'--ax-sys-size-base': '2rem',
|
265
|
-
},
|
266
|
-
'.sm': {
|
267
|
-
'--ax-sys-size-base': '2.25rem',
|
268
|
-
},
|
269
|
-
'.md': {
|
270
|
-
'--ax-sys-size-base': '2.5rem',
|
271
|
-
},
|
272
|
-
'.lg': {
|
273
|
-
'--ax-sys-size-base': '3rem',
|
274
|
-
},
|
275
|
-
'.xl': {
|
276
|
-
'--ax-sys-size-base': '3.5rem',
|
277
|
-
},
|
278
|
-
};
|
279
|
-
addUtilities(acorexClasses, ['responsive', 'hover', 'focus']);
|
302
|
+
UTILITY_CLASSES, addUtilities(UTILITY_CLASSES, ['responsive', 'hover', 'focus']);
|
280
303
|
}),
|
281
304
|
childSelector,
|
282
305
|
],
|