Releases: omgovich/react-colorful
Releases · omgovich/react-colorful
v5.6 (Even better)
v5.5 (Multitouch)
v5.2 (Intelligent parsers)
Improve input color parsers to support valid CSS color notations and units of RGB[A] and HSL[A] color models:
// Percentage syntax
"rgb(100% 50% 25%)"
// Valid angular units ("deg", "grad", "rad" and "turn")
"hsl(100grad, 50%, 50%)"
"hsl(0.25turn, 50%, 50%)"
// Modern space and slash separated syntax
"rgba(100% 50% 25% / 99%)"
"hsla(90 50% 50% / 10%)"
// Optional leading zero
"rgb(.99% .1% .5% / .6%)"
"hsla(.2rad, .99%, .5%, .25)"
v5 (Super easy to install)
Since v5
no longer requires importing CSS separately, the usage of the react-colorful became much simpler.
import { HexColorPicker } from "react-colorful";
- import "react-colorful/dist/index.css";
Now the component does not require any CSS loader and can be used with any CSS-in-JS project or component library. Also, by dropping the CSS export we made the library 100% side-effects-free.
The default styles are set to a higher priority level now, so you may need to tweak your styles a bit to override the built-in styles.
v4.1 (Accessibility)
v4.0 (Alpha channel)
v3.0 (Less tooling, better API)
- Migrate to named exports.
- Mark the library as side-effect-free and add tree-shaking support.
- More consistent public component and type names.
Made by @rschristian and @omgovich (via #42)