JavaScript for WordPress Forums Gutenberg Development How to get a color class name Reply To: How to get a color class name

#47952
Zac Gordon
Keymaster

Hmmm, gotcha.

I haven’t played with this enough, but maybe some of there other functions can help?

https://github.com/WordPress/gutenberg/blob/f95b2d5b952e7a495128d6cb5ca90cc42cf4e169/editor/components/colors/utils.js

Wonder if it’s setting in a color picker to return name if available instead of hex but you may still be able to get yourself.