Skip to content

A Bunch of Tools for work with Colors in CSS way. Eg. Color Picker, Gradient Tool, Color Palette, Image Picker and more.

License

Notifications You must be signed in to change notification settings

raffa-sh/react-color-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-color-tools

A Bunch of Tools for work with Colors in CSS way. Eg. Color Picker, Gradient Tool, Color Palette and more.

How to Install

npm install --save react-color-tools
import { NoviColorPicker } from "react-color-tools"

...

Parent Components

NoviColorPicker

import { NoviColorPicker } from "react-color-tools"

...

NoviGradientTool

import { NoviGradientTool } from "react-color-tools"

...

EnsoPalette

import { EnsoPalette } from "react-color-tools"

...

EnsoColorPicker

import { EnsoColorPicker } from "react-color-tools"

...

EnsoGradientTool

import { EnsoGradientTool } from "react-color-tools"

...

EnsoGradientRuler

import { EnsoGradientRuler } from "react-color-tools"

...

Widget Components

Wheel

import { Wheel } from "react-color-tools"

...

value - object { hue, saturation }

onChange(hue, saturation)

onChangeComplete(hue, saturation)

size - diametr of wheel

Lightness

import { Lightness } from "react-color-tools"

...

value

onChange(hue, saturation)

onChangeComplete(hue, saturation)

direction - horizontal, vertical

width

height

Opacity

import { Opacity } from "react-color-tools"

...

value

onChange(hue, saturation)

onChangeComplete(hue, saturation)

direction - horizontal, vertical

width

height

Hue

import { Hue } from "react-color-tools"

...

value

onChange(hue, saturation)

onChangeComplete(hue, saturation)

direction - horizontal, vertical

width

height

Saturation

import { Saturation } from "react-color-tools"

...

value

onChange(hue, saturation)

onChangeComplete(hue, saturation)

direction - horizontal, vertical

width

height

Swatch

import { Swatch } from "react-color-tools"

...

color

onClick(color)

width

height

Input

import { Input } from "react-color-tools"

...

value

format - all, hex, rgb, hsb, r, g, b, a, h, s, b, angle, gradient. For example "rgb+a"

onChange(hue, saturation)

width

height

Gradient

import { Gradient } from "react-color-tools"

...

colors

active

onChange(colors)

onChangeComplete(colors)

direction

width

height

Ruler

import { Ruler } from "react-color-tools"

...

value

type - linear, radial

onChange

onChangeComplete

Helpers

Convertor

import { Convertor } from "react-color-tools"

...

hexToRgb(hex)

hexToHsb(hex)

rgbToHex(rgb)

rgbToHsb(rgb)

hsbToHex(hsb)

hsbToRgb(hsb)

Validator

import { Validator } from "react-color-tools"

...

isHex(color)

isRgb(color)

isHsb(color)

isRgba(color)

isHSBA(color)

isColor(color)

isLinearGradient(gradient)

isRadialGradient(gradient)

isGradient(gradient)

Parser

import { Parser } from "react-color-tools"

...

parseHex(color)

parseRgb(color)

parseHsb(color)

parseRgba(color)

parseHsba(color)

parseColor(color)

parseLinearGradient(gradient)

parseRadialGradient(gradient)

parseGradient(gradient)

parse(value)

About

A Bunch of Tools for work with Colors in CSS way. Eg. Color Picker, Gradient Tool, Color Palette, Image Picker and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.5%
  • CSS 9.5%