-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.js
More file actions
92 lines (84 loc) · 2.12 KB
/
tailwind.config.js
File metadata and controls
92 lines (84 loc) · 2.12 KB
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
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const plugin = require('tailwindcss/plugin')
module.exports = {
mode: 'jit',
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
"./node_modules/flameresttable/src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {
spacing: {
'feed-lg': '777px',
'desktop': '1110px'
},
fontSize: {
'7': '.438rem',
'8': '.5rem',
'9': '.563rem',
'10': '.625rem',
'11': '.688rem',
}
},
screens: {
'mobile': { min: '320px', max: '1080px' },
// => @media (min-width: 640px) { ... }
'tablet': { min: '640px', max: '1080px' },
// => @media (min-width: 640px) { ... }
'desktop': '1080px',
// => @media (min-width: 1280px) { ... }
},
},
plugins: [
plugin(function ({ addComponents, theme }) {
addComponents(
{
// Flex center
'.fc': {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
},
// Flex between
'.fb': {
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
},
// Flex start
'.fs': {
display: 'flex',
justifyContent: 'flex-start',
alignItems: 'center',
},
'.button': {
display: 'inline-flex',
justifyContent: 'center',
alignItems: 'center',
cursor: 'pointer',
backgroundColor: 'white',
padding: '2px 14px',
'& svg,img': {
width: '16px',
marginRight: '4px'
},
'&:hover': {
opacity: 0.8
}
},
'.desktopmobwidth': {
width: 'calc(100vh * 0.5625)',
marginLeft: 'calc(50% - (100vh * 0.5625)/2)'
//padding: '100px'
},
'.mobilemobwidth': {
width: '100%'
//padding: '100px'
}
}
)
}),
],
}