org-html-themify
org-html-themify copied to clipboard
Themify org-mode HTML export with installed color theme.
#+title: Org HTML Themify
This package will generate inlined CSS style in your exported HTML, according to your installed Emacs color theme.
- Installation
** with use-package & straight
#+begin_src emacs-lisp (use-package org-html-themify :straight (org-html-themify :type git :host github :repo "DogLooksGood/org-html-themify" :files (".el" ".js" "*.css")) :hook (org-mode . org-html-themify-mode) :custom (org-html-themify-themes '((dark . modus-vivendi) (light . modus-operandi)))) #+end_src
** manually
#+begin_src emacs-lisp (add-to-list 'load-path "</path/to/org-html-themify>")
(require 'org-html-themify)
(setq org-html-themify-themes
'((dark . modus-vivendi)
(light . modus-operandi)))
(add-hook 'org-mode-hook 'org-html-themify-mode)
#+end_src
-
Usage
Just export org-mode to HTML files as usual.
-
Screenshots
with popular Zenburn theme
[[file:https://user-images.githubusercontent.com/11796018/104815244-5adc1c00-584e-11eb-84d4-853aa7e15990.png]]
media query is also supported
[[file:https://user-images.githubusercontent.com/11796018/104815463-b5c24300-584f-11eb-8266-b26054cd524c.png]]