https://github.com/doglooksgood/org-html-themify
Themify org-mode HTML export with installed color theme.
https://github.com/doglooksgood/org-html-themify
Last synced: about 1 year ago
JSON representation
Themify org-mode HTML export with installed color theme.
- Host: GitHub
- URL: https://github.com/doglooksgood/org-html-themify
- Owner: DogLooksGood
- Created: 2021-01-16T12:46:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T14:13:59.000Z (about 5 years ago)
- Last Synced: 2024-11-07T04:41:15.117Z (over 1 year ago)
- Language: CSS
- Size: 29.3 KB
- Stars: 74
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+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 "")
(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]]