-
-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathuno.config.ts
More file actions
23 lines (22 loc) · 656 Bytes
/
Copy pathuno.config.ts
File metadata and controls
23 lines (22 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss'
export default defineConfig({
shortcuts: [
['btn', 'px-4 py-1 rounded inline-flex justify-center gap-2 text-white leading-30px children:mya !no-underline cursor-pointer disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
],
presets: [
presetUno({
dark: 'class',
}),
presetAttributify(),
presetIcons({
prefix: 'i-',
scale: 1.2, // size: 1.2 rem
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
'min-width': '1.2rem',
},
warn: true,
}),
],
})