-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
86 lines (85 loc) · 2.18 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// uno.config.ts
import {
defineConfig,
presetIcons,
presetWebFonts,
presetAttributify,
presetTypography,
presetUno
} from 'unocss'
import { presetForms } from '@julr/unocss-preset-forms'
export default defineConfig({
presets: [
presetIcons({
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle'
// ...
}
}),
presetAttributify(), // required when using attributify mode
presetUno(), // required
presetForms(),
presetWebFonts({
provider: 'google', // default provider
fonts: {
display: [
{
name: 'Playfair Display',
weights: ['100', '200', '300', '400', '500', '600', '700']
},
{
name: 'serif',
provider: 'none'
}
],
heading: [
{
name: 'Fira Sans Condensed',
weights: ['100', '200', '300', '400', '500', '600', '700']
},
{
name: 'serif',
provider: 'none'
}
],
sans: [
{
name: 'Open Sans',
weights: ['100', '200', '300', '400', '500', '600', '700']
},
{
name: 'sans-serif',
provider: 'none'
}
]
}
}),
presetTypography()
],
safelist: [
...Array.from({ length: 3 }, (_, i) => `bg-gray-${i + 1}00`),
...Array.from({ length: 3 }, (_, i) => `bg-red-${i + 1}00`),
...Array.from({ length: 3 }, (_, i) => `bg-yellow-${i + 1}00`),
...Array.from({ length: 3 }, (_, i) => `bg-green-${i + 1}00`),
...Array.from({ length: 3 }, (_, i) => `bg-blue-${i + 1}00`),
...Array.from({ length: 3 }, (_, i) => `bg-indigo-${i + 1}00`),
...Array.from({ length: 3 }, (_, i) => `bg-purple-${i + 1}00`),
...Array.from({ length: 3 }, (_, i) => `bg-pink-${i + 1}00`),
'text-xs',
'text-sm',
'text-base',
'text-lg',
'text-xl',
'text-2xl',
'text-3xl',
'text-4xl',
'i-fa6-brands-facebook',
'i-fa6-brands-instagram',
'i-fa6-brands-twitter',
'i-fa6-solid-bullhorn',
'i-fa6-solid-user-lock',
'i-fa6-solid-passport',
'i-fa6-solid-envelope'
]
})