-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
68 lines (67 loc) · 1.42 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/** @type {import('tailwindcss').Config} */
function generateSize(cssNames, sizeList) {
let obj = {}
cssNames.forEach(cssName => {
obj[cssName] = {}
sizeList.forEach(size => {
obj[cssName][size] = `${size}px`
})
})
return obj
}
export default {
darkMode: ['class'],
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,vue}"],
theme: {
extend: {
...generateSize([
'padding',
'margin',
'fontSize',
],
(new Array(60).fill('')).map((value, idx) => idx + 5)
),
...generateSize([
'fontSize',
],
(new Array(35).fill('')).map((value, idx) => idx + 12)
),
...generateSize([
'maxWidth',
'minWidth',
'flexBasis',
'width',
'maxHeight',
'minHeight',
'height'
], [
...(new Array(500).fill('')).map((value, idx) => idx + 10),
1200,
1080,
1300,
]
),
fontFamily:{
'mst': 'Montserrat-Regular',
'mst-m': 'Montserrat-Medium',
'mst-b': 'Montserrat-SemiBold'
},
colors: {
active: "#93C528",
'dark-text-color':'#9598AE',
'dark-title-color': '#ffffff',
'dark-component-bg': '#1E1F25',
},
borderRadius:{
'component':'10px',
},
opcity: {
'component': 0.6
},
zIndex: {
'5': 5
}
}
},
plugins: []
}