Live data from Hacker News

Ask HN: What colorscheme are you using in your code editor?

news.ycombinator.com

51–60 of 79 posts

Re: Ask HN: What colorscheme are you using in your code editor?

#51

I have a custom theme that's pretty minimal, because I find lots of colors distracting. Colors are vaguely based it on pen on paper: white: background dark blue: foreground light gray: brackets and commas and stuff red: literals (strings, numbers, true/false) black: comments This means comments and literals stand out, which are usually the things I don't want to miss when I'm reading through code.

similar theme here, vim :TOhtml output: https://aurora.nox.tf/tmp/zebra_rib.c.html (Tab display and col-80-mark is missing in that tho)

(but yes I make my comments gray)

Re: Ask HN: What colorscheme are you using in your code editor?

#55
post #42

Earlier quoted context omitted.

I too use Prot's themes, but a different one per season: (defun light-theme-for-this-season () "Return the light theme for this season." (pcase (current-meteorological-season) ('spring 'ef-spring) ('summer 'ef-summer) ('autumn 'ef-day) ('winter 'ef-light))) Each season starts on the first of the month: March, June, September, December. I also have a little script that switches to the dark theme with the rest of the s…

add in some circadian.el and then you’re really cookin’ :)

I have GNOME do the auto dark theme thing automatically, so all Emacs has to do is listen to dbus signals and act accordingly:

  (defun theme-switcher (value)
    (pcase value
      ;; No Preference. Used by GNOME to indicate light theme.
      (0 (sph/load-light-theme))
      ;; Prefers dark
      (1 (sph/load-dark-theme))
      ;; Prefers light
      (2 (sph/load-light-theme))
      (_ (message "Invalid key value"))))

  (defun handler (value)
    (theme-switcher (car (car value))))

  (defun signal-handler (namespace key value)
    (if (and
         (string-equal namespace "org.freedesktop.appearance")
         (string-equal key "color-scheme"))
        (theme-switcher (car value))))

  (dbus-call-method-asynchronously
   :session
   "org.freedesktop.portal.Desktop"
   "/org/freedesktop/portal/desktop"
   "org.freedesktop.portal.Settings"
   "Read"
   #'handler
   "org.freedesktop.appearance"
   "color-scheme")

  (dbus-register-signal
   :session
   "org.freedesktop.portal.Desktop"
   "/org/freedesktop/portal/desktop"
   "org.freedesktop.portal.Settings"
   "SettingChanged"
   #'signal-handler)

Re: Ask HN: What colorscheme are you using in your code editor?

#58

Time for one maybe folks haven't heard of: Plastic. It was done by one of the folks originally involved with Atom One Dark: https://plastictheme.com/

I really liked Atom One Dark. After trying many color schemes for VSCode, I found Plastic to be my favorite. I never knew there was a connection!

Re: Ask HN: What colorscheme are you using in your code editor?

#59

Big fan of gruvbox dark in vim. I don't normally use dark mode in other contexts but gruvbox is warm without any loud colors. I used to use an absolutely terrible colorscheme named sakura light or something, anyone I showed my editor to would be blinded lol.

I also use gruvbox dark with hard contrast. I completely forgot I was using it and had to look at my vimrc. That's how good it is: I set it a number of years ago and haven't had to touch it since.

Re: Ask HN: What colorscheme are you using in your code editor?

#60

I'm colorblind (protanopia), which makes most color schemes unusable in some way. I use the default Visual Studio Code darkmode color theme. It's perfect for my type of colorblindness! The colors have great contrast for me, and I can easily read everything.

It would definitely be nice to see more color schemes targeted at users with color vision issues.

Prot recently developed two emacs themes targeted at users with deuteranopia and tritanopia: https://protesilaos.com/emacs/ef-themes

Post reply on HN