tailwind-matcher

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tailwind-matcher

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

7.09 kB

Total Files

4

Last publish

Collaborators

  • antoniolofiego