-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
39 lines (37 loc) · 933 Bytes
/
nuxt.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 transformerDirectives from '@unocss/transformer-directives'
import transformerVariantGroup from '@unocss/transformer-variant-group'
const range = (size: number, startAt = 1) =>
Array.from(Array(size).keys()).map(i => i + startAt)
export default defineNuxtConfig({
appConfig: {
nuxtIcon: {
size: '1.5em',
},
},
modules: ['@unocss/nuxt', 'nuxt-icon', '@vueuse/nuxt'],
srcDir: 'src',
unocss: {
preflight: true,
safelist: [
...range(12).map(i => `space-x-${i}`),
...range(12).map(i => `space-y-${i}`),
...range(12).map(i => `px-${i}`),
'items-start',
'items-baseline',
'items-center',
'items-stretch',
'items-end',
'justify-start',
'justify-end',
'justify-center',
'justify-between',
'justify-around',
'justify-evenly',
],
shortcuts: {
'container-px': 'px-6',
},
transformers: [transformerDirectives(), transformerVariantGroup()],
typography: true,
},
})