hxf31891 / react-gradient-color-picker

An easy to use color/gradient picker for React.js
MIT License
146 stars 49 forks source link

Fix/styles not used or typesafe #105

Open RubenSmn opened 1 month ago

RubenSmn commented 1 month ago

Problem

I wanted to style the component to align with my theme. But I was not able to do this due to:

Solution

I fixed one problem which is the ability to use the style prop on the ColorPicker component. The styles passed down to this prop are getting merged with the default styles. For this I also updated the Styles typing which now gives you autocomplete to which options / components are available for styling.

With this is renamed some variables to better align with the value of these variables.

Let me know what you think, open for any feedback.