-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.js
73 lines (72 loc) · 1.57 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
69
70
71
72
73
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true
},
purge: false,
theme: {
extend: {
colors: {
color: 'var(--color)',
main: 'var(--bg)',
accent: {
primary: 'var(--accent)',
secondary: 'var(--accent-secondary)'
},
primary: 'var(--primary)',
secondary: 'var(--secondary)'
},
backgroundImage: () => ({
'page-gradient-left': 'var(--sidebar)'
}),
fontSize: {
22: '1.375rem'
},
spacing: {
72: '18rem',
84: '21rem'
},
width: {
'1/7': '14.2857143%',
'2/7': '28.5714286%',
'3/7': '42.8571429%',
'4/7': '57.1428571%',
'5/7': '71.4285714%',
'6/7': '85.7142857%'
}
},
fontFamily: {}
},
variants: {
margin: ['responsive', 'last']
},
plugins: [
function ({ addUtilities }) {
const newUtilities = {
'.pin-c-x': {
left: '50%',
transform: 'translateX(-50%)'
},
'.pin-c-y': {
top: '50%',
transform: 'translateY(-50%)'
},
'.pin-c': {
top: '50%',
left: '50%',
transform: 'translate3d(-50%, -50%, 0)'
},
'.c-border-color': {
borderColor: 'var(--border-color)'
},
'.c-bg-input': {
backgroundColor: 'var(--bg-input)'
},
'.c-bg-secondary': {
backgroundColor: 'var(--bg-secondary)'
}
}
addUtilities(newUtilities)
}
]
}