2.0.5 • Published 3 years ago

@graxmonzo/tailwind-caret-color v2.0.5

Weekly downloads
20
License
MIT
Repository
github
Last release
3 years ago

Caret Color - TailwindCSS Plugin

npm Test npm

Fork of tailwind-caret-color package. Tailwind 2.0.

This plugin generates classes for coloring carets using caret-color: #;.

Installation

Pull it in through npm or yarn:

npm install @graxmonzo/tailwind-caret-color
yarn add @graxmonzo/tailwind-caret-color

Usage

Add 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.

Testing

yarn test

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

2.0.5

3 years ago

2.0.4

3 years ago

1.0.5

4 years ago