-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtailwind.config.js
34 lines (33 loc) · 1.07 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
module.exports = {
variants: {
accessibility: ['responsive', 'focus'],
borderRadius: ['responsive', 'ltr', 'rtl'],
borderWidth: ['responsive', 'ltr', 'rtl'],
inset: ['responsive', 'ltr', 'rtl'],
padding: ['responsive', 'ltr', 'rtl'],
float: ['responsive', 'rtl'],
margin: ['responsive', 'rtl'],
textAlign: ['responsive', 'rtl'],
transform: ['responsive', 'rtl'],
rotate: ['responsive', 'rtl'],
fontFamily: ['responsive', 'rtl'],
fontStyle: ['responsive', 'rtl'],
letterSpacing: ['responsive', 'rtl'],
space: ['responsive', 'rtl', 'direction'],
},
plugins: [
require("tailwindcss-dir")(),
function ({addVariant, e}) {
addVariant('ltr', ({separator, modifySelectors}) => {
modifySelectors(({className}) => {
return `[dir=ltr] .ltr${e(separator)}${className}`;
})
});
addVariant('rtl', ({separator, modifySelectors}) => {
modifySelectors(({className}) => {
return `[dir=rtl] .rtl${e(separator)}${className}`;
})
});
}
]
}