0.1.1 • Published 3 years ago

tailwind-matcher v0.1.1

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

Tailwind Matcher

A simple package that matches any HEX color to its closest Tailwind CSS 2.0 color using a Nearest Neighbor algorithm by Daniel Tao.

Installation

$ npm install tailwind-matcher

Usage

import { tailwindMatcher } from 'tailwind-matcher';

tailwindMatcher('#313232') //returns 'gray-800'

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT