forked from ishareme/vue3-front-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
38 lines (36 loc) · 959 Bytes
/
tailwind.config.cjs
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
function pxToRem(variable) {
return `${variable / 75}rem`;
}
function pxToVmin(variable) {
return `${variable / 7.5}vmin`;
}
module.exports = {
// tailwind 的应用范围
content: ['./index.html', './src/**/*.{vue,js}'],
theme: {
extend: {
fontSize: {
xs: ['0.25rem', '0.35rem'],
sm: ['0.35rem', '0.45rem'],
base: ['0.42rem', '0.52rem'],
lg: ['0.55rem', '0.65rem'],
xl: ['0.65rem', '0.75rem'],
},
boxShadow: {
'l-white': '-10px 0 10px white',
},
height: {
header: '72px',
main: 'calc(100vh - 72px)',
},
objectPosition: {
// pcenter: {}
},
colors: {
main: '#f44c48',
'hover-main': '#f32836',
},
},
},
plugins: [],
};