-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathunocss.config.ts
More file actions
34 lines (32 loc) · 802 Bytes
/
Copy pathunocss.config.ts
File metadata and controls
34 lines (32 loc) · 802 Bytes
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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetWind3,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import { editorIconClasses } from './src/constants/codeEditor'
import { projectMenuIconClasses } from './src/constants/projectMenu'
export default defineConfig({
presets: [
presetWind3(),
presetAttributify(),
presetTypography(),
presetIcons({
collections: {
custom: () => import('./src/assets/icons.json').then(i => i.default),
},
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
],
safelist: [...editorIconClasses, ...projectMenuIconClasses],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})