protesilaos / modus-themes

Highly accessible themes for GNU Emacs, conforming with the highest standard for colour contrast between background and foreground values (WCAG AAA).
https://protesilaos.com/emacs/modus-themes
GNU General Public License v3.0
526 stars 29 forks source link

How to modify org-habit background color #81

Closed morgandavidson closed 1 year ago

morgandavidson commented 1 year ago

I'm using modus-vivendi-deuteranopia and modus-operandi-deuteranopia. I found modus-vivendi-deuteranopia main text color too white so I modified it (see below). I also tried to modify org-habit background color, but it didn't work:

(setq modus-vivendi-deuteranopia-palette-overrides
      '((fg-main "#e1dfeb")
           (blue-graph-1-bg bg-main)))

What am I doing wrong?

protesilaos commented 1 year ago

Hello @morgandavidson!

The name of the blue graph is bg-graph-blue-1:

(setq modus-vivendi-deuteranopia-palette-overrides
      '((fg-main "#e1dfeb")
        (bg-graph-blue-1 bg-main)))

EDIT: fix indentation.

morgandavidson commented 1 year ago

Hello protesilaos! Thank you, it works fine now. I got the wrong name here.

protesilaos commented 1 year ago

Oh, I see. Blog posts become outdated. The up-to-date resource is the manual. The section that introduces palette overrides makes a reference to the command modus-themes-list-colors, which is then explained at greater length. That command will help you get the names of the colours and also preview their colour value.

Please let me know if that works for you.

morgandavidson commented 1 year ago

Yes it works perfectly, thank you! M-x modus-themes-list-colors is very useful indeed.

protesilaos commented 1 year ago

Very well! We can safely close this now.