chosen icon indicating copy to clipboard operation
chosen copied to clipboard

There should be an easy way to customize the colors with SASS

Open philippze opened this issue 5 years ago • 1 comments

It would be nice if the SASS file used variables with default values for the colors, like this:

$chosen-color-text: #999 !default;

...

.chosen-default {
    color: $chosen-color-text;
}

This would it make easy for everyone using SASS to customize the look.

There are already SASS variables the image sprites, so, adding SASS variables for the colors would not be a fundamental change.

If you like, I could contribute that feature.

If we add the feature, the SASS file should be included in the npm package.

philippze avatar May 13 '19 13:05 philippze

Here's the SASS file with variables for the colors, as I would find it handy: https://github.com/philippze/chosen/blob/3a812057e9cf5b3700794cac5b399239e672ab6c/sass/chosen.scss

And here the commit that introduces the variables for the colors: https://github.com/philippze/chosen/commit/3a812057e9cf5b3700794cac5b399239e672ab6c

If you like, I can create a pull request.

philippze avatar May 22 '19 19:05 philippze