@acorex/styles 21.0.3-next.9 → 21.1.0-next.1
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 +4 -1
- package/components/_editor-container.css +53 -10
- package/components/_general-button.css +3 -1
- package/package.json +2 -2
- package/themes/default.css +474 -154
- package/tailwind-base.js +0 -324
package/tailwind-base.js
DELETED
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
const { withAnimations } = require('animated-tailwindcss');
|
|
3
|
-
const {
|
|
4
|
-
createBorderSurfaces,
|
|
5
|
-
createOnSurfaces,
|
|
6
|
-
createPalette,
|
|
7
|
-
createSurfaces,
|
|
8
|
-
createColorSurfaces,
|
|
9
|
-
createColoredSurfaces,
|
|
10
|
-
} = require('./generators/index');
|
|
11
|
-
|
|
12
|
-
const childSelector = plugin(function ({ addVariant }) {
|
|
13
|
-
addVariant('child', '& > *');
|
|
14
|
-
addVariant('child-hover', '& > *:hover');
|
|
15
|
-
addVariant('child-focus', '& > *:focus');
|
|
16
|
-
addVariant('child-focus-within', '& > *:focus-within');
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const SURFACE_BG = {
|
|
20
|
-
DEFAULT: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
|
|
21
|
-
default: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
|
|
22
|
-
|
|
23
|
-
lightest: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
|
|
24
|
-
lighter: 'rgba(var(--ax-sys-color-lighter-surface), <alpha-value>)',
|
|
25
|
-
light: 'rgba(var(--ax-sys-color-light-surface), <alpha-value>)',
|
|
26
|
-
|
|
27
|
-
surface: 'rgba(var(--ax-sys-color-surface), <alpha-value>)',
|
|
28
|
-
|
|
29
|
-
dark: 'rgba(var(--ax-sys-color-dark-surface), <alpha-value>)',
|
|
30
|
-
darker: 'rgba(var(--ax-sys-color-darker-surface), <alpha-value>)',
|
|
31
|
-
darkest: 'rgba(var(--ax-sys-color-darkest-surface), <alpha-value>)',
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const SURFACES_ON = {
|
|
35
|
-
on: {
|
|
36
|
-
DEFAULT: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
|
37
|
-
default: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
|
38
|
-
|
|
39
|
-
lightest: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
|
40
|
-
lighter: 'rgba(var(--ax-sys-color-on-lighter-surface), <alpha-value>)',
|
|
41
|
-
light: 'rgba(var(--ax-sys-color-on-light-surface), <alpha-value>)',
|
|
42
|
-
|
|
43
|
-
surface: 'rgba(var(--ax-sys-color-on-surface), <alpha-value>)',
|
|
44
|
-
|
|
45
|
-
dark: 'rgba(var(--ax-sys-color-on-dark-surface), <alpha-value>)',
|
|
46
|
-
darker: 'rgba(var(--ax-sys-color-on-darker-surface), <alpha-value>)',
|
|
47
|
-
darkest: 'rgba(var(--ax-sys-color-on-darkest-surface), <alpha-value>)',
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const SURFACE_BORDER = {
|
|
52
|
-
DEFAULT: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
|
|
53
|
-
default: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
|
|
54
|
-
|
|
55
|
-
lightest: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
|
|
56
|
-
lighter: 'rgba(var(--ax-sys-color-border-lighter-surface), <alpha-value>)',
|
|
57
|
-
light: 'rgba(var(--ax-sys-color-border-light-surface), <alpha-value>)',
|
|
58
|
-
|
|
59
|
-
surface: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
|
|
60
|
-
|
|
61
|
-
dark: 'rgba(var(--ax-sys-color-border-dark-surface), <alpha-value>)',
|
|
62
|
-
darker: 'rgba(var(--ax-sys-color-border-darker-surface), <alpha-value>)',
|
|
63
|
-
darkest: 'rgba(var(--ax-sys-color-border-darkest-surface), <alpha-value>)',
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const dynamicSurfaceClasses = {
|
|
67
|
-
...createColoredSurfaces('primary'),
|
|
68
|
-
...createColoredSurfaces('secondary'),
|
|
69
|
-
...createColoredSurfaces('success'),
|
|
70
|
-
...createColoredSurfaces('warning'),
|
|
71
|
-
...createColoredSurfaces('danger'),
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const UTILITY_CLASSES = {
|
|
75
|
-
...dynamicSurfaceClasses,
|
|
76
|
-
'.h1': {
|
|
77
|
-
'font-size': '2.5rem',
|
|
78
|
-
'font-weight': '500',
|
|
79
|
-
'line-height': '2.5rem',
|
|
80
|
-
},
|
|
81
|
-
'.h2': {
|
|
82
|
-
'font-size': '2rem',
|
|
83
|
-
'font-weight': '500',
|
|
84
|
-
'line-height': '2rem',
|
|
85
|
-
},
|
|
86
|
-
'.h3': {
|
|
87
|
-
'font-size': '1.75rem',
|
|
88
|
-
'font-weight': '500',
|
|
89
|
-
'line-height': '1.75rem',
|
|
90
|
-
},
|
|
91
|
-
'.h4': {
|
|
92
|
-
'font-size': '1.5rem',
|
|
93
|
-
'font-weight': '500',
|
|
94
|
-
'line-height': '1.5rem',
|
|
95
|
-
},
|
|
96
|
-
'.h5': {
|
|
97
|
-
'font-size': '1.125rem',
|
|
98
|
-
'font-weight': '500',
|
|
99
|
-
'line-height': '1.125rem',
|
|
100
|
-
},
|
|
101
|
-
'.h6': {
|
|
102
|
-
'font-size': '1rem',
|
|
103
|
-
'font-weight': '500',
|
|
104
|
-
'line-height': '1rem',
|
|
105
|
-
},
|
|
106
|
-
'.heading': {
|
|
107
|
-
width: '100%',
|
|
108
|
-
'border-bottom': '1px solid',
|
|
109
|
-
'border-color': 'rgba(var(--ax-sys-color-border-lightest-surface))',
|
|
110
|
-
'line-height': '0.1em',
|
|
111
|
-
margin: '1rem auto',
|
|
112
|
-
},
|
|
113
|
-
'.heading > span': {
|
|
114
|
-
background: 'rgba(var(--ax-sys-color-surface))',
|
|
115
|
-
padding: '0 0.75rem',
|
|
116
|
-
},
|
|
117
|
-
'.heading-start': {
|
|
118
|
-
'text-align': 'start',
|
|
119
|
-
},
|
|
120
|
-
'.heading-center': {
|
|
121
|
-
'text-align': 'center',
|
|
122
|
-
},
|
|
123
|
-
'.heading-end': {
|
|
124
|
-
'text-align': 'end',
|
|
125
|
-
},
|
|
126
|
-
'.subtitle': {
|
|
127
|
-
opacity: '74%',
|
|
128
|
-
display: 'block',
|
|
129
|
-
'font-size': '1rem',
|
|
130
|
-
'font-weight': '400',
|
|
131
|
-
'line-height': '1.625rem',
|
|
132
|
-
},
|
|
133
|
-
'.links': {
|
|
134
|
-
color: 'rgba(var(--ax-sys-color-primary-surface))',
|
|
135
|
-
cursor: 'pointer',
|
|
136
|
-
},
|
|
137
|
-
'.links:hover': {
|
|
138
|
-
'text-decoration': 'underline',
|
|
139
|
-
},
|
|
140
|
-
'.links:visited': {
|
|
141
|
-
color: 'rgba(var(--ax-sys-color-primary-darker))',
|
|
142
|
-
},
|
|
143
|
-
'.animate-slow': {
|
|
144
|
-
animationDuration: '2s',
|
|
145
|
-
},
|
|
146
|
-
'.animate-slower': {
|
|
147
|
-
animationDuration: '3s',
|
|
148
|
-
},
|
|
149
|
-
'.animate-2xslower': {
|
|
150
|
-
animationDuration: '5s',
|
|
151
|
-
},
|
|
152
|
-
'.animate-fast': {
|
|
153
|
-
animationDuration: '800ms',
|
|
154
|
-
},
|
|
155
|
-
'.animate-faster': {
|
|
156
|
-
animationDuration: '500ms',
|
|
157
|
-
},
|
|
158
|
-
'.animate-2xfaster': {
|
|
159
|
-
animationDuration: '250ms',
|
|
160
|
-
},
|
|
161
|
-
'.card': {
|
|
162
|
-
backgroundColor: 'rgb(var(--ax-sys-color-surface))',
|
|
163
|
-
border: '1px solid',
|
|
164
|
-
borderColor: 'rgb(var(--ax-sys-color-border-lightest-surface))',
|
|
165
|
-
borderRadius: 'var(--ax-sys-border-radius)',
|
|
166
|
-
},
|
|
167
|
-
'.tabs-fit': {
|
|
168
|
-
width: '100%',
|
|
169
|
-
},
|
|
170
|
-
'.xs': {
|
|
171
|
-
'--ax-sys-size-base': '1.5rem',
|
|
172
|
-
},
|
|
173
|
-
'.sm': {
|
|
174
|
-
'--ax-sys-size-base': '2rem',
|
|
175
|
-
},
|
|
176
|
-
'.md': {
|
|
177
|
-
'--ax-sys-size-base': '2.5rem',
|
|
178
|
-
},
|
|
179
|
-
'.lg': {
|
|
180
|
-
'--ax-sys-size-base': '3.375rem',
|
|
181
|
-
},
|
|
182
|
-
'.xl': {
|
|
183
|
-
'--ax-sys-size-base': '4rem',
|
|
184
|
-
},
|
|
185
|
-
'.surface': {
|
|
186
|
-
backgroundColor: 'rgb(var(--ax-sys-color-surface))',
|
|
187
|
-
color: 'rgb(var(--ax-sys-color-on-surface))',
|
|
188
|
-
borderColor: 'rgb(var(--ax-sys-color-border-surface))',
|
|
189
|
-
},
|
|
190
|
-
'.lightest-surface': {
|
|
191
|
-
backgroundColor: 'rgb(var(--ax-sys-color-lightest-surface))',
|
|
192
|
-
color: 'rgb(var(--ax-sys-color-on-lightest-surface))',
|
|
193
|
-
borderColor: 'rgb(var(--ax-sys-color-border-lightest-surface))',
|
|
194
|
-
},
|
|
195
|
-
'.lighter-surface': {
|
|
196
|
-
backgroundColor: 'rgb(var(--ax-sys-color-lighter-surface))',
|
|
197
|
-
color: 'rgb(var(--ax-sys-color-on-lighter-surface))',
|
|
198
|
-
borderColor: 'rgb(var(--ax-sys-color-border-lighter-surface))',
|
|
199
|
-
},
|
|
200
|
-
'.light-surface': {
|
|
201
|
-
backgroundColor: 'rgb(var(--ax-sys-color-light-surface))',
|
|
202
|
-
color: 'rgb(var(--ax-sys-color-on-light-surface))',
|
|
203
|
-
borderColor: 'rgb(var(--ax-sys-color-border-light-surface))',
|
|
204
|
-
},
|
|
205
|
-
'.dark-surface': {
|
|
206
|
-
backgroundColor: 'rgb(var(--ax-sys-color-dark-surface))',
|
|
207
|
-
color: 'rgb(var(--ax-sys-color-on-dark-surface))',
|
|
208
|
-
borderColor: 'rgb(var(--ax-sys-color-border-dark-surface))',
|
|
209
|
-
},
|
|
210
|
-
'.darker-surface': {
|
|
211
|
-
backgroundColor: 'rgb(var(--ax-sys-color-darker-surface))',
|
|
212
|
-
color: 'rgb(var(--ax-sys-color-on-darker-surface))',
|
|
213
|
-
borderColor: 'rgb(var(--ax-sys-color-border-darker-surface))',
|
|
214
|
-
},
|
|
215
|
-
'.darkest-surface': {
|
|
216
|
-
backgroundColor: 'rgb(var(--ax-sys-color-darkest-surface))',
|
|
217
|
-
color: 'rgb(var(--ax-sys-color-on-darkest-surface))',
|
|
218
|
-
borderColor: 'rgb(var(--ax-sys-color-border-darkest-surface))',
|
|
219
|
-
},
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
module.exports = withAnimations({
|
|
223
|
-
content: ['./src/**/*.{html,ts,scss}', './projects/**/*.{html,ts,scss}'],
|
|
224
|
-
darkMode: 'class',
|
|
225
|
-
safelist: [
|
|
226
|
-
{
|
|
227
|
-
pattern: /(?:(?:on|border)-)?(?:lightest|lighter|light|surface|dark|darker|darkest)/,
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
pattern:
|
|
231
|
-
/(?:bg|text)(?:-(?:primary|secondary|danger|success|warning))?-(?:50|100|200|300|400|500|600|700|800|900|950)/,
|
|
232
|
-
},
|
|
233
|
-
],
|
|
234
|
-
theme: {
|
|
235
|
-
extend: {
|
|
236
|
-
colors: {
|
|
237
|
-
...SURFACE_BG,
|
|
238
|
-
...SURFACES_ON,
|
|
239
|
-
primary: createPalette('primary'),
|
|
240
|
-
secondary: createPalette('secondary'),
|
|
241
|
-
success: createPalette('success'),
|
|
242
|
-
danger: createPalette('danger'),
|
|
243
|
-
warning: createPalette('warning'),
|
|
244
|
-
},
|
|
245
|
-
textColor: {
|
|
246
|
-
DEFAULT: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
|
247
|
-
default: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
|
|
248
|
-
primary: createOnSurfaces('primary'),
|
|
249
|
-
secondary: createOnSurfaces('secondary'),
|
|
250
|
-
success: createOnSurfaces('success'),
|
|
251
|
-
danger: createOnSurfaces('danger'),
|
|
252
|
-
warning: createOnSurfaces('warning'),
|
|
253
|
-
...SURFACES_ON,
|
|
254
|
-
},
|
|
255
|
-
backgroundColor: {
|
|
256
|
-
primary: createSurfaces('primary'),
|
|
257
|
-
secondary: createSurfaces('secondary'),
|
|
258
|
-
success: createSurfaces('success'),
|
|
259
|
-
danger: createSurfaces('danger'),
|
|
260
|
-
warning: createSurfaces('warning'),
|
|
261
|
-
...SURFACE_BG,
|
|
262
|
-
...SURFACES_ON,
|
|
263
|
-
},
|
|
264
|
-
borderColor: {
|
|
265
|
-
primary: createBorderSurfaces('primary'),
|
|
266
|
-
secondary: createBorderSurfaces('secondary'),
|
|
267
|
-
success: createBorderSurfaces('success'),
|
|
268
|
-
danger: createBorderSurfaces('danger'),
|
|
269
|
-
warning: createBorderSurfaces('warning'),
|
|
270
|
-
...SURFACE_BORDER,
|
|
271
|
-
},
|
|
272
|
-
maxWidth: {
|
|
273
|
-
'8xl': '90rem',
|
|
274
|
-
'9xl': '100rem',
|
|
275
|
-
},
|
|
276
|
-
borderRadius: {
|
|
277
|
-
default: 'var(--ax-sys-border-radius)',
|
|
278
|
-
},
|
|
279
|
-
lineHeight: {
|
|
280
|
-
11: '2.5rem',
|
|
281
|
-
12: '3rem',
|
|
282
|
-
12: '3rem',
|
|
283
|
-
14: '3.5rem',
|
|
284
|
-
16: '4rem',
|
|
285
|
-
20: '5rem',
|
|
286
|
-
},
|
|
287
|
-
spacing: {
|
|
288
|
-
default: 'var(--ax-sys-size-base)',
|
|
289
|
-
},
|
|
290
|
-
minWidth: {
|
|
291
|
-
default: 'var(--ax-sys-size-base)',
|
|
292
|
-
},
|
|
293
|
-
width: {
|
|
294
|
-
default: 'var(--ax-sys-size-base)',
|
|
295
|
-
},
|
|
296
|
-
minHeight: {
|
|
297
|
-
default: 'var(--ax-sys-size-base)',
|
|
298
|
-
},
|
|
299
|
-
height: {
|
|
300
|
-
default: 'var(--ax-sys-size-base)',
|
|
301
|
-
},
|
|
302
|
-
maxHeight: {
|
|
303
|
-
default: 'var(--ax-sys-size-base)',
|
|
304
|
-
},
|
|
305
|
-
keyframes: {
|
|
306
|
-
floating: {
|
|
307
|
-
'0%': { transform: 'translatey(0px)' },
|
|
308
|
-
'50%': { transform: 'translatey(-20px)' },
|
|
309
|
-
'100%': { transform: 'translatey(0px)' },
|
|
310
|
-
},
|
|
311
|
-
},
|
|
312
|
-
animation: {
|
|
313
|
-
floating: 'floating 6s ease-in-out infinite',
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
plugins: [
|
|
319
|
-
plugin(function ({ addUtilities }) {
|
|
320
|
-
addUtilities(UTILITY_CLASSES, ['responsive', 'hover', 'focus']);
|
|
321
|
-
}),
|
|
322
|
-
childSelector,
|
|
323
|
-
],
|
|
324
|
-
});
|