I'm trying to have an efficient way to re-use image-rendering: -webkit-optimize-contrast
in different components in my Vue app. I don't want to create it as a <style scoped>
and declare it in each component.
The only resource I could find about it is from Tailwind docs: Link.
I tried downloading autoprefixer
, and I Inserted the plugin as required:
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
]
}
I can't figure out how to include the webkit
in my tailwind config.
I tried adding it to my theme, but I couldn't make it work. I'm not sure if I was correct with my approach:
theme: {
extend: {
webkit: {
'image-rendering': '-webkit-optimize-contrast'
}
}
}
How do I include image-rendering: -webkit-optimize-contrast
in my tailwind.config.js
and use it as a class?