Function: css-cycle-color-format
css-cycle-color-format is an interactive and byte-compiled function
defined in css-mode.el.gz.
Signature
(css-cycle-color-format)
Documentation
Cycle the color at point between different CSS color formats.
Supported formats are by name (if possible), hexadecimal, and rgb()/rgba().
Probably introduced at or before Emacs version 27.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/css-mode.el.gz
(defun css-cycle-color-format ()
"Cycle the color at point between different CSS color formats.
Supported formats are by name (if possible), hexadecimal, and
rgb()/rgba()."
(interactive)
(or (css--named-color-to-hex)
(css--hex-to-rgb)
(css--rgb-to-named-color-or-hex)
(message "It doesn't look like a color at point")))