-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
43 lines (42 loc) · 1.13 KB
/
uno.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import {
defineConfig, presetAttributify, presetIcons,
presetTypography, presetUno,
} from 'unocss'
import transformerAttributifyJsx from './transformerAttributifyJsx'
export default defineConfig({
theme: {
},
shortcuts: {
'j-btn': 'h-48px w-100% bg-#77dbcf b-none text-white text-18px rounded-8px px-12px',
'j-input-text': 'h-48px px-16px leading-32px py-8px b-#77dbcf b-1 focus:shadow focus:shadow-inset rounded-8px text-18px',
'j-form': 'px-16px flex flex-col gap-y-8px children-flex children-flex-col',
'j-form-label': 'text-18px mb-8px',
},
safelist: [],
// preflights: [
// {
// layer: 'components',
// getCSS: () => `
// .j-icon{
// fill: currentColor;
// width: 1.2em;
// height: 1.2em;
// }
// `
// },
// ],
rules: [
['h-screen', { height: 'calc(100vh - var(--vh-offset, 0px))' }]
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
extraProperties: { 'display': 'inline-block', 'vertical-align': 'middle' },
}),
presetTypography(),
],
transformers: [
transformerAttributifyJsx(),
],
})