Skip to content

tao101/hex2tailwind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published