mapcomplete/tailwind.config.js

34 lines
747 B
JavaScript
Raw Normal View History

2021-01-27 02:26:57 +01:00
const plugin = require('tailwindcss/plugin')
module.exports = {
mode: 'jit',
2021-01-27 02:26:57 +01:00
purge: [
'./**/*.html',
'./**/*.ts',
2021-01-27 02:26:57 +01:00
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
maxHeight: {
'65vh': '65vh',
'20vh': '20vh',
}
},
},
2021-01-27 02:26:57 +01:00
variants: {
extend: {
ringColor: ['hover'],
}
},
plugins: [
2021-11-07 16:34:51 +01:00
plugin(function ({addVariant, e}) {
addVariant('landscape', ({modifySelectors, separator}) => {
modifySelectors(({className}) => {
2021-01-27 02:26:57 +01:00
return `.${e(`landscape${separator}${className}`)}:landscape`
})
})
})
]
}