-
Notifications
You must be signed in to change notification settings - Fork 7
Migration Guide for tailwindcss pseudo elements v1.x.x to v2.0.0
crouton edited this page Apr 6, 2021
·
1 revision
The location where customPseudoElements
and customPseudoClasses
are written changes.
module.exports = {
// customPseudoElements: ['foo'],
// customPseudoElements: ['bar'],
plugins: [
require('tailwindcss-pseudo-elements')({
customPseudoClasses: ['foo'],
customPseudoElements: ['bar'],
}),
],
}
The underbar-delimited naming convention is deprecated and is more intuitive.
module.exports = {
variants: {
extend: {
textColor: [
// 'hover_before',
// 'foo_bar',
'hover::before',
'hover::after',
'foo::bar',
'checked:hover::before'
],
},
},
}
/* @variants hover_after */
@variants hover::after {
}