-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
52 lines (51 loc) · 1.21 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
44
45
46
47
48
49
50
51
52
import { presetThemeDefault } from '@anu-vue/preset-theme-default'
import { theme } from '@unocss/preset-mini'
import { presetAnu, presetIconExtraProperties } from 'anu-vue'
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
['icon-btn', 'text-[0.95em] inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:(opacity-100 text-primary) !outline-none'],
],
theme: {
colors: {
base: theme.colors?.zinc,
},
},
presets: [
presetUno(),
presetAttributify(),
presetTypography(),
presetWebFonts({
fonts: {
sans: {
name: 'Inter',
provider: 'google',
},
mono: {
name: 'Fira Mono',
provider: 'google',
},
},
}),
presetIcons({
scale: 1.2,
extraProperties: presetIconExtraProperties,
}),
presetAnu(),
presetThemeDefault(),
],
include: [/.*\/anu-vue\.js(.*)?$/, './**/*.vue', './**/*.md'],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})