/org-html-themify

Themify org-mode HTML export with installed color theme.

Primary LanguageCSS

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

(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))))

manually

(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)

Usage

Just export org-mode to HTML files as usual.

Screenshots

with popular Zenburn theme

https://user-images.githubusercontent.com/11796018/104815244-5adc1c00-584e-11eb-84d4-853aa7e15990.png

media query is also supported

https://user-images.githubusercontent.com/11796018/104815463-b5c24300-584f-11eb-8266-b26054cd524c.png