-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
39 lines (38 loc) · 927 Bytes
/
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
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
} from 'unocss'
export default defineConfig({
shortcuts: [
['btn', 'rounded-2 border border-color-transparent px-2 py-1 cursor-pointer transition-duration-250 transition-property-border-color bg-#f9f9f9 color-black hover:border-color-#646cff inline-block'],
],
rules: [
['vertical-text', {
/* 从左到右的垂直书写 */
'writing-mode': 'vertical-lr',
/* 文字朝向,使得文字保持正向 */
'text-orientation': 'sideways',
/* 防止文字换行 */
'white-space': 'nowrap',
}],
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
presetWebFonts({
provider: 'none',
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
})