Fork of tailwind-caret-color package. Tailwind 2.0.
This plugin generates classes for coloring carets using caret-color: #;.
Pull it in through npm or yarn:
npm install @graxmonzo/tailwind-caret-coloryarn add @graxmonzo/tailwind-caret-colorAdd it to the plugins array of your Tailwind config.
// tailwind.config.js
{
variants: {
caretColor: ['dark', 'active'], // Default variants
},
plugins: [
require('@graxmonzo/tailwind-caret-color'),
],
}For each color in colors config of tailwind a caret-{color} class is created, analog to bg- and text- classes.
yarn testPlease see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.