-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
101 lines (100 loc) · 2.71 KB
/
unocss.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import presetAttributify from '@unocss/preset-attributify';
import presetUno from '@unocss/preset-uno';
import presetWebFonts from '@unocss/preset-web-fonts';
import { defineConfig, presetIcons } from 'unocss';
export default defineConfig({
presets: [
presetIcons(),
presetUno(),
presetAttributify(),
presetWebFonts({
provider: 'google',
fonts: {
montserrat: [
{
name: 'Montserrat',
weights: ['400', '700'],
},
],
roboto: 'Roboto Slab',
droid: 'Droid Sans',
kaushan: 'Kaushan Script',
},
}),
],
shortcuts: {
'sns-icon': 'text-10 inline-block hover:text-primary transition delay-50 ease-in-out',
'rounded-img-border': 'b-7 border-gray-200 rounded-full border-style-solid',
'f-center': 'flex justify-center items-center',
'big-btn':
'uppercase bg-primary color-white px-47px py-24px font-700 transition delay-50 ease-in-out cursor-pointer rd border-none text-18px',
overlay: 'absolute top-0 left-0 right-0 bottom-0 rd',
'fixed-top': 'fixed top-0 right-0 left-0 z-1003',
},
rules: [
[/^hw-(\d+)px$/, ([, length]) => ({ height: `${length}px`, width: `${length}px` })],
[/^hw-(\d+)%$/, ([, length]) => ({ height: `${length}%`, width: `${length}%` })],
],
safelist: ['i-fa-shopping-cart', 'i-fa-laptop', 'i-fa-lock'],
theme: {
colors: {
white: '#fff',
black: '#000',
gray100: '#f8f9fa',
gray200: '#e9ecef',
gray300: '#dee2e6',
gray400: '#ced4da',
gray500: '#adb5bd',
gray600: '#868e96',
gray700: '#495057',
gray800: '#343a40',
gray900: '#212529',
primary: '#fed136',
muted: '#868e96',
},
fontFamily: {
body: [
'"Roboto Slab"',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
script: [
'"Kaushan Script"',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
heading: [
'"Montserrat"',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
},
},
});