English | 简体中文
Color conversion tool library.
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).
npm install @nmsn/color-utils
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
-
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.
-
Rollup
packed volume optimization. - Code optimization.