tailwind-text-decoration-color
Version:
Tailwind plugin to create text-decoration-color classes
109 lines (64 loc) β’ 5.83 kB
Markdown
[](./../../)
# tailwind-text-decoration-color
[](https://www.npmjs.com/package/tailwind-text-decoration-color) [](https://NodeCLI.com/?utm_source=FOSS) [](https://VSCode.pro/?utm_source=FOSS) [](https://github.com/ahmadawais/sponsor?utm_source=FOSS)
[](https://twitter.com/mrahmadawais/)
> This plugin generates classes for anchor link text-decoration coloring carets using `text-decoration-color: <color>;`. Where the `<color>` part comes from your tailwind config colors β so you can use `decoration-gray-500` or custom colors `decoration-sop-900`.
<br>
[](./../../)
## Install
Pull it in through npm or yarn:
```bash
npm install tailwind-text-decoration-color
# OR.
yarn add tailwind-text-decoration-color
```
<br>
[](./../../)
## Usage
Add it to the plugins array of your Tailwind config.
```js
plugins: [
// Other plugins
require('tailwind-text-decoration-color'),
],
```
For each color in `colors` config of tailwind a `decoration-{color}` class is created, analog to `bg-` and `text-` classes.
## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).
<br>
## Changelog
[β― Read the changelog here β](changelog.md)
<br>
<small>**KEY**: `π¦ NEW`, `π IMPROVE`, `π FIX`, `π DOC`, `π RELEASE`, and `π€ TEST`
> _I use [Emoji-log](https://github.com/ahmadawais/Emoji-Log), you should try it and simplify your git commits._
</small>
<br>
[](./../../)
## License & Conduct
- MIT Β© [Ahmad Awais](https://twitter.com/MrAhmadAwais/)
- Thanks to Krishan KΓΆnig for initial implementation
- [Code of Conduct](code-of-conduct.md)
<br>
[](./../../)
## Connect
<div align="left">
<p><a href="https://github.com/ahmadawais"><img alt="GitHub @AhmadAwais" align="center" src="https://img.shields.io/badge/GITHUB-gray.svg?colorB=6cc644&style=flat" /></a> <small><strong>(follow)</strong> To stay up to date on free & open-source software</small></p>
<p><a href="https://twitter.com/MrAhmadAwais/"><img alt="Twitter @MrAhmadAwais" align="center" src="https://img.shields.io/badge/TWITTER-gray.svg?colorB=1da1f2&style=flat" /></a> <small><strong>(follow)</strong> To get #OneDevMinute daily hot tips & trolls</small></p>
<p><a href="https://www.youtube.com/AhmadAwais"><img alt="YouTube AhmadAwais" align="center" src="https://img.shields.io/badge/YOUTUBE-gray.svg?colorB=ff0000&style=flat" /></a> <small><strong>(subscribe)</strong> To tech talks & #OneDevMinute videos</small></p>
<p><a href="https://AhmadAwais.com/"><img alt="Blog: AhmadAwais.com" align="center" src="https://img.shields.io/badge/MY%20BLOG-gray.svg?colorB=4D2AFF&style=flat" /></a> <small><strong>(read)</strong> In-depth & long form technical articles</small></p>
<p><a href="https://www.linkedin.com/in/MrAhmadAwais/"><img alt="LinkedIn @MrAhmadAwais" align="center" src="https://img.shields.io/badge/LINKEDIN-gray.svg?colorB=0077b5&style=flat" /></a> <small><strong>(connect)</strong> On the LinkedIn profile y'all</small></p>
</div>
<br>
[](https://github.com/AhmadAwais/sponsor)
## Sponsor
Me ([Ahmad Awais](https://twitter.com/mrahmadawais/)) and my incredible wife ([Maedah Batool](https://twitter.com/MaedahBatool/)) are two engineers who fell in love with open source and then with each other. You can read more [about me here](https://ahmadawais.com/about). If you or your company use any of my projects or like what Iβm doing then consider backing me. I'm in this for the long run. An open-source developer advocate.
[](https://twitter.com/mrahmadawais/)
### [NodeCLI.com][n] β Learn to build Node.js CLI Automation
> This repository is part of the [NodeCLI.com][n] course.
After building hundreds of developer automation tools used by millions of developers, I am sharing exactly how you can do it yourself with minimum effective effort. Learn to build Node.js & JavaScript based CLI (Command Line Interface) apps. Automate the grunt work, do more in less time, impress your manager, and help the community.
β I'm sharing it all in this online video course. [Node CLI Automation
without wasting a 1,000 hours][n] β</p>
[][n]
[][n]
[n]: https://NodeCLI.com?utm_source=github&utm_medium=referral&utm_campaign=ahmadawais/tailwind-text-decoration-color
[](https://github.com/AhmadAwais/sponsor)