All Projects → valignatev → heaven-and-hell

valignatev / heaven-and-hell

Licence: MIT license
Emacs light/dark theme toggler

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to heaven-and-hell

lovelace-light-soft-ui-theme
🎨 Home Assistant soft UI light theme, with help from @JuanMTech, @thomasloven, and @N-l1.
Stars: ✭ 59 (+15.69%)
Mutual labels:  themes
Xresources-themes
A big (huge) collection of rxvt / xterm terminal themes
Stars: ✭ 247 (+384.31%)
Mutual labels:  themes
brush
An amazing scaffolding for developing database-driven websites, applications and APIs. Built on Laravel Lumen Framework, MySQL and Angular.
Stars: ✭ 23 (-54.9%)
Mutual labels:  themes
colorcli
Collection of harmonized, light command-line interface (CLI) color themes for tmux, cmus, newsboat, mcabber, Vim, Vifm, and Mutt.
Stars: ✭ 40 (-21.57%)
Mutual labels:  themes
SciFi Conky HUD
SciFi theme for Conky
Stars: ✭ 33 (-35.29%)
Mutual labels:  themes
entrepot
A list of free GitHub.com hosted WordPress plugins, themes & blocks
Stars: ✭ 29 (-43.14%)
Mutual labels:  themes
BetterDiscord-Themes
Themes that I create for the Discord addon; BetterDiscord
Stars: ✭ 65 (+27.45%)
Mutual labels:  themes
create-material-ui-app
create-react-app + storybook + storybook-addon-material-ui
Stars: ✭ 55 (+7.84%)
Mutual labels:  themes
slate-cli
This repo has been deprecated. Please open any new issues or PRs in the Shopify/slate repo.
Stars: ✭ 19 (-62.75%)
Mutual labels:  themes
Krypton-Toolkit-Suite-NET-Core
A update to Component factory's krypton toolkit to support .NET Framework 3.5 to .NET Core
Stars: ✭ 27 (-47.06%)
Mutual labels:  themes
doki-theme-web
Cute anime character themes for your Chrome, Edge, & Brave browser.
Stars: ✭ 97 (+90.2%)
Mutual labels:  themes
ng-vcl
Angular VCL ‒ an Angular component library based on the VCL CSS eco system
Stars: ✭ 17 (-66.67%)
Mutual labels:  themes
RedditWallpaperBot
A Bot for Reddit that gets top Hot sorted picture from a given Subreddit and sets it as background.
Stars: ✭ 15 (-70.59%)
Mutual labels:  themes
angular-material-dynamic-themes
Making able the app to switch between material themes at run-time
Stars: ✭ 24 (-52.94%)
Mutual labels:  themes
css-theme-manager
Zero dependency lib to manage CSS themes easily for your app
Stars: ✭ 16 (-68.63%)
Mutual labels:  themes
google light theme
🎨 By JuanMTech -- A Home Assistant theme inspired on the Google app light mode.
Stars: ✭ 56 (+9.8%)
Mutual labels:  themes
semantic-ui-forest
[Archived] Source code for official semantic-ui-forest website.
Stars: ✭ 49 (-3.92%)
Mutual labels:  themes
ionic3-start-theme
Ionic 3 Start Theme with 10 Pages, mock data, providers samples, Storage, Http and more...
Stars: ✭ 130 (+154.9%)
Mutual labels:  themes
Kanext
Theme with improved looks and functionality for Kanboard
Stars: ✭ 31 (-39.22%)
Mutual labels:  themes
ClearVision-v6
Highly customizable theme for BetterDiscord.
Stars: ✭ 248 (+386.27%)
Mutual labels:  themes

Heaven and Hell Emacs Emacs Emacs MELPA MELPA Stable

Logo

Heaven and Hell - emacs package for easy toggling of light/dark color themes.

TLDR:

Demo

Why?

I constantly switch light and dark theme. When it's sunny outside, or I work in a very light room - I use the light theme. Otherwise, I prefer dark one. So I wrote a bunch of helpers which helped me with this and one day I decided to make a package out of it. Hope it'll be useful to anybody else. Cheers!

Features

  • Define your favorite light and dark themes
  • Choose which one to run by default
  • Switch between them with a single keypress
  • Easily roll back to default emacs theme in case of messed faces

Installation

heaven-and-hell is available in Melpa.

With use-package

With use-package (including example config):

(use-package heaven-and-hell
  :ensure t
  :init
  (setq heaven-and-hell-theme-type 'dark) ;; Omit to use light by default
  (setq heaven-and-hell-themes
        '((light . tsdh-light)
          (dark . tsdh-dark))) ;; Themes can be the list: (dark . (tsdh-dark wombat))
  ;; Optionall, load themes without asking for confirmation.
  (setq heaven-and-hell-load-theme-no-confirm t)
  :hook (after-init . heaven-and-hell-init-hook)
  :bind (("C-c <f6>" . heaven-and-hell-load-default-theme)
         ("<f6>" . heaven-and-hell-toggle-theme)))

With straight.el

(straight-use-package 'heaven-and-hell)

Manually

First clone the repo:

git clone https://github.com/valignatev/heaven-and-hell.git your/site/elisp/path

Then add this in your init.el:

(require 'heaven-and-hell "your/site/elisp/path/heaven-and-hell/heaven-and-hell.el")

Example configuration

For use-package configuration look above in installation section

;; Default is 'light
(setq heaven-and-hell-theme-type 'dark)

;; Set preferred light and dark themes
;; default light is emacs default theme, default dark is wombat
;; Themes can be the list: (dark . (tsdh-dark tango-dark))
(setq heaven-and-hell-themes
      '((light . tsdh-light)
        (dark . tsdh-dark)))
;; Optionall, load themes without asking for confirmation.
(setq heaven-and-hell-load-theme-no-confirm t)

;; Add init-hook so heaven-and-hell can load your theme
(add-hook 'after-init-hook 'heaven-and-hell-init-hook)

;; Set keys to toggle theme and return to default emacs theme
(global-set-key (kbd "C-c <f6>") 'heaven-and-hell-load-default-theme)
(global-set-key (kbd "<f6>") 'heaven-and-hell-toggle-theme)

For Doom Emacs

;; In packages.el
(package! heaven-and-hell)

;; In config.el
(after! heaven-and-hell
  (setq heaven-and-hell-themes
        '((light . doom-one-light)
          (dark . doom-vibrant)))
  ;; Optionall, load themes without asking for confirmation.
  (setq heaven-and-hell-load-theme-no-confirm t)
  (map!
   :g "<f6>" 'heaven-and-hell-toggle-theme
   ;; Sometimes loading default theme is broken. I couldn't figured that out yet.
   :leader "<f6>" 'heaven-and-hell-load-default-theme))

(add-hook 'after-init-hook 'heaven-and-hell-init-hook)

Contribution

Have trouble with installation? Found a bug? Want a new feature? Feel free to open an issue!

Want to fix a bug or add something new yourself? Feel free to submit pull request!

Also, don't hesitate to share it anywhere in the Internet :)

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].