Emacs: Insert Random CSS Color 🚀
Command to Insert a Random CSS Color
put this in your Emacs Init File:
(defun xah-css-insert-random-color-hsl () "Insert a random color string of CSS HSL format. Sample output: hsl(100,24%,82%); URL `http://xahlee.info/emacs/emacs/emacs_insert_random_css_color.html' Version: 2015-06-11 2024-03-24" (interactive) (insert (format "hsl(%d,%d%%,%d%%);" (random 360) (random 100) (random 100))))