colorful-mode
colorful-mode copied to clipboard
Handle rgb(...) and rgba(...) outside of only CSS
I use hyprlock, and it uses these functions. I'm currently configuring it through nix so I think just adding it to specific languages wouldn't solve the issue.
You are looking for support of rgb(..) and rgba(...) outside of css related modes? 🤔 I think this feature is interesting but a bit out of scope?
rgb() and rgba() can be used outside of css (and derived).
To enable it in your hyprlock config you can use this snippet in your emacs config:
(add-to-list 'colorful-extra-color-keyword-functions
'(conf-unix-mode . colorful-add-rgb-colors))
(add-hook 'conf-unix-mode-hook #'colorful-mode)
;; or
(use-package colorful
:hook (conf-unix-mode . colorful-mode))