Created
March 22, 2022 12:12
-
-
Save gustavoguichard/add844ebe07a9d4a352085354d72a5b3 to your computer and use it in GitHub Desktop.
Tailwind children selector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
theme: { | |
extend: { | |
// ... | |
}, | |
}, | |
plugins: [ | |
function ({ addVariant }) { | |
addVariant('children', '& > *') | |
}, | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment