Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naoray/tailwind-caret-color
Tailwindcss plugin to color caret in input fields
https://github.com/naoray/tailwind-caret-color
caret plugin postcss tailwindcss
Last synced: 15 days ago
JSON representation
Tailwindcss plugin to color caret in input fields
- Host: GitHub
- URL: https://github.com/naoray/tailwind-caret-color
- Owner: Naoray
- Archived: true
- Created: 2018-12-03T09:27:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T20:59:07.000Z (about 4 years ago)
- Last Synced: 2024-09-20T10:36:26.490Z (about 2 months ago)
- Topics: caret, plugin, postcss, tailwindcss
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Caret Color - TailwindCSS Plugin
[![npm](https://img.shields.io/npm/v/tailwind-caret-color.svg?style=flat-square)](https://www.npmjs.com/package/tailwind-caret-color)
[![npm](https://img.shields.io/npm/dt/tailwind-caret-color.svg?style=flat-square)](https://www.npmjs.com/package/tailwind-caret-color)This plugin generates classes for coloring carets using `caret-color: #;`.
## Installation
Pull it in through npm or yarn:
```bash
npm install tailwind-caret-color
``````bash
yarn add tailwind-caret-color
```## Usage
Add it to the plugins array of your Tailwind config.
```js
plugins: [
// Other plugins
require('tailwind-caret-color')(),
],
```For each color in `colors` config of tailwind a `caret-{color}` class is created, analog to `bg-` and `text-` classes.
## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).