-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
43 lines (42 loc) · 1.27 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 'transformer-attributify-jsx-sg'
export default defineConfig({
theme: {
},
shortcuts: [
{
'x-btn': 'h-48px w-full bg-[--main-color] b-none text-#ffffff rounded-8px cursor-pointer',
'x-input': 'h-48px px-16px leading-32px py-8px b-[--main-color] b-1 focus:shadow focus:shadow-inset rounded-8px text-18px',
},
[/^x-picker-button-(.*)$/, ([, c]) => `border-none bg-transparent select-none text-${c}`],
],
rules: [
['c-h-screen', { height: 'calc(100vh - var(--vh-offset, 0px))' }, { layer: 'components' }],
[/^c-w-(.+)$/, ([, d]) => ({ width: d }), { layer: 'components' }],
[/^c-h-(.+)$/, ([, d]) => ({ height: d }), { layer: 'components' }],
['h-screen', { height: 'calc(100vh - var(--vh-offset, 0px))' }],
['ellipsis', {
'overflow': 'hidden',
'text-overflow': 'ellipsis',
'white-space': 'nowrap',
}],
],
safelist: [],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
extraProperties: { 'display': 'inline-block', 'vertical-align': 'middle' },
}),
presetTypography(),
],
transformers: [
transformerAttributifyJsx(),
],
})