Skip to content

request: When using predefined swatches, set value to something else. #3

@dimitrihilverda

Description

@dimitrihilverda

What I would like to see, is that the color picker, when using pre defined swatches only, would be able to set a class name as value, instead of the color code, that way you can see the colors in the manager, but use a css class to alter more that just one color.

Example:
I have a slider, I like to be able to set the background color for that slider, but when the background color is changed to a dark color, I like to change the text to a lighter color.

That is possible when i set a class name instead of the hex color.
I could of course remove the # and prefix a class name to that, but when i would change the color in the pre defined swatches (could be that the client want it a bit differed), then I would need to change my css class names also.

Maybe the swatches json could have key value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions