0.4.0 • Published 1 year ago

@nmsn/color-utils v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

color-utils

npm size last commit commit activity codecov license

English | 简体中文

Color conversion tool library.

Features

  • RGB/RGBA/HEX/HSL/HSLA/color-name color interconversion. (color-name
  • Validators for the above types of colors.
  • Provide computational multi-color fusion function.
  • Provides the function of calculating the complementary color.
  • Provide the function of judging the color light and dark (mostly used to deal with the relationship between the background color and the displayed text).

Install

npm install @nmsn/color-utils

Usage

import { isLight } from '@nmsn/color-utils';

const isLightColor = isLight('#999'); // true

Online Address: https://color-utils-site.vercel.app/

Project Address: https://github.com/nmsn/color-utils-site

Finished

  • RGB/RGBA/HEX/HSL/HSLA/color-name interconversion.
  • Checksum functions for each color format.
  • Unit testing of existing features.
  • Color fusion calculations.
  • Complementary color calculation.
  • Color brightness judgment.
  • Rollup Basic Function Package.

Todo

  • Rollup packed volume optimization.
  • Code optimization.

Contributing

License

MIT License

0.3.0

1 year ago

0.4.0

1 year ago

0.2.0

1 year ago

0.1.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.3-0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago