DEV Community

Cover image for 🎨 PigmentTS
Jay
Jay

Posted on

🎨 PigmentTS

🎨 A lightweight utility for color manipulation and conversion.

✨ Features

  • Color Conversion: Convert colors between HEX, RGB, HSL, HSLA, RGBA and Tailwind CSS formats.
  • Lightness Control: Lighten or darken a color by a specified percentage.
  • Random Color Generation: Generate random colors in HEX, RGB, HSL, or Tailwind CSS format.
  • Opacity Control: Sets the opacity of color in any format.
  • Blend Colors: Blends two colors in any format together in a specified ratio.

GitHub: https://github.com/Jay-Karia/pigment-ts
NPM: https://www.npmjs.com/package/pigment-ts?activeTab=readme

Top comments (0)