-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
47 lines (46 loc) · 1.04 KB
/
tailwind.config.js
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
const range = (size) =>
Object.fromEntries(
[...Array(size).keys()]
.slice(1)
.map((i) => [`${i}_${size}`, `${(i / size) * 100}%`])
)
module.exports = {
content: ['./src/**/*.{js,tx,tsx,jsx,vue}'],
prefixer: false,
separator: '_',
compile: false,
globalUtility: false,
darkMode: 'media',
corePlugins: {
preflight: false,
divideColor: false,
divideOpacity: false,
divideStyle: false,
divideWidth: false,
space: false,
placeholderColor: false,
placeholderOpacity: false,
transitionProperty: false,
},
exclude: [/([0-9]{1,}[.][0-9]*)$/],
theme: {
width: (theme) => ({
auto: 'auto',
full: '100%',
screen: '100vw',
...Object.assign(...[2, 3, 4, 5, 6, 12].map(range)),
...theme('spacing'),
}),
height: (theme) => ({
auto: 'auto',
full: '100%',
screen: '100vh',
...Object.assign(...[2, 3, 4, 5, 6, 12].map(range)),
...theme('spacing'),
}),
maxHeight: {
full: '100%',
screen: '100vh',
},
},
}