chore: remove deprecations following tailwind update

This commit is contained in:
Brice Maron 2022-09-08 08:24:17 +02:00
parent 99a12a040b
commit 1d80b0436c
5 changed files with 340 additions and 249 deletions

View file

@ -1,33 +1,23 @@
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
const plugin = require("tailwindcss/plugin");
module.exports = {
mode: 'jit',
purge: [
'./**/*.html',
'./**/*.ts',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
maxHeight: {
'65vh': '65vh',
'20vh': '20vh',
}
},
content: ["./**/*.html", "./**/*.ts"],
theme: {
extend: {
maxHeight: {
"65vh": "65vh",
"20vh": "20vh",
},
},
variants: {
extend: {
ringColor: ['hover'],
}
},
plugins: [
plugin(function ({addVariant, e}) {
addVariant('landscape', ({modifySelectors, separator}) => {
modifySelectors(({className}) => {
return `.${e(`landscape${separator}${className}`)}:landscape`
})
})
})
]
}
},
plugins: [
plugin(function ({ addVariant, e }) {
addVariant("landscape", ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`landscape${separator}${className}`)}:landscape`;
});
});
}),
],
};