hex2tailwind

1.0.3 • Public • Published

hex2tailwind

Converts Hex Colors to Tailwind CSS Color Names.

You can learn more about the reasoning behind creating this package in my blog post Here

Installation

  npm i hex2tailwind

Usage/Examples

const Hex2tailwind = require('hex2tailwind');

const hexColor = '#33ccff';
const tailwindClass = Hex2tailwind(hexColor);
console.log(tailwindClass); // Outputs: "sky-500"

License

This package is licensed under the MIT License

Readme

Keywords

Package Sidebar

Install

npm i hex2tailwind

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

3.31 kB

Total Files

4

Last publish

Collaborators

  • taoufiqlotfi