Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • Protesilaos Stavrou
  • modus-themesmodus-themes
  • Issues
  • #166

[Feature Request] Add a custom option to tune satutaion?

Thanks for your awesome theme Prot, I recently switched from the doom-one theme to modus-theme and I absolutely love it. But there is a small problem, I personally think the default colors of modus-theme-operandi need a little more saturation because the adjacent color contrast is a little bit low(compare to doom-one's), so I use a small piece of elisp code to tune the saturation of the whole color palette.

;;; Increase color saturation by 15 percent.
(let (cname foo-face tmp-color)
  (dolist (foo-face modus-themes-operandi-colors)
	(setq cname (color-saturate-name (cdr foo-face) 15))  ;;color-saturate-name is built-in, provided by color.el
	(setq cname (format "%s" cname))
	(setq foo-face `(,(car foo-face) . ,cname))
	(push foo-face tmp-color))
  (setq modus-themes-operandi-color-overrides tmp-color))

`color-saturate-name' also takes negative percentage value, set the percentage to like -70 will make operandi looks like tao-theme or nano-theme, so I think it can also help user built a distraction free theme out of modus-theme.

Assignee
Assign to
Time tracking