9

GitHub - idlip/haki: ๐ŸŽจ Pleasant, Dark theme in Modern Sense for Emacs

 1 year ago
source link: https://github.com/idlip/haki
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

๐ŸŽ‡ Haki - An Elegant, High-contrast Dark Theme in Modern sense

๐ŸŽจ Table of Palette

bookmark Info

This is not any normal theme that looks โ€œhuhโ€.

This is tailored for Emacs in modern sense, with each element to look distinguishable and go in sync.

There is not much science or principle here, itโ€™s just a theme and its your eyes, if they go in sync, whoami to stop?

As a new theme, I have two things in my mind:

  • If community or many users, like the theme, I might go tweak and add more goodies.
  • If there is not much appreciation, I might modify and improve some pastel colors.

anchor Modes Supported

Packages & Modes

circus_tent Gallery

Eye candy Gallery

sparkles Installation

Theme is available in MELPA.

;; Option 1: Simply do (make sure it is in 'custom-theme-directory')
(setq haki-region "#2e8b6d")
(load-theme 'haki t)

;; Option 2: with 'use-package'
(use-package haki-theme
  :config
  (setq haki-region "#2e8b6d"
  ;; If you skip setting this, it will use 'default' font.
  haki-heading-font "Comic Mono"
  haki-sans-font "Iosevka Comfy Motion"
  haki-title-font "Impress BT"
  haki-link-font "VictorMono Nerd Font" ;; or Maple Mono looks good
  haki-code-font "Maple Mono") ;; inline code/verbatim (org,markdown..)

;; For meow/evil users (change border of mode-line according to modal states)
  (add-hook 'post-command-hook #'haki-modal-mode-line)

  (load-theme 'haki t))

heavy_dollar_sign Tips

Since its new, there is not much, but I do have some surprise!

  • Since regions cover everywhere, you can customize it to your preference.

Use M-x #'haki-change-region to choose and set a color for haki-region.

To make it persist on sessions, you need to add (setq haki-region "#hexvalue")

  • Emacs on Terminal should support 24-bit colors.

It displays all colors for me on foot terminal. If you have issue, You can try setting โ€˜COLORTERMโ€™ environment variable to โ€œtrue-colorโ€ : export COLORTERM=truecolor

  • Heading level will be similar everywhere (org,markdown,eww,shr,info,news..), every heading faces inherit corresponding org-level. Editing org-level face will follow to all modes having heading, define your choice of font for heading.
; Font for each level
(set-face-attribute 'org-level-1 nil :font "Impress BT")

; Add fg and a face
(set-face-attribute 'org-level-1 nil :font "Excalibur Stone" :foreground "#ab82ff")
  • For meow/evil users, there is #'haki-modal-mode-line which can change the border (:box) of the mode-line according to the meow-states, with this hook:
    (add-hook 'post-command-hook #'haki-modal-mode-line)
        
  • Just like a theme, if you are looking to try new font. I can suggest you to check Recursive font I use (fork) them patched with nerd icons in OnePiece style naming, check out Code D Font

๐Ÿ”— Contributing

Thereโ€™s always a space for improvement.

  • If you want to open an issue, Please attach a pic of the issue state.
  • If you want to make a PR, Please attach pic of before and after effects.

    This will allow me to consider and evaluate.

medal_military Inspiration

  • Protโ€™s themes - Iโ€™m a fan of modus-vivendi, but it lacked something for me, it simply lead me to create this theme. Nonetheless, Modus themes is a Masterpiece.
  • Minad - If it were not for his packages, I wouldnโ€™t have loved Emacs this much to create a theme. Absolute gem! Most of the themeโ€™s customization is based on his packages.

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK