🎨 PigmentTS

Introduction

Introduction to the library

PigmentTS Banner

PigmentTS is a lightweight color manipulation library for TypeScript.

Features

  • Color Conversion: Convert colors between all the supported formats.
  • Brightness Control: Lighten or darken a color by a specified percentage.
  • Random Color Generation: Generate random colors in of the supported format.
  • Opacity Control: Set the opacity of color in any format.
  • Blend Colors: Blend two colors in any format together in a specified ratio.

Supported Formats

  • HEX
  • RGB
  • HSL
  • RGBA
  • HSLA
  • Tailwind CSS

View the API documentation for a complete list of functions and types.

On this page