Pseudo Selector Plugin for Tailwind CSS
Installation
yarn add tailwindcss-pseudo
Usage
// tailwind.config.js theme: backgroundColor: 'black': 'black' pseudo: // defaults to {'before': 'before', 'after': 'after'} 'before': 'before' 'after': 'after' 'not-first': 'not(:first-child)' variants: backgroundColor: 'not-first' empty: 'before' 'after' // defaults to [] plugins: empty: true // defaults to true
This plugin generates the following utilities: