Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florian-lefebvre/tailwind-stroke-color
About Tailwindcss plugin to color svg stokes.
https://github.com/florian-lefebvre/tailwind-stroke-color
javascript js npm npm-package package tailwindcss tailwindcss-plugin
Last synced: about 1 month ago
JSON representation
About Tailwindcss plugin to color svg stokes.
- Host: GitHub
- URL: https://github.com/florian-lefebvre/tailwind-stroke-color
- Owner: florian-lefebvre
- License: mit
- Created: 2021-03-25T14:54:10.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T15:28:24.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T08:36:32.149Z (3 months ago)
- Topics: javascript, js, npm, npm-package, package, tailwindcss, tailwindcss-plugin
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stroke Color - TailwindCSS Plugin
[![npm](https://img.shields.io/npm/v/tailwind-stroke-color.svg?style=flat-square)](https://www.npmjs.com/package/tailwind-stroke-color)
[![npm](https://img.shields.io/npm/dt/tailwind-stroke-color.svg?style=flat-square)](https://www.npmjs.com/package/tailwind-stroke-color)This plugin generates classes for coloring strokes using `stroke: #;`.
## Installation
Pull it in through npm or yarn:
```bash
npm install tailwind-stroke-color
``````bash
yarn add tailwind-stroke-color
```## Usage
Add it to the plugins array of your Tailwind config.
```js
plugins: [
// Other plugins
require('tailwind-stroke-color')(),
],
```For each color in `colors` config of tailwind a `stroke-{color}` class is created, analog to `bg-` and `text-` classes.
## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).